#Bash programming
Explore tagged Tumblr posts
Text
you shouldn't need to cat the link file. I think… just for i in media-links.txt; ? Not sure of syntax, on my phone in bed RN
For the URL encode issue, try mv "$file" "${count}-${file}"
Always quote your vars, and use the curly braces too if needed
also seems like file=echo $i is useless? It simplifes down to file=$i as far as I can tell (while adding a chance of unquoted spaces and such)? Just use $i later on in the mv, should be the same.
I hope this may help, on the other hand like I said this all out of my brain no testing or even lookup cause on my phone and its a pain, so maybe it is useless and wrong LOL
Also check out the linter "shellcheck", it is fucking rad.
So, wrote a dumb bash thing
$> count=$(wc -l media-links.txt) $> for i in $(cat media-links.txt); do wget $i; file=echo $i | awk -F '/' '{print $NF}'; mv $file $count-$file; count=$((count - 1)); sleep 2 ; echo ================================; done
It mostly works, although that sleep apparently needs to be longer because I was getting of "ERROR 429: Too Many Requests".
The rename doesn't always work because sometimes the URL has a URL encoded character, which gets decoded by wget when the actual file gets saved. e.g.
--2024-07-01 00:11:17-- https://static1.squarespace.com/static/55dca83de4b018ac1524526f/t/622990a6d88dfa624f168cbd/1646891207920/Samuel+Spruce%2C+The+Little+Wooden+Boy+in_+The+Frosty+Wood.mp3 Resolving static1.squarespace.com… 146.75.32.238 Connecting to static1.squarespace.com|146.75.32.238|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 33151680 (32M) [audio/mpeg] Saving to: ‘Samuel+Spruce,+The+Little+Wooden+Boy+in_+The+Frosty+Wood.mp3’ Samuel+Spruce,+The+Little+Wooden+Boy+in_+The+Frosty 100%[=================================================================================================================>] 31.62M 20.2MB/s in 1.6s 2024-07-01 00:11:19 (20.2 MB/s) - ‘Samuel+Spruce,+The+Little+Wooden+Boy+in_+The+Frosty+Wood.mp3’ saved [33151680/33151680] mv: can't rename 'Samuel+Spruce%2C+The+Little+Wooden+Boy+in_+The+Frosty+Wood.mp3': No such file or directory
Anyway, that's a problem for future me.
14 notes
·
View notes
Text
in another life
to think that haruka's trust in premium adventure is basically kiryu daydreaming......... ough (source)
#astarsor🌟#not happy with tumblr's 10mb gif limit... had to compress a lot :(#anyways! this was made using Aseprite (for the pixel art) and Blender (for additional animation + compositing)#it was fun to bash the two programs together to make this 🫃#kazuma kiryu#haruka sawamura#ryu ga gotoku#rgg fanart#like a dragon#yakuza 5#3d art#blender 3d#b3d#aseprite#pixel art#pixel gif
344 notes
·
View notes
Text
Danyal Al Ghul's missed potential - this kid is not gonna behave like his canon self if he's with the league of assassins until his late formative years, and my reasoning why
(feel free to take this all with a grain of salt this is just my thoughts on it, this is all mostly amusing to me and isn't trying to be negative towards anyone else)
similar to how i was talking about how danny growing up in crime alley would affect him, demon twin aus with danyal al ghul make me laugh a lot (affectionate) because... whose teaching danny to unlearn all the ecofascism he picked up from the league of assassins? whose teaching him to be kind? to be gentle? Not the LoA thats for certain.
(you could plausibly say Jazz but she's only 2 years older than Danny and do you really expect a fellow child to properly explain why X is wrong to another child and have it be 100% effective? i don't doubt it'd help to an extent, but not in the same way an adult explaining it would)
plus a ton of other things, like whose teaching him to value human life? not the LoA. Whose teaching him how to adjust to living with American society after he ends up with the Fentons when he's 8-9-10? Who teaches him that killing is wrong, whose enforcing that?
(not the Fentons if you're going the neglectful parent route, and Jazz can try but i really don't think Danny is going to listen to her, a stranger who isn't even part of his grandfather's league)
How do you teach a child to value human life when the greatest development window for that opportunity has closed and he's already formed his own opinions?
You're not gonna get a Danny whose exactly like his canon attitude if he's staying with the league during his formative years (0-8 years old). you're not. You could get someone LIKE it, potentially, or someone who has traces of it or is similar -- like danny's wit and jokes and sarcasm, and on some level his kindness. but you're not gonna have a carbon copy. Development doesn't work that way. "nature" can only do so much in the face of nurture.
If anything, it doesn't even have to be a major change -- in the league he cans till be kind, but it's probably going to manifest in a different way than what is considered normal. Tough love, for one. But there's gonna be something that affects him negatively. Why make him 'always good/kind' when you can make him a brat who develops into a kinder (if spikier than in canon) person?
TLDR: Danyal Al Ghul would not be like how he is in canon if he's with the league until his late formative years -- not without any lasting pr permanent impacts from the league at least. Missed potential to make him an absolute nightmare like damian was -- especially in his early years when he first arrived to the Fenton house.
(this doesn't apply to danyal al ghul aus where he's either given to the fentons as a baby/is reincarnated/etc. this is mostly aimed for danyal al ghul aus where he fakes his death at like, 7-10 and somehow ends up, personality-wise like his completely canon self by 14 without any differences.)
(and even then if he's five or four, or even three, he would still be traumatized and influenced by the league. he'll just have more time to adjust. the sooner he leaves the league the more likely he is to be like his canon self, but not like an exact copy)
(more under the cut)
Anyways what I'm saying is that there is prime missed Danyal al Ghul potential to make him an absolute NIGHTMARE to the Fentons however way he ends up with them, just like Damian was with the Waynes! Cuz why does Damian get all the fun? Danny got the same training and endoctrine as him! He is also an ex-assassin! Why is Danny the only one who is 'well adjusted and non-violent' hm? Hmm?
Why can't he also be mean, and stabby, and a total stuck-up in some way or another? Have fun with his characterization, its prime opportunity to play play-doh and clay with him! If he starts out as X how does he get the personality traits of Y, and thus become XY?
Like take this with a grain of salt if you will, but make him arrogant. Make him an asshole! Make him a bad person at first! Because he will be! He's the blood son of the batman and you mean to tell me that damian is the only one arrogant about it at first? Make him stabby and mean even at 14 when he's begun to chill out! Have fun with it! If he's with the Fentons at any point past the age of four or five then he's gonna be a nightmare to handle because he still remembers the league and his time there.
(and while it gives him more time to chill the hell out, his time at the league is still gonna leave an impact on him.)
also what im saying as well is have him and sam potentially get along like a house on FIRE. Again, Danny grew up under the views of an ecofascist cult and nobody to challenge those views to him until he got to amity park at whatever age in late formative years he was at. He could be about as intense or even MORE intense about environmental awareness/rights than Sam is!
(also him being supremely unimpressed with Sam's wealth. he gave up a palace in the mountains for this town. because that's funny to me - like let his past have more influence on him! it'll be fun!)
you could have a danny who doesn't kill but doesn't fully understand the value of human life because jazz is like two years older than him and isn't that good at explaining why people's lives are important. he won't kill but he's not morally opposed to it. there's very little chance he actually gets bullied at school because he nearly killed Dash the first time he tried anything.
Danny could have scars, physical ones, because its implied in multiple canon that training starts at toddling (my best bet is 3 at minimum and ~maybe~ 2 but only on the later side of 2. Good fucking luck getting any infant under 2 to do anything you ask, ESPECIALLY assassin training. They're gonna stick the weapon in their mouth sooner than they're gonna do katas. This is coming from a daycare teacher.)
there's more examples of how danny being at the league during his formative years would affect him, but those are just some of them. he could have a sword! An appreciation for weaponry and nature. Maybe he still speaks all shakespearan and formal, does he still make bodily threats to people? If Damian is still threatening people at 14 why can't danny?
#dpxdc#dp x dc#dp x dc crossover#dpxdc crossover#dpdc#tldr danyal al ghul has a ton of missed potential of what his behavior would be like if he left the league mid-to-late formative years#this post is specifically directed towards those danyal al ghul posts where he ends up with the fentons when he's like. 8#like great. who taught him to unlearn all of the LoA's programming#how is he exactly like he was in canon despite being with the LoA during his early childhood#source: i've taken multiple child development classes#this isnt to bash those aus at all its just me thinking its hilarious that danny would even remotely be like his canon personality#especially if he's in the league long enough for damian to remember him#like i love danyal al ghul aus i just think there's not enough being taken into account about how the league would permanently impact him#especially if he leaves later on in life#people are not ponds they are puddles of mud. if you drop a rock into it it's gonna change its shape#its also good creative exercises on how to flesh characters out better and better understand how things in a story may impact a character#good thought exercises with the additional bonus of making danny a violent gremlin like damian is#i dont wanna say this is bashing but i guess it is kinda a criticism on the writing in those aus because you’re telling me this had NO#affect on danny on his personality beyond just ‘oh league bad. league scary’?? cmonnn have some fun#like you mean to tell me that being a child assassin had no lasting impact on him or his personality?? like at all???#he doesnt have an ounce of self-importance/arrogance/anger like damian did?? like none of that *stuck?* he’s just the normal and sane#sibling right off the bat??? five years with the fentons turned him into a complete blankslate?? he has no lasting impact from the league??
184 notes
·
View notes
Text
bash to python
95 notes
·
View notes
Text
Tooth fairy’s new skin is so pretty
#my art#fan art#reverse 1999#r1999#reverse 1999 tooth fairy#tooth fairy#I might actually spend money on a skin for once#reverse 1999 fanart#r1999 fanart#tried photo bashing for the first time#I don’t think my art program is ment for it
30 notes
·
View notes
Text
so yea, I automate booping
maybe you saw it, prob you didn't, but I automated booping
but dario, you probably aren't asking, how can I do it too in a simple yet powerful way?
well, I'm here to answer the question nobody asked, with a little bit of bash
first, choose you victim(s)
this goober will do
then boop em
next, open inspect elements and navigate to the network tab
now press the bin to clear everything
now boop
when you have done that various GET requests will have appeared, choose the boop one, right click->copy as->copy as cURL
this will give you your cookie too, this kind of cookie mus NEVER, and I repeat NEVER be shared, it gives access to your account bypassing any kind of 2fa
then create a basic bash script, just a for loop will do but if u don't know what u are doing, copy this (if on windows copy as powershell instead and figure it out)
no, I did not cum on the script, I censored my cookie
this will trigger the anti-spam, so putting a sleep 0.1s before the done might be useful
the script is (put whatever you want instead of 100)
for i in {1..100}; do
[insert the curl]
[optional]sleep 0.1s
done
69 notes
·
View notes
Text
Whoops I made a robot boyfriend for myself 🫠
#robot dreams#dutiful detached and stoic on the outside but shy and bashful on the inside#working idea is that hes from a model of bots popular w families as companions/safety buddies for kids#so hes like programed to be very watchful and attentive and protective but ges also kind of aloof#More like a buddy system bot then a beat-badguys-up bot but his demeanor and presence is a little intimidating#anyway thats relevant because my persona would be a single 20 soemthing enby female in the big city and thats PRETTY SCARY KINDA DANGEROUS
24 notes
·
View notes
Text
Follow up to
This was one of those pieces that I eventually realized I'd never finish to satisfaction, so here it is as it... well, is.
Captain Hopper managed to snatch the little princess up and began flying back to base with his prize, only to realize he had a stowaway. Better let go, boy. This bike ain't built for three.
Flik agrees. Now if only he can persuade the captain to give up his seat...
#a bug's life#a bugs life#princess dot#dot#hopper#flik#humanization#gijnka#hopper's cool jetski hovercraft thing#He just can't stop kidnapping poor Dot#He really needs to work out like a timeshare program for her between him and the kingdom#Also Flik is about to bash some fools
12 notes
·
View notes
Text
can russia and north korea just nuke us already this is hopeless
#sorry to be so fatalistic on main i just have zero faith in the american public atp#i just rly wanted to believe that more americans couldve used this opportunity to prove to the rest of the world that we arent all a bunch#of sensationalist/conspiracy-driven/aggressively braindead/violent/bigoted alt-right lunatics#& i never had much faith in kamala & walz to begin with obviously im incredibly cynical towards these status quo gatekeepers and the#downright impotence of the neoliberal democratic party#but this wouldve been an easy swerve away from dozens MORE of horrible awful inhumane policies that will ultimately vanquish#the quality of life for the entire american working class like myself and our already pisspoor education system and our lousy#climate change policies and impossible living standards#but no unfortunately there is no way in hell for americans to prove even a modicum of intelligence or worth we're all basically suicidal#and despite my own immense yank bashing tendencies and complete disdain for our government i really wanted this country & my ppl to defy#our own reputation of being so fucking stupid and backwards i really did. in the tiniest little place of my heart was legitimate hope#& a tiny bit of patriotism thats now been squashed completely & this was just another large-scale international humiliation that we legit#voted that guy BACK IN after everything that has happened the last four even eight years. its unbelievable.#again obviously i dont like kamala but it still wouldve been a grand opportunity to stall against what the gop is already destroying#and with push and shove we could have made slight progress forward as a country and try to protect our social programs#be it as flawed as they are and with enough support we could have strengthened them a little. make drugs less expensive. continue forward#with clean energy decreasing our use of fossil fuels even more.#protect our education system so the up and coming generations could receive higher standards of learning than what the rest of us had#NO ABSOLUTELY NOT. im too poor to continue living here and im too poor to fucking leave !!!!!!!!!!!!!!!!!!!#SORRY THIS WAS EXTREMELY EXTREMELY EXTREMELY LONG THANK U FOR READING IF U DID MY BRAIN FEELS LIKE MUSH RIGHT NOW SO I DONT KNOW HOW#INTELLIGIBLE THIS MAY OR MAY NOT BE#and if this makes anyone mad @ all then ill just delete it cuz by god i dont need more grief and self hatred !#txt
7 notes
·
View notes
Text
Fix Settings in Gnome Terminal (linux)
#!/bin/bash
_setProfile() { gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$1/ $2 $3; } _setTerminalProfile() { prof=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d "'"); _setProfile $prof use-theme-colors false; _setProfile $prof background-color '#000000'; _setProfile $prof foreground-color '#FFFFFF'; _setProfile $prof use-transparent-background true; _setProfile $prof background-transparency-percent 60
} _setTerminal() { yay -Runs gnome-terminal; yay -S gnome-terminal-transparency; _setTerminalProfile; yay -Runs gnome-console; }
_setTerminal
#programming#linux#ignore this i'm just moving a bash script from one computer to another#not relevant unless you also want to make your terminal transparent for some reason#only works on arch linux you have to change yay to your pkg manager#mit license
9 notes
·
View notes
Text
The birthday bash continues with Eren Yeager!
I remember following a tutorial for this that incorporated both alcohol markers and colored pencils and I wanted to try that too. I think I did the background different as it was likely a little difficult for me at the time, so I did random splatter shapes, as is the theme of Attack on Titan
July 2014
#krys's birthday bash#traditional stuff#krys draws fanart#I also did a version of different color layers#because I could do that now bc I had a browser program that could do that at the time#but something about the original is pretty good
5 notes
·
View notes
Text
sorry for spamming everyone with rory today. the madness is over at 445 and then it's back to normal posting again
6 notes
·
View notes
Text
Little known programming fact:
The amount of slowness in software is constant.
Exercise for the reader: find the symmetric property due to Noether
C++ achieves fast executables by pushing all the slowness into the build process.
A Project which would build for go in 20 minutes will build for 8 hours for C++ for a 1% speed-up in runtime.
#programming#shitpost#c++#expect some c++ bashing in the coming days#i have to went somehow#while i re-learn everything#i've drank so much to forget
6 notes
·
View notes
Text
Babygirl i miss you
#it ran a debian clone called maemo. you could just run whatever's in the repo on it#including GBA emulators. :)#but also a bash shell#i used to do my programming homework on it back in uni (we weren't allowed laptops lol. i might be the reason for that too)#phones need hardware qwerty keyboards again. fuck just buttons in general will do. i wanna go clicky clacky#nokia n900#tech#techcore#mobile phones#cellphones
123 notes
·
View notes
Text
current stress level: we have an event tonight and the programs for it STILL haven't been approved/gone to print
#bashing my head on the keyboard#and we have an event TOMORROW who's program ALSO isn't approved. and one the NEXT DAY which GUESS WHAT ? ALSO ISN'T#i as the graphic designer can only do so much when i need to wait for ppl to give me information & approve it. dying#grandpa max is god? i go to church now
25 notes
·
View notes
Text
#programming#software engineering#full stack software developer#compsci#python#bash#shell#php#golang
66 notes
·
View notes