Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
i15e
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
i15e
3mo ago
I'm not seeing any ? marks in my code. Are you referring to the instances of $'\t' ? In bash (and other shells, including recent versions of the POSIX sh specification) $'...' is treated like a C-style string c
2.
▲
by
i15e
3mo ago
A variant: docker image ls -a | stdbuf -oL sed -r 's/\s{2,}/\t/g' | { head -n1; tail -n+2 | sort -hrk5 -t$'\t'; } | column -ts$'\t' I used docker since that's what I have installed
3.
▲
by
i15e
10mo ago
You can use Ctrl+z to suspend the foreground process, bg to resume it in the background, and then wait to wait for it to complete. By default wait will wait for all jobs to finish and then return a success exit code, however if you
4.
▲
by
i15e
2y ago
You could install the Google Drive client and then run WinDirStat against the virtual drive letter that it creates: https://support.google.com/drive/answer/10838124
5.
▲
by
i15e
2y ago
In Firefox you can go to about:profiles to easily open new windows using other profiles. I bookmark that page with a keyword for quick access. (Also see about:about for a list of other handy 'about' pages) A more classic-style pro
6.
▲
by
i15e
3y ago
gf2 is worth looking at: https://github.com/nakst/gf
7.
▲
by
i15e
3y ago
Something to watch out for with nl is that by default it doesn't number empty lines. e.g.: $ printf 'one\n\nthree\n' | nl 1 one 2 three Set -ba to enable numbering all lines. For this use case I usuall
8.
▲
by
i15e
3y ago
Your original command should work fine. find does not pass arguments through an intermediate shell, so there are no quoting concerns with regard to spaces in filenames, etc. And with the form of -exec terminated by a ; it runs a singl
9.
▲
by
i15e
6y ago
I did something similar using the 'at' daemon's 'now' time specification to "fork" off background tasks from a web request using the same .php file. It actually worked well for what I needed at the time!
10.
▲
by
i15e
6y ago
Another plus of DroidCam is that it supports streaming the video over USB so no WiFi is necessary.