Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
binaryphile
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Smart, organized replacement for complex bashrc and bash_profile files
(github.com)
1 points
by
binaryphile
6y ago
|
0 comments
2.
▲
Understanding how Cassandra tracks metrics (older version)
(binaryphile.com)
1 points
by
binaryphile
7y ago
|
0 comments
3.
▲
Determining the location of your script in Bash
(binaryphile.com)
3 points
by
binaryphile
7y ago
|
0 comments
4.
▲
by
binaryphile
8y ago
Finally got around to updating the post with your suggestions. Thanks again.
5.
▲
by
binaryphile
8y ago
I can relate to the earlier poster because I had the same problem finding all of these rules in one place. I wrote it to be precisely what I wish someone had told me before I got started. Thank you for the compliment btw.
6.
▲
by
binaryphile
8y ago
Thanks for the tips. We're still running on 1.11 because of problems with the recent glibc updates not matching the kernels in our deployment environment.
7.
▲
by
binaryphile
8y ago
I found the nix-repl to be very helpful in this situation...you can also invoke command-line expressions directly with nix but it's a bit more arcane.
8.
▲
Nix Language Primer
(binaryphile.com)
122 points
by
binaryphile
8y ago
|
64 comments
9.
▲
Approach Bash Like a Developer
(binaryphile.com)
3 points
by
binaryphile
8y ago
|
0 comments
10.
▲
by
binaryphile
8y ago
A bashtardization: rb () { [[ $1 == -l ]] && shift case $? in 0 ) ruby -e "STDIN.each_line { |l| puts l.chomp.instance_eval(&eval('Proc.new { $* }')) }";; * ) ruby -e "p
11.
▲
by
binaryphile
9y ago
Yup. The moment you need editing capabilities more sophisticated than those three keys, though, I recommend switching to vi input mode (set -o vi) if you are familiar with vim keybindings. Although tapping Esc is not as quick as Ctrl (or
12.
▲
by
binaryphile
9y ago
Boy, those Trojans really got us with that last horse, hoowee, but this one looks solid.
13.
▲
by
binaryphile
9y ago
The irony of using the example of a statistics professor to prove a systemic conspiracy with a sample size of 1 is not lost on me.
14.
▲
by
binaryphile
9y ago
Here's what my take on the script would be in bash (albeit untested): https://gist.github.com/binaryphile/3cf01870516d5fffafbc84a0... Whoever wrote the initial bash script was clearly in a rush. I don't hold
15.
▲
by
binaryphile
9y ago
"Never go to sea with two chronometers; take one or three." - adage cited in the Mythical Man Month