Better HN
topnewbestaskshowjobs
Log inSign up

juliosueiras

32 karma · joined Mar 8, 2017 (9y ago) · 22 submissions

Submissions

comment 3y ago · link · parent

I ain’t changing the license for mine(so it will stay the same license)

comment 3y ago · link · parent

why not both ;) https://github.com/danielfullmer/robotnix

comment 3y ago · link · parent

https://github.com/hercules-ci/arion which allow docker-compose

comment 3y ago · link · parent

maybe quay.io?

comment 4y ago · link · parent

is more due to the fact that KF is born from the sole purpose of harassment(CWC) then move to harass more than just that one person

comment 4y ago · link · parent

played maybe around 5% of it, I am mostly collecting them as modern gaming is rapidly becoming too unbearable for me(MTX, Lootboxes, the recent NFTs, etc), and I am most likely plan to just play the collection(which I collect with criteria of at least 1% of interest of playing ,so no baby games like Racing with Ryan etc) when I stop buying modern games

comment 4y ago · link · parent

No, emulator primary motive is enabling longevity for the target system, since hardware get damaged over the years, CD/DVD/Cart get corrupt over the years, without it, there will be literally no way to preserve a console games and ecosystem, for example I own 805 switch physical games, but because I know Yuzu exist I don’t have to worry about if one day the cart get damaged or something

comment 4y ago · link · parent

funny enough, B2+Cloudflare will still be cheaper, since Cloudflare R2 from the blog you linked is at the cost of $0.015/GB/month for stored storage, where as B2 is $0.005/GB/month for stored storage, and there is no download cost when using the B2+Cloudflare combo

comment 4y ago · link · parent

I notice that none of the comment think about scenario where the engineer doesn't know how to drive or doesn't own a car

comment 5y ago · link · parent

I do like how most people here sort of forgot that a decent amount of people in ops(especially in bigger enterprise company) are not programmer and at most have shell scripting experience and thats about it, telling them to "use a real programming language" is going to create some "fun" issues (atleast HCL is consistent)

comment 5y ago · link · parent

Aside from the fact no show case of a phone interface

Just from the ars article alone I have extreme doubt of what the phone system(AOSP copy job) on release is the same as the code in open harmony repos

comment 6y ago · link · parent

the article lose any creditability after doing a quick check and realizing that CGTN formally known as CCTV-9, so go figure

comment 6y ago · link · parent

the focus of nix in the build process is the ideal of if you have three build inputs bash 4, gcc 4.8.<patch>, libc <whatever version> , and the source of the package being the same(hash-wise) , the output is very much(for most cases) going to be the same, since nix itself(even on non-nixos) uses very little of the system stuff, it won't be using the system libc, gcc, bash, ncurses, etc, it will use its own that is lock to a version down to the hash, it follow a target(with exact spec) -> output , where as Dockerfile more resemble, of a build that is output first , and not doing build very often, this is why Nix have their own CI/CD system, Hydra to allow ensure daily or even hourly safety of reproducible builds

comment 6y ago · link · parent

I think one way to look at nix is that it want to act(in good way) the central source of truth for deterministic package, and one way it goes about it is by doing the step for both system level packages, and language level packages(for example, if you approach a nodejs app, you will lock both the nodejs version, the underlying openssl or other headers lib used by node-gyp, and the node_module packages itself in nix) and that is one of the main flow of nix, take a existing project/app/software, and convert it to usable nix packages, and that work even in edge cases like:

- app that is binary , so you can't build it from source, but is using dynamic libraries, then you can use autoPatchelfHook to tell nix to patch the binary to swap out the libraries to nix's version

- app that uses a lot of hard coded file system path that you would prefer not to patch them all out, then you can use buildFHSUserEnv to package/run the application/package in full FHS-compatible scenario

but the main point is that, nix is extreme in its approach, and the best approach in my opinion, is to do swapping step by step, ex:

you want to convert a existing project to nix, lets say nodejs

- you add the main deps in the default.nix (nodejs, yarn, high level utility needed to build)

- use sandBox false to allow building the app with yarn/npm in internet accessible(by default nix uses sandBox which disallow internet inside build step, which causes issue like npm install not working, etc)

- confirm working, then start using tool likes yarn2nix, other similar, and convert the packages itself to a usable set of nix packages

though I do agree that nix have the knowledge bias issue, and alot of my learning of nix involve me looking at the nixpkg sources itself and sometime even the nix's code

comment 6y ago · link · parent

I think the person above is mostly pointing out about dynamic blocks , since that do allow abstracting blocks of config and also allow subtle differences

comment 6y ago · link · parent

want to point that ever since Terraform 0.12, all terraform params and modules etc are transformable in objects, what I mean by that is you can use functions like yamldecode or jsondecode to decode any yaml or json into terraform objects and pass into modules or resources or locals, also "real" programming language is always funny to me when ops are going to be much more comfortable with HCL. JSON/YAML are not in the same class as HCL. YAML maybe can do nesting with & but they can't just create simple config style interface, where the user facing side is a simple yaml file, and the terraform code underneath take it in and pass it to its modules

comment 7y ago · link · parent

LSP is quite a life saver for me, I created https://github.com/juliosueiras/vim-terraform-completion first, but when terraform 0.12 came out, I move on to LSP implementation https://github.com/juliosueiras/terraform-lsp , since I wanted all editors to able to use it, and the biggest benefit is that I can use Terraform's HCL2 Parsing to parse the code, instead of using other languages

18.

Show HN: A (Neo)Vim AutoCompletion Plugin for Terraform(github.com ↗)

2 points · by juliosueiras · 7y ago · discuss

19.

Ask HN: Should GitHub use as a political discussion platform?

3 points · by juliosueiras · 8y ago · 3 comments

comment 8y ago · link · parent

it will make more sense with something like

  data "template_file" "eth_service" {
    	filename = "./files/eth.service"
  	vars {
  		wallet_address = 
  "${var.wallet_address}"
  	}
  
  }

with

ExecStart=/tmp/ethminer -G -F eth-us.dwarfpool.com:80/${wallet_address}

comment 8y ago · link · parent

If you are using vim for terraform, then you should try this https://github.com/juliosueiras/vim-terraform-completion, hoping to migrate to langserver by this year so any editor can use it

P.S. sorry for the self-promo

comment 9y ago · link · parent

The moment I try scrimba, I notice is using the code completion from VS code, so I went with my instinct and open a file with .ts(for typescript) and it work

EDIT: a bit hackish but it is possible to add d.ts, by putting the file directly(like creating a file call jquery.d.ts and put the jquery def inside), the def will actually load in