|
$ zimbatm
@
zimbatm
Internet
|
|
Obsessed with #Nix and #NixOS. Also author of direnv.net and other small shell tools.
I also run a Nix consulting company: @NumTide
|
|
|
1.446
Tweetovi
|
206
Pratim
|
518
Osobe koje vas prate
|
| Tweetovi |
|
$ zimbatm
@zimbatm
|
1. velj |
|
If you have a company, your employees can be given a donation budget on OpenCollective. It's a great way to give back to the open source community.
Since I am self-employed, I will let @NumTide
sponsor the @nixos_org
:) pic.twitter.com/VK5KkEVpER
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
28. sij |
|
Aand reverting `set -euo pipefail`. There are too many broken scripts out there that pretend to be working. Let's keep pretending!
github.com/direnv/direnv/… twitter.com/zimbatm/status…
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
26. sij |
|
As expected `set -u` exposed a few bugs in the stdlib.
If you use `use node` or `source_up`, get the latest release:
github.com/direnv/direnv/… twitter.com/zimbatm/status…
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
25. sij |
|
The json decoder of @golang doesn't fail if there is extra data at the tail of the document. I bet there are a ton of API out there where you can pass an extra payload at the end of the request.
play.golang.org/p/Xp_817WFu_S
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
25. sij |
|
direnv 2.21.0 has been released. This is a massive release!
* `.envrc` files are now loaded with `set -euo pipefail` which is probably going to expose issues in existing scripts.
* Ctrl-C now actually works during reload in bash and zsh.
And more!
github.com/direnv/direnv/…
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
23. sij |
|
It's incredible how much code is given away for free every day by passionate software developers.
Most people's view of developers are shaped by the media. They don't know that anything they do with computers literally was enabled by our generosity.
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
23. sij |
|
Did you look for umbrella companies? They take care of the admin for you, including insurance policies. Usually they take a percentage fee out of your income.
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
21. sij |
|
I often SSH into my main workstation over @zerotier. As long as the Internet latency is good, it's great. Otherwise push the WIP git branch and then fetch it locally on the laptop. It helps that all the machines are configured the same thanks to NixOS.
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
21. sij |
|
If you have a home-office I highly recommend it. I bought a pre-assembled machine from @quietpc and it changed my work life.
It's all that little friction that comes from not enough RAM and CPU. It's hard to see it until you get a proper machine.
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
21. sij |
|
Yeah for some reason I thought that the client was reading the Dockerfile and driving each step of the build. Then it would be trivial to only send what is accessed by COPY and ADD.
With the current design the client has to send the full bundle even if all the layers are cached.
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
21. sij |
|
Yeah I know about .dockerignore but I thought it was to ignore files that are copied by COPY or ADD.
Anyways, `.dockerignore: *` and we're good to go
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
21. sij |
|
Indeed.
.dockerignore:
```
*
```
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
21. sij |
|
> Sending build context to Docker daemon 1.37GB
`docker build .` makes a tarball of the whole directory and sends it to the docker daemon. For some reason I assumed that it would only send the files that are accessed by the Dockerfile.
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
20. sij |
|
@github uses @MacStadium to host the macOS runners. Kaching!!! 💰💰💰
source: help.github.com/en/actions/aut…
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
19. sij |
|
I have used zsh and fish but always seem to go back to almost-vanilla bash for some reason. Most of the inconsistencies have been solved after bash 4.0 I think.
What feature would you miss the most if you switched back to bash?
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
19. sij |
|
There are a lot of good tools in that thread!
I can't believe nobody said bash already 😅😅😅 It's from a different era but so useful! Thanks @chetramey for doing such a good job at maintaining Bash! twitter.com/zimbatm/status…
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
18. sij |
|
So true. It's so much faster to lookup reference documentation with Dash than anything else!
It's the only tool I really miss from macOS after switching to NixOS/Linux.
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
18. sij |
|
What tool do you use every day that make your life better? twitter.com/zimbatm/status…
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
18. sij |
|
The latest episode of Nix Friday is out!
In this episode we talked about using direnv with Nix.
youtube.com/watch?v=JOawAq…
|
||
|
|
||
|
$ zimbatm
@zimbatm
|
18. sij |
|
Second close is `fd` by David Peter who replaced most of my uses of `find`. It's great to see unix tooling being re-thought for usability.
github.com/sharkdp/fd twitter.com/zimbatm/status…
|
||
|
|
||