- 1 Post
- 105 Comments
PoolloverNathan@programming.devto Programmer Humor@programming.dev•Like programming in bashEnglish11·4 months ago(?=)
for positive lookahead and(?!)
for negative lookahead. Stick a<
in the middle for lookbehind.
It’s equivalent to
cp -r
, but:- the copy is read-only
- reuses unchanged files
- easier to share (
btrfs sub send
)
btrfs sub snap -r
PoolloverNathan@programming.devto Programmer Humor@lemmy.ml•You can lead a P to M but you can’t make ’em F’ing R1·5 months agoExample code >= Documentation
Yes, with
--privileged
. It’s totally safe. Trust me.
symlinks (or whatever windows calls them)
Windows actually has two types of symlinks:
- Shortcuts: stored as regular files on disk; only function as a symlink from Explorer.
- Actual symlinks: stored as actual symlinks (or NTFS reparse points). Transparent for all apps, but can only be created using
mklink
. - There’s also junction links apparently, but afaik they’re just bindmounts.
moving a symlink can sometimes move all the data too.
Probably, someone managed to create a real symlink in their OneDrive folder, and since OneDrive probably doesn’t check for symlinks it blindly copied all the files to the cloud.
Take all this with a grain of salt — I’m not a Microsoft developer, and it’s been a while since I last used Windows.
PoolloverNathan@programming.devto Programmer Humor@lemmy.ml•It's a Unix system! Elon knows this!181·6 months agoNot if you’re a Bash programmer ·υ·
PoolloverNathan@programming.devto Programmer Humor@programming.dev•Really seems like they're missing one...14·6 months agoIt probably opened it in
${VISUAL:-${EDITOR:-vim}}
; usually setting one of those variables in e.g. bashrc will avoid future vim.
PoolloverNathan@programming.devto Programmer Humor@programming.dev•Gotta use those quantum numbers for peak 🤌 random randomnessEnglish25·6 months agoI’m worried about relying on remote servers for random numbers, especially for cryptographic purposes. There’s no way to verify that you aren’t the only person with access to those numbers, and it’s fairly difficult even as the sysadmin to ensure that they’re logged nowhere.
I’m not really into writing interactive fiction; I just tried it a little since it seemed neat. It turns out that I’m not great at coming up with things to write about, which makes it hard to actually write. Inform 7 makes some decisions that complicate using it with a programming background; I’m considering trying to write my own language for similar purposes (but different paradigms).
Even natural-language languages like Inform 7 require a little programming knowledge for when it hates you.
PoolloverNathan@programming.devto Programmer Humor@programming.dev•Thinking I could clean up my files in a SIGINT handler1·6 months agoSIGHUP or SIGPWR, maybe?
PoolloverNathan@programming.devto Linux@programming.dev•Chinese hackers exploit Linux with new WolfsBane malware1113·7 months agoWindows is harder, so less valuable to spend time on.
PoolloverNathan@programming.devto Programmer Humor@programming.dev•Microsoft Please Fix4·7 months agogit add -p
Oh, that’s annoying. Works fine on Voyager for me.
Same for users — just change the ! to an @.
Example: @pageflight@lemmy.world
PoolloverNathan@programming.devto Programmer Humor@programming.dev•You seen the jank? I live in it.. molded by it...7·8 months agoWhy not factor out the
!
via de Morgan’s laws (which would also remove most of the parentheses, as iirc&&
binds tighter than||
)? Also, does that language have a{#continue}
sort of syntax for loops? If so, you could make it a guard clause.
https://beepbox.co/ for example