#command-line
Explore tagged Tumblr posts
revvethasmythh · 2 months ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
happy birthday to THE bitch of all time
5K notes · View notes
scipunk · 25 days ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media
Outland (1981)
1K notes · View notes
artoria2e5 · 2 years ago
Text
Some code I've been meaning to perfect, but don't have the energy to.
I know this is a very sharp departure from what I used to post. I haven't had the energy to take them for a while; plus I'm fat now. Sorry about that. There was a good time when my boobs were big and the belly not as round -- more like triple-stacked -- but come on. We don't post nipples on this site.
I also didn't have enough energy to follow through on many of my things. A lot of them are still VERY USEFUL things to me at least, but everything's just too much of a drain. There's a possibility of someone also finding these things useful, so I figured a blog post will help make them somewhat findable with a search engine.
Well, I suppose GitHub pages would be a better place. But I've already got kind of a blog here...
Windows argument passing in node and cygwin
Python plistlib for openstep formats
Windows argument passing
The thing about command-line on Windows is that it's the wild west. Programs do not actually receive an argv[] array like you have been conditioned by C to believe; instead they get a "cmdline" string to do whatever the hell they want with it.
Still, in that sea of insanity, there is one constant. Regular programmers are lazy. They just use whatever the runtime library does with the command line. In these cases you get a somewhat predictable behavior -- "somewhat", because even amount Microsoft runtimes the behavior differs -- and you can write some sort of an escaping function.
Beyond the runtime, cmd.exe also has its own understanding of how quoting works. Most disgustingly, it understands where double-quoted parts start and end differently from msvcrt. I've got a trick for that.
Node
The node PR, at https://github.com/nodejs/node/pull/29576, is focused on quoting. It's got proper quoting for bash, pwsh, and cmd + msvcrt. It's got very strong test cases (throw them at other people's things: they might break!) and good documentation. What it didn't have is communication and rizz. You're advised to skip to the "files changed" tab.
The cmd "trick" is explained at https://github.com/Artoria2e5/node/blob/c0a6aff35cd3ff6d3bd0e3687776158e97466c93/lib/child_process.js#L850. The gist is that msvcrt and .NET treats two double-quotes as if it's an escaped double-quote. It's undocumented, sure, but Microsoft's own code relies on it.
doc/api/child_process.md has a good chunk of text explaining how Windows cmdline works and who deviates from the norm. And that leads to our next suspect: Cygwin.
Cygwin
Cygwin is the way to run POSIX things on Windows these days. Sure there's MSYS2, but guess what? It's a Cygwin fork. If you are using the official Windows build of git, you're using MSYS2, which in turn means you're using Cygwin code.
Cygwin is not msvcrt, obviously. But what's less obvious is that it doesn't process cmdline the same way. That bites you HARD when you want to run a Cygwin program on a file with weird characters.
The patchset at https://github.com/mirror/newlib-cygwin/pull/5, formerly a botched e-mail exchange ending with me being too tired to split the patchset (come on, it's almost impossible to have intermediate stages that build, let alone work!), was my answer to the problem. It rewrites the cmdline parser to be msvcrt-compatible, while still keeping the Unix-style globbing and @-expansion features.
It's fucking awesome is what it was. It's written in C++ with in-place processing. What else can you ask for.
Oh, in case you want to know what my current answer to the problem is: roll into a ball and cry.
Openstep plistlib
So if you use an Apple product and do things that Apple don't really like you to do, you have probably came across a "plist". Nowadays plists are either an opaque binary file or a very wordy XML. Back in the good old days plists were not like that at all: they read more like JSON, except they only supported strings and dicts.
Python's plistlib does not care about the old style. It should, because it's fucking beautiful. It's also as functional as the new stuff is, as long as you use the GNUStep extensions.
I wrote a Python package to do just that (or did I? does it work yet?). https://github.com/Artoria2e5/text-plistlib As far as I can recall it works on a round-trip smoke test, but some extension decisions needed to be hammered out. It uses tatsu though, so there's no chance of getting into the plistlib part of the standard library.
I think I've also got some other things related to this plist format open somewhere. I wanted to write a parser for opencore to cut down on this XML misery, but COME ON IT'S C. I can't even keep track of a plain recursive descent parser in Python (why else am I using a parser generator?), to do it in C? No way. I'm also too lazy to learn yacc, thank you very much.
Other things
something about https://marc.info/?l=openssh-unix-dev&m=168509072920594&w=2
Dream the DRM receiver/broadcaster has bad Opus options. Dev said I should open a branch. I think I can't, because I can't even get the official binary to run. I also lost my slightly illegal SDR kit.
I've definitely forgotten older things.
0 notes
theribbajack · 11 months ago
Text
Tumblr media Tumblr media
"Now, the vow will be honoured, and my Lord brother's soul will return."
Radahn stans keep winning, but I personally am in Miyazaki's walls rn
2K notes · View notes
stormyskieswalker · 25 days ago
Text
I know that codywan is purely a fandom invention, so it shouldn’t shock me that the majority of content of the two is fluff, but their canon dynamic can be exploited for some of the best angst known to man.
Like imagine you were always meant to kill him. You were born to kill him and yet he treats you like a person, something that has only been afforded to you by your brothers. He’s everything you were told a jedi would be. He’s certainly not perfect. He had a lot to learn about becoming a general. (You wonder how many of your brothers died because him and his order didn’t study some goddamn tactics before going to war) He acts rather above it all at times, which is annoying, but you guess you would be too if you could move things with your mind. He’s very particular, but somehow able to talk his way out of some of the worst situations you’ve ever seen.
Sometimes he invites you for tea when you could be going over battle plans(the plans calm your nerves more than tea ever could) and despite how much he may pretend not to, how much he is desperate not to, he cares. He cares so deeply about his former padawan (their bickering reminds you of petty fights with the other cadets), he cares about keeping his men alive, and for some inexplicable reason, he cares about you. You find yourself also caring about him. You’re not supposed to be feeling this way, none of your brothers should. He’s your superior officer, so you say nothing when your heart skips a beat when he claps you on the back. You stay for longer than you should when drinking that bitter tea. You ignore the smiles and knowing looks your brother gives you. You’re happy, and the end of this war will make it all worth it.
Except it’s not.
He betrayed you and your brothers. You fought side by side with him and for what? Him to betray everything you ever fought for? You tell them to take the shot, not hesitating for one second. The only thing you need in that moment is him dead. And just like that the war is over. All the hurt, all the suffering, is finally over. But you feel like you have a hole in your chest more hollow than any blaster shot could make you feel.
Your brothers are dying less than they ever have, but you feel even less like a person than before. You follow orders. No one asks for your opinion. No one asks for your name. You are disposable and you know you will be replaced. Citizens who used to flee towards you are now fleeing away from you, as if you were as unfeeling as the droid army that tried to take them over. Only it wasn’t them who took over, was it?
This empire, which the deepest part of yourself is telling you to trust, goes against everything you were ever taught to defend. The first thing this empire ever told you to do was to kill the man who risked his life countless times for you and your brothers and you did it without question. Why? It seemed like the right thing to do at the time. Maybe if you had waited, had thought for just a second longer, Obi-Wan Kenobi would still be alive. He would be alive, put a hand on your shoulder, smile in that way that makes the edges of his eyes crease, and tell you “I forgive you, Cody.”
But it’s done. You’ve already killed him. It happened a long time ago in a galaxy far, far away. It is already over. Nothing can be done to change it.
693 notes · View notes
limeshade · 8 months ago
Text
Tumblr media Tumblr media Tumblr media
She wipes her mouth. Picks up an old, broken REBELLION HELMET. Puts it on, just 'cause.
STAR WARS: THE FORCE AWAKENS (2015) Screenplay by Lawrence Kasdan, J. J. Abrams, Michael Arndt
1K notes · View notes
cherrytastiq · 7 months ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media
i liked this show a lot. my slop
1K notes · View notes
beskarfrog · 2 months ago
Text
Tumblr media
@rebel-hunk-enjoyer has been shaking my brain around like a can of soda all day with this post, please enjoy older padawan obi-wan causing cody the most distress
519 notes · View notes
izzieedraws · 3 months ago
Text
Last Line Challenge
I got tagged by @raphaerolo 🩷
I haven‘t had much time to draw lately so my last line must‘ve been the light on Cody‘s iconic curl 🙂‍↕️
Tumblr media
No pressure tags:
@gooserolls @dontbelasagnax @zukoupy
564 notes · View notes
chiliger · 7 months ago
Text
Tumblr media
Did you hear about the sun that died in the dark?
No black hole or a nebula left in its trace.
What a sad thing to happen.
592 notes · View notes
sabellart · 1 year ago
Text
Tumblr media
cody the man that you are
2K notes · View notes
chiropteracupola · 1 year ago
Text
Tumblr media
c. 1540 CE: a young man from Chalco, and his dragon.
1K notes · View notes
scipunk · 8 months ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media
Fallout (2024)
1K notes · View notes
blondie-drawings · 9 months ago
Text
Tumblr media Tumblr media
GEORDI💛DATA AND DATA💙GEORDI
859 notes · View notes
halfhumanhalfasleep · 3 months ago
Text
Tumblr media
GODDAMNIT THIS WAS SUPPOSED TO BE THE SKETCH LAYER
(extra bonus points if you can guess the inspiration for this one)
243 notes · View notes
three-fold-symmetry · 2 years ago
Text
Tumblr media
Day 3 of @subcodyweek - Prompt: Praise kink
They didn't train him for this on Kamino.
4K notes · View notes