Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bewuethr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
bewuethr
6y ago
Probably a few times a day? One nice thing about the alias is that it expands and takes more parameters if you want, like gh pcw --base=development It's also super quick to set up an alias, so I don't see why not.
122.
▲
by
bewuethr
6y ago
There was the option to use curl and the GitHub API, but the CLI wraps that very conveniently in the "api" subcommand.
123.
▲
by
bewuethr
6y ago
This is one of my favourites, too! And combined with the alias functionality, you can do gh alias set pcw 'pr create --web' and then just use gh pcw to create a new PR. There's also sufficient smarts around
124.
▲
by
bewuethr
6y ago
Pretty much this, and as a subset of it: quoting, word splitting, the IFS variable and friends. Reading the BashGuide [1] cover to cover is an excellent base, I find. [1]: https://mywiki.wooledge.org/BashGuide
125.
▲
by
bewuethr
6y ago
This reminds me of "The Science News Cycle": http://phdcomics.com/comics/archive.php?comicid=1174
126.
▲
by
bewuethr
6y ago
Well, yes, you can't use it without creating a backup file, but it uses "-i" and is portable.
127.
▲
by
bewuethr
6y ago
According to Stack Overflow [1], this works: sed -i.bak 's/foo/bar/' filename [1]: https://stackoverflow.com/a/22084103/3266847
128.
▲
by
bewuethr
6y ago
In version 7, ImageMagick has switched to just "magick" instead of "convert", "mogrify" etc., and for compatibility with version 6 it still supports subcommands like "magick convert" etc., but at leas
129.
▲
by
bewuethr
6y ago
How to actually read QR codes, untar/decompress, bootstrap a C compiler and so on is supposed to be part of the index on each reel, but I'd really love to see these instructions! They are mentioned as the "Representation Info
130.
▲
by
bewuethr
6y ago
The initial archive yes, but the tech tree would be added later, as I understand it.
131.
▲
by
bewuethr
6y ago
Swiss and German layouts have the § key above the tab key.
132.
▲
by
bewuethr
6y ago
You can simplify sed -nr 's/^.{4}(.*)/\1/' to sed -nr 's/^.{4}// And if you use a pattern for the address, you can repeat it in the substitution by using an empty pattern, so
133.
▲
by
bewuethr
6y ago
The one downside of this is that it doesn't handle squeezing flags as in foo -da bar whereas getopts does. On the other hand, with (the Bash built-in) getopts you're limited to single character flags.
134.
▲
by
bewuethr
6y ago
Or sed -rn 's/^### ?//p'
135.
▲
by
bewuethr
6y ago
Some of them have now been built in real life! https://www.behance.net/gallery/77793195/Velocipedia-IRL
136.
▲
OneEleven announces it is permanently ceasing operations
(betakit.com)
1 points
by
bewuethr
6y ago
|
0 comments
137.
▲
by
bewuethr
6y ago
Not trying to extract the bad parts here – this looks like a lot of effort went into it and it certainly is useful – but there are a few wrinkles: [[ $? ]] is always true, even if $? is non-zero; it only checks if $? is non-empty. A
138.
▲
by
bewuethr
7y ago
"Born to Run" has long descriptions of that hunting method. https://www.chrismcdougall.com/born-to-run/
139.
▲
by
bewuethr
7y ago
I was in the same situation and ended up using GoatCounter (see one of the top level comments in this thread).
140.
▲
by
bewuethr
7y ago
Another happy GoatCounter user here!
141.
▲
by
bewuethr
7y ago
The book is based on this article series: https://catonmat.net/perl-one-liners-explained-part-one
142.
▲
How to Read an RFC
(mnot.net)
2 points
by
bewuethr
7y ago
|
0 comments
143.
▲
by
bewuethr
7y ago
$[...] also establishes an arithmetic context, so $[RANDOM % 10] works fine – but you're right, $[...] is not even mentioned in the manual any longer. The release notes[1] say that it's "no longer supported" in th
144.
▲
Should you self-host Google Fonts?
(tunetheweb.com)
289 points
by
bewuethr
7y ago
|
155 comments
145.
▲
by
bewuethr
7y ago
Shellcheck helpfully warns about declaring and assigning in the same statement exactly because it masks exit status.
146.
▲
by
bewuethr
7y ago
I don't think there is.
147.
▲
by
bewuethr
7y ago
Other people have shared improvements to Bash's default autocomplete behaviour; here's mine, specifically addressing the criticisms that you have to hit tab twice and the pollution of terminal history: # Complete unambiguously
148.
▲
by
bewuethr
7y ago
I've used awk for one year of Advent of Code: https://github.com/bewuethr/advent-of-code/tree/master/2016 Some problems feel like they were designed to be solved in awk, like the assembly style ones
149.
▲
by
bewuethr
7y ago
If you want to reschedule your Canadian citizenship ceremony, this is the address to email: RCC.DNCitSCRScheduling-ConvocationSCRCitRN.IRCC@cic.gc.ca
150.
▲
by
bewuethr
7y ago
Additionally, the "anonymous person" isn't anonymous any longer as they have updated their twitter to use their real identity.
More ›