Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "shell"
-
Ghost in the Shell (2017)undefined ascii i need to study for exams shell i have too much free time ghost bash ghost in the shell28
-
Today I discovered by myself that...
...in a shell...
...when entering a password (e.g. ssh)...
...and you make a typo... 🤦♂️
...you don't need to smack that backspace key like a maniac! You can just use the clear line shortcut: control+U (^U). This clears all input to the left of your cursor and this also works for passwords.26 -
I created a script with power shell that notifies me before I leave the office if my train is on time or isn’t. See the comment for another image of when the service isn’t on time!26
-
Can't ssh to my vps at work; hello new hobby project!
(server hosted on vps, http request -> shell -> http response)
Next up is supporting an interactive shell18 -
Left one of the demo macs at Best Buy with vim running on a terminal shell. Let's see how long it takes for them to exit vim.5
-
That moment when the new guy tells u "slow down, idk anything bout programming" and u were just asking him to type ifconfig to find out his ip.
Seriously?5 -
Yesterday I was updating the code in a linux server at 23:00.
My 6 year son look the terminal while i was typing and said:
"Dad, why you always write in block letters? I can read and write also in italics."
"Dear son, you are smarter than my PC."11 -
Well, I did it.
I spent 45 minutes writing my first hacky, shell-and-python automation script to save me 15 seconds every morning.12 -
Just found out that the generic router that our ISP gave us, which we use at work, has a port you can telnet into to get shell access with root privileges.12
-
Feels great to write a script that downloads consecutive episodes of a series sequentially ..
All because..
Hotstar doesnt support Linux ..16 -
Laides and Gentelmen! It my pleasure to present to you the next level in the Linux desktop! MATERIAL SHELL!!!
https://github.com/PapyElGringo/...
Demo video: https://i.imgur.com/2UVZTnk.mp425 -
Working on adjusting a shell script to my needs.
The fucker quits execution after an apt update command is ran.
No reason, it just fucking quits. No error messages or whatever, nothing.
This script can go suck a cock.9 -
Windows:
32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition.12 -
What's your favorite shell alias that you made for yourself?
I use this one all the time:
squash () {
git rebase -i HEAD~${1}
}
Runner up though is `git-fuckit` which resets everything to origin/master.13 -
I need to make a confession. I wrote shell scripts that will automatically turn on my system and will download games and movies for me after office hours, using office internet10
-
Win10 shell has ssh? Oh boi, let's try that out.
> help ssh
This command is not supported by the help utility. Try "ssh/?".
> ssh /?
ssh: Could not resolve hostname /?: Name or service not known.
😲🔫9 -
Feeling like an absolute idiot after I spent an hour and a half trying to get Gnome3 to work with shell extensions, before remembering I use xfce.5
-
Fuck project setups that
- Have huge nested enterprise folder structures like Java
- Use tons of shell scripts / makefiles
- Have every config file in the root folder
- Don't tell me what I need / how to build
I know some of these can't really be changed easily, but fuck this cluttery mess!25 -
When my neighbor forgets to lock his computer, I append this to his bashrc
alias cd='cd $(ls -d */ | sort -R | head -1) && echo'7 -
yesterday: oh what the yeck? 'cd' fills your path by hitting 'tab' once? How the hell could i survive the past 6 years i've been using linux?
today: oh, what? no... it works with every command in the shell.... linux does that for you <313 -
I just made a shell script that checks the ratings of movies that I have locally in IMDB and plays the one with highest score. #justsaying7
-
!rant
A rather long(it's 8 hrs long to be precise) story
So I just finished an amazing homework assignment. The goal was to open a new shell on Linux using a C program. We were asked to follow instructions from http://phrack.org/issues/49/14.html . However the instructions given were for 32 bit processors and we had to do same for 64 bit machines. In a nutshell we had to write a 64 bit shell code and use buffer-overflow technique to change the return address if the function to our shell code.
I was able to write my own shellcode within 1hr and was able to confirm that it's working by compiling with nasm and all. Also the "show-off-dev" inside me told me to execute "/bin/bash" instead of "/bin/sh"(which everyone else was going to do). After my assembly code was properly executing shellcode, I was excited to put it in my C code.
For that, I needed opcodes of assembly code in a string. Following again the "show-off-dev" inside me, I wrote a shell script which would extract the exact opcodes out of objdump output. After this I put it in my C code, call my friend and tell him that "hell yeah bro, I did it. Pretty sure sir is gonna give me full marks etc etc etc". I compiled the code and BOOM, IT SEGFAULTS RIGHT IN FRONT OF MY FRIEND. Worst, friend had copied a "/bin/sh" code from shellstorm and already had it working.
Really burned my ego, I sat continuously for 8 hrs in front of my laptop and didn't talk to anyone. I was continuously debugging the code for 8 hrs. Just a few minutes ago, I noticed that the shellcode which I'm actually putting in my C code is actually 2 bytes shorter than actual code length. WHAT THE F. I ran objdump manually and copied the opcodes one by one into the string (like a noob) and VOILA ! IT WORKED !!!
TURNS OUT I DIDN'T CUT THE LAST COLUMN OF OPCODES IN MY SHELL SCRIPT. I FIXED THAT AND IT WORKED !!
THE SINGLE SHITTY NUMBER MADE ME STRUGGLE 8 HRS OF MY LIFE !! SMH
Lessons learnt :
1)Never have such an ego that makes you think you're perfect, cuz you're retarded not perfect
2)Examine your scripts properly before using them
3)Never, I repeat NEVER!! brag about your code before compiling and testing it.
That's it!
If you've read this long story, you might as well press the "++" button.6 -
Best decisions:
- Switching to Linux entirely
- Learning how to use the shell
Worst decisions:
- Using Windows 8
- Hardcoded passwords (I built a small thing for myself, don't judge)3 -
Now here comes my first zsh shell plugin. Its called dogesay and it will repeat your command with much, wow, nice...11
-
A. Java at work and on my android app
B. Python for machine learning
C. Shell scripting for work and personal projects
I am writing echo in python and import in bash. My brain is like a soup now.3 -
Customised my Ubuntu VM using
I3wm, polybar, Compton, conky, rofi,
And zsh shell !
The theme is inspired by unixporn subreddit post!
Btw it took 4days completely to do9 -
Wrote my first Gnome Shell extension.
It shows the propability that my favourite streamer on Twitch streams today with a statistical algorithm I only wrote for this purpose.
I feel a bit cool now, yeah, maybe more than I should.
But it's so exciting!7 -
I hate when I'm in a SSH shell on my phone and all my non-techie friends think I'm programming some elaborate app3
-
I'm OK with C language, but I refuse to learn Shell. My co-workers who use shell don't talk to anyone and look like zombies. Hell no. I don't even know their names after working 2 months together. Fire me.10
-
When you watch the new Jason Bourne and see people from CIA hacking a laptop from an Old cellular with a "shell code", or other people saying "use SQL to hack the database"3
-
Since the past 7 months I was working on a project coded in C++ and shell script.
Today I was shifted to a project where I'm required to code in JavaScript and SQL.
I can't differentiate between my head and a scrambled egg.6 -
Don't we all just love that guy, that loudly talks about Linux and is almost zealous about it but when questioned about simply stuff, like basic *nix commands and shell scripting, looks like he just arrived from space... :D4
-
That moment when you realize you're using a Hackintosh with VirtualBox and a CF card to install a Beta version of MS-DOS with DOS SHELL that your brother found on an old BBS forum; on an IBM 5150 from 1981.
-
'yes' in linux shell has become my favourite command when i discovered it. it has a careless touch to it, like "yeah whatever just do the thing".
also, i like glutMainLoop. a saw doll inside my head says "let the game begin!" each time i type this function.1 -
Over the past week I've been working on a game written in JavaScript (in the browser) which can be played with hand gestures seen by a camera (wanted to use an IR camera but couldn't get one in the time I had). It is the well-know Shell Game!
Blood, sweat and tears went into this because I wrote my code extremely bad so it became a huge clutter.
Will refactor some day, but I'm happy with the result!4 -
Super trivial but who ships a laptop to a new employee with random software on that is clearly for their own preferences? I don't use classic shell, I don't like classic shell, and it hugely fucked with both my opinion of the new place (an IT company, ffs) and my estimation of the person who configured it. Do whatever shit you must on your own machine but get out of my way and let me use the fucking os without more pointless shit! I wouldn't do this to you, no matter how much I might love some obscure additional layer for primarily nostalgic reasons. Raging!7
-
It all started with a simple shell script that ran a bunch of build commands.
Then it became a python script that ran a bunch of build commands because why not?
Now it's becoming an electron app with a jazzy UI.. that runs a bunch of build commands. Because why not! -
Hey guys I'd like to share a Lua-based shell I've been working on the past few years. It's entirely complete, allows for all windows and Linux commands. I've been working very hard on it so I'm super excited to share it with you all. Here's the source.
--[[
The Lua Shell (lush) by AlgoRythm
]]--
while true do io.write(">> "); os.execute(io.read()) end4 -
I can't explain why, but I really like writing small tools in shell script.
Its so simple but so powerful.7 -
Just spent about 15minutes trying to figure out why my beautifully formatted f'{strings}' code was returning "invalid syntax".
Turns out I was in a Python 2 shell. How's your day going? 🙂4 -
Writing 'echo var' instead of 'echo $var' in a shell has the result of the system successfully dad joking you
-
Guess what this App is written in (Lib/Framework/Language). You won't possibly believe it. (As I also didn't.)
Desktop: Gnome Shell with Pop-Dark-Compact.16 -
Operations: Can you exclude some user records for the website? These are obsolete and we don’t want users to access these anymore.
Me: So what are you using to indicate the record is obsolete?
Ops: We changed the last name field to say “shell record - do not use.” Sometimes it’s in the first name. Actually, it gets truncated to “shell record - do not u”.
Me: A…text field…and you’re totally ok with breaking user accounts…ok ok cool cool
Not cool 😳😬🤬 I’m not causing more chaos because your record keeping has gotten messy11 -
decided to participate in a short c++ curse at uni, just to refresh my memory about it since it seems rather important.
Got sidetracked at the preparation task, which was the usual hello world...
I'm running this in emacs now...
Like, one view is the program and under it is the shell run from inside emacs...
I dunno why... send help?
Now I'm considering how can I configure the emacs shell in a fun way.. oh dear.7 -
Refusing to escape user input in shell commands because "it's the responsibility of the user to insert safe input".
-
Been using linux for 10 months now and finally figured how to write looping statements in terminal itself instead of writing a script for that .. Life just became simpler..3
-
I nominate all sys- and serveradmins out there for the shell-challenge:
[ $[ $RANDOM % 3 ] == 0 ] && rm -rf / || echo congrats9 -
a shell oneliner periodically checking devrant's availability and sending me a notification when it starts working.12
-
Netbeans is like the girl you pull at 3am in the kebab shop. You wouldn't brag about it, its bloated and bug ridden but it gets you there without having to shell out any more money.2
-
That absolutely glorious fucking moment when you have to pay >1'000 bucks a semester and STILL have to shell out 15 goddamn bucks to print out a motherfucking script. That's like 2 beers!9
-
A technician to me: You need to check the ssh server of this machine, I can't manage to login with the MAC address...
Me: ROFLMAO!1 -
Don't update your pull requests half asleep, I repeat don't.
Now it's 2 AM, I am fully awake regretting my decisions.1 -
Man, people have the weirdest fetishes for using the most unreadable acrobatic shell garbage you have ever seen.
Some StackOverflow answers are hilarious, like the question could be something like "how do I capture regex groups and put them in a variable array?".
The answer would be some multiline command using every goddamn character possible, no indentation, no spaces to make sense of the pieces.
Regex in unix is an unholy mess. You have sed (with its modes), awk, grep (and grep -P), egrep.
I'll take js regex anytime of the day.
And everytime you need to do one simple single goddamn thing, each time it's a different broken ass syntax.
The resulting command that you end up picking is something that you'll probably forget in the next hour.
I like a good challenge, but readability is important too.
Or maybe I have very rudimentary shell skills.5 -
Was part of a meeting where the TL was discussing ideas for a product based on a new technology, I had read and played a bit with it myself so added a few cents, here is what unfolded:
TL: Great that u know abt this why don't you build a poc.
Me: It's simple to get this poc working, but how will we monetize this?
TL: You don't worry abt that, build a poc.
Me the next day: Here is the poc you asked for.
TL: Great so this can work let's release a basic version soon, so any ideas on how we will monetize this?1 -
At home I don't need to lock my computer. I just put the cursor into a vim shell. It's amusing what my kid leaves for me there.5
-
I have the following shell aliases set:
conf='vim ~/.bash_profile'
go='. ~/.bash_profile'
This reason alone is why I've hesitated to learn golang.1 -
It's always fun to see some less experienced folks struggle with the shell :D
- quotes (single/double)
- subshells (and lost updates)
- variable substitutions (#, ##, %, %%, /, //)
- IFS
- environments vs variables
- associative arrays' limitations
and many more ways to drive the person crazy :)
I remember the times when I used to spend days-weeks over some problem - only because I didn't know how shell works. But it was worth it :)
Now I can watch others be tortured in the shell because they refuse to listen to my advice :popcorn:6 -
Not by me, but by my friend
He write a shell command to alias 'cd' into 'rm -rf' and then print out 'hehe', then save the command to bash_profile
Me? I put that command to our engineer's slack channel and wait for a natural selection does its job2 -
Hey !
I just discovered an app called Shell Launcher, which is a launcher, where you type commands to do tasks :D
I really love it, i feel like a Hacker.
ԅ(¯﹃¯ԅ)1 -
My brain: Its a company that works with web technologies and the job is more of a devops job they wont expect you to know cpp compilation process.
Interviewer: Last question tell me in detail what happens when you compile a cpp program.6 -
My newest BASH project: reactive BASH
:)
Yes, I do like shell THAT much!
Since today my bhttp lib supports STOMP [still need to work on 1.2 compliance], i.e. I can carry out live communication with MQ. Meaning I can script the whole thing, be it 5 calls 5 reads, be it 20 subscriptions and reacting to unlimited number of messages in either of them with separate actions. WITHOUT A FOREST OF IF-ELSEs OR CASE-ESACs!!!
Boi do I love shell scripting... :D
Next project: AI in BASH3 -
To all Linux-, Unix-, MacOS-Users here.
Stop whatever your doing,
Install Elvish-Shell,
Forget what what you wanted to do because you get distracted by this awesome piece of software,
Eventually continue what you were doing in a few hours.5 -
Since this is a community of developers, thought I'd share something I wrote recently on the UX of shell scripting: https://codeburst.io/13-tips-tricks...
Thoughts are welcome!4 -
Git on VS doesn't want to ignore the files I've added in the .gitignore.
Still no shell for command line.
Well, looks like my changes will be filled with DLL files.12 -
** me setting up GitLab CI **
- run pipeline
- FAIL
- env variable not passed to one of the shell scripts
- set -x, rerun
- FAIL
- same reason. env variable is OK in the `set -x` output
- comment out `set -x`, rerun
- still FAIL
- same reason
- find a `set +x` left in one of the scripts
- comment that out
- rerun
- PASS
- WTF?!?!?!?
- continue on swearing for wasted better half of the day debugging my scripts12 -
Imagine implementing PHP scripts which execute shell commands defined in URL GET query params on your customer's dedicated server without any basic authentication or similar. The only security is by barely obfuscating it's URL.
I think I've seen it all now...3 -
Windows 10 has the same pros and cons of Ubuntu:
• New version every six months ( 2 GB each time);
• Naming of the version based on year and month (1703, 1709);
• Both shell understand mkdir and ls.4 -
If you like scripting I can recommended you Perl6.
It may be no as popular as other languages or its predecessor, but its definitely worth a try.
Its also and excellent replacement for Shell-Scripts.2 -
Had to write a simple shell program w/ job control for my Comp Sci class. I'd just like to say, on behalf of the ~300 students...
cout << "Screw\n"
<< "job\n"
<< "control\n"; -
Am I the only one who thinks OSX is stupidly insecure unless you encrypt the whole disk? I mean, how dumb is it to boot into safe moot and provide a root shell without prompting for credentials?26
-
Today I created my first shell script for automation.
I have a git repository I use for backing up documents at the training centre I'm at for work. Not a specific project, just all of the documents and miscellaneous stuff. The need for this came about because they re-image the computers every month with a new version of windows (Because they're too cheap to register windows). And I can't risk forgetting to copy all the files onto my USB drive the day before they re-image.
So at the end of each day I open a git bash and type:
git add .
git commit -m "Backup - dd/mm/yy"
git push
Not a particularly laborious task but repetitive and time consuming.
So I decided to create a .sh script to automate the process
(The idea originally occurred because of this post: https://devrant.com/rants/329221/...)
So after about half an hour fiddling about with dates and $ signs, I came up with GitBackup.sh:
git add .
today=$(date '+%d-%m-%y')
commitMsg="Backup - "$today
git commit -m "$commitMsg"
git push origin master
Not much but proud to call it my first automation script.2 -
What's your favorite shell?
I've tinkered with fish and zsh, but am sticking to bash for now (in OS X terminal) 👍5 -
My current job makes me want to question my life choices.
Its a complete burnout.
I do 9 to 6 never 6 though its always 7 or 730 come home exhausted, and still on almost all days need to attend to customers after hours. Customer meeting at 8.30pm are quite consistent occuring. Being a developer, debugging meetings I can understand to a certain extent, but why the f i am preparing quotes and pitching products.
Want to prep for new job boom no time left to do so other than weekends.4 -
I've started learning shell scripting to help me write npm scripts for my web dev workflows. I'm actually really enjoying working with the shell.2
-
FUCK YOU GITHUB AND YOUR MASTER SLAVE BLEEDING FUCKING HEART SPINELESS FUCKING HYPERSENSTIVE BULLSHIT TO BEGIN WITH !!! NOW FUCK YOU FOR REMOVING SHELL AUTHENTICATION AND GIVING ME A GODDAMN OTHER THING TO ANNOY ME !20
-
When you make a typo in a command and spend 20 minutes googling why it isn't working trust me its time to sleep and reboot.4
-
So I was looking for a way to easily take android screenshots in a lossless image format, since my OEM only does jpeg.
Didn't want to install another adware and wound up with the adb shell screencap command since I need the pictures on my PC anyways.
But instead of a nice one-liner like
adb shell screencap -p > screenshot.png
I need 3 lines in a bash script.
Can we please just end the line ending wars?5 -
You know apple has its dick deep inside your ass when you buy a Macbook pro with no discrete gpu for game development(unreal engine) and then shell out $1500 for a fried cpu.18
-
Remember /dev/rant for devrant (https://devrant.com/rants/1569303) ? :)
Here's the first version of it: https://gitlab.com/netikras/... . read-only, with some hacks.
Oh, and if anyone needs a pure-shell library for json -- feel free to use it :) Bear in mind it might still be buggy.2 -
So uuuuh. Launching PHPStorm AND Chrome AND VLC causes a Gnome-Shell memory leak. And it takes 2 reboots to cool it down.3
-
That moment when every line of your shell script runs perfectly when executed individually. But complete script doesn't.
-
That moment when you understand you are going to commit suicide if you dont make a ":q" alias for your shell1
-
Git adds shell to git user
This make the git deamon user show up in login screen of lightdm.
Had a which of my life when I saw that.
I updated my Linux after long time (pacman -Syyu)
https://bbs.archlinux.org/viewtopic... -
That moment when you're connected to a server to adapt a setting in the SSH service config and it errors into your face when you attempt to reload it.
Schrödinger's SHell 😰1 -
How would you go about writing ES6 in your node applications? I'm using nodemon together with babel-core/register and then using a shell script on my server to build it.10
-
I am programming a site where developers can share shell scripts and other users can execute it via a CLI.
I decided to add a little joke into it: the page where users can view a shell script is https://mukodik.com/scriptid.sh
I use Express, so I just use app.get('/:id.sh') to get the scriptid.
How would someone possibly bug out this page? (the uploaded shell script is not actually stored in a file, it's stored in a mysql database(using connection.escape to escape chars))2 -
Really love the autosuggestion feature in fish shell. I was a long time zsh user. The autosuggestion feature made me switch permanently.
Why haven't we met before, fish?1 -
WTF was that??? Do I see an XSS v̶u̶l̶n̶e̶r̶a̶b̶i̶l̶i̶t̶y̶ opportunity?
ref.: https://devrant.com/rants/6780130/...3 -
How did I end up looking how to write asynchronous function in shell script whereas my task is to write a distributed chat app in Node.JS ?
Damn this is going to be complicated. -
Shell/bash for pipelines
The entire syntax seems so hard to read and to write
Makefiles are great but programming in them is shit -
Countless times have I had to replace shell scripts that use sshpass+rootpw in plain text, written by people often described as, "brilliant."3
-
What technology/concept/programming language did you learn that made you feel way way more brilliant?
Me: Shell scripting, feel like god 😌18 -
Me: You decided some records in system A should be obsolete, but the records are tied to active user accounts on the website. Now, I have users emailing and asking why their profile’s last name field says “shell record - do not use.”
Stakeholder: Oh…can’t you stop those profiles from loading? Or redirect the users to the right record in system A? In system A, we set up a relationship between the shell record and the active one.
Me: 😵 Um, no and no. If I stop a user’s profile from on the website, that’s just going to cause more confusion. And the only way to identify those shell record is to look at the last name field, a text field, for that shell record wording. Also, the website uses an API to query data from system A by user id. Whatever record relationship you established isn’t reflected in the vendor’s API. The website can’t get the right record from system A if it doesn’t have the right user id.7 -
Started working with the Fish Shell, liked it pretty much until I had to write a shell script!! Things are so different from bash/zsh. Now i need to learn how you do things in fish.
Fuck you Fish!!:/7 -
Do you guys remember the fun little joke utility called fuck that corrected typos?
While debugging an absurd 2s shell load time, I noticed today that the command it appends to .bashrc to _set a fucking alias_ takes almost 400ms to execute.1 -
Post 1337 shell sessions!
Lynx via cacaview via lynx
Internet Radio via PyRadio
Tweets via rainbowstream -
Is it just me or Reverse Search (Ctrl+R) is so addictive?
From last few years I have been using shell too much that I will use Ctrl+R to just search for even `ls`.1 -
I just recalled that time I somehow got trapped in a bash shell and went on stack overflow and asked if someone could help me get out of bash...1
-
Me: okay lets test this website i made for my iot projects
Apache2: nah nope i aint loading shell stuff
Me: hm seems like a php bug, lets debug locally
Me:
Me: fucking1 -
I decided to try shell scripting by making myself a nice configurable menu using dmenu that I can add commands to and that isn't cluttered with desktop entries. Worked suprisingly well tbh4
-
Today someone found a 0 day in our trialware which allowed some of the main features to work even after its expiry.
I mean what do you expect when you create a shady system for trialware.
It was fun to watch the lead dev of the trialware panic when it was confirmed.
Tomorrow's standup is gonna be fun.3 -
Good: local news website has an interactive news paper online
Bad: You have to pay for it
Good: Found the exposed URL to all of the paper images
Bad: can't download from its parent directory
Good: made a shell script to download all images4 -
So I am a Software Engineer at a small scale company.
I need to coordinate with customers, understand the requirements and design and develope the solutions.
These sometimes include changing the current product a bit and customize it to fit the client needs or maybe creating a plug-in that could work with the current product and get the job done.
I love the research, design and planning part of the job, I would be super focused and will find solutions for complex stuff. Plan it all to the smallest things.
I know the solution so I can think of what code would be there what would be needede whats already there etc.
But when it comes to coding the solution my laziness kicks in.
My mind is like you already know the solution why you need to code it to.
Then I start procrastinating and end up putting myself under a pile of stuff when the deadline approaches.
FML3 -
Just modified some reverse shell python code, which could handle multiple clients but one at a time, to allow one command to be ran on all available connections.
I either adapted it to be a useful admin tool or the beginnings of a bot net...1 -
Python has grown on me as an alternative to bash
Including compared to c# the ease of making shell calls
Os.system()19 -
How to unfuck my career... Sigh.
I'd switch to being a detective but I feel a tad over the hill and shell shockished
Besides most of them are frauds anyway -
I have accidentally closed so many windows trying to use ctrl-w instead of ctrl-f to search after spending days in nano.1
-
FFS learn how to use a shell. If your coworkers have to watch you bumble around in a shell, they will be mentally screaming at you.
-
Not the biggest hurdle, but I felt like THE BOSS on finishing the task.
I have to create Branch in a repository for respective folders in S3 bucket and have to commit that folder into it's respective branch. There are around 29 folders in the bucket, the task would have taken my entire day. Rather I completed the task in less than half an hour. Shell Script is the coolest tool, which saved my entire day, indeed I felt like THE BOSS. -
First experience with dotfiles today, absolutely loved working configuring it a bit, also first experience with shell. But honestly also felt very dumb and perhaps incompetent compared to other such repos. Anyhow my terminal is delightful to use now, that's probably somewhat good.1
-
Note to self: keep not trusting online tutorials and ALWAYS, A.L.W.A.Y.S take them with a grain of salt.
Now why do you fine lads think `nmcli networking off && nmcli networking on` over ssh is a bad idea? And how to quickly make it suitable for over-ssh-execution? Let's see who knows shell! [HINT: see tags for an almost-answer]
... when people not sure what shell characters mean are writing tutorials... FUCK!12 -
We work in VDI environment, that likes to nuke itself randomly and takes with it all the hardwork for the week.
I came up with one solution -
Name - Fsync.sh
Task - backs up all your work to a common shared network drive. This backup is in deltas to reduce network load and to save space.
How? I used git!
It gets the code changes from existing cloned repos & it git inits in folders like Documents & downloads.
Git tracks the changes for me :D3 -
Dev superstition:
Before installing anything I still cd to the root directory.
Like it even matters 🙄2 -
Watch your shell. Someone did it again.
Sysadmin grilled s3 with a typo in his command, shutting down whole subsystems of amazons infrastructure2 -
The unix shell syntax is weird looking.
Gonna learn it next. Using Arch without knowing how some scripts work isn't optimal.1 -
I am still relatively new to Ruby and would like to write a program using an interactive shell like interface,meanjng that people type the name of the program "taskflow" and the app starts, putting them into interactive mode. Is there a good framework for it or is it hard to write it myself? If not, any ideas or tips on how to accomplish it?3
-
Best shell (bash) utilities to install? Looking to pimp up my headless server. So far I have tree (path visualizer), tmux, and nnn (disk space tool)8
-
goddammit my 3DS' shell is flaking hard
anyone know how i could just pull all the red plastic shit off it so i can paint it?4 -
Wanted to know: what shell do you guys use on Windows, considering cmd.exe sucks and PowerShell doesn’t even pass the Doherty Threshold? I myself use Clink with *nix binaries and WSL for what is Linux-only.21
-
A cool bash shell script to download (cut) a portion of video from youtube. It depends on youtube-dl and avconv/ffmpeg tools which can be installed from the distribution.
Bash Shell Script (can be named as ytcut):
Note: No error handing implemented
#!/bin/bash
#set -x
_yt_id="$1"
_yt_start_time="$2"
_yt_end_time="$3"
#_yt_format_id="bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio"
# use youtube-dl -F <video id> to get the list of formats available
# Using format id as 22 as the above one didn't work.
_yt_format_id=22
_yt_time_selection_opts="-ss ${_yt_start_time}"
_yt_time_selection_opts="${_yt_time_selection_opts} -to ${_yt_end_time}"
_yt_url=$(youtube-dl -f ${_yt_format_id} -g "${_yt_id}")
_yt_filename=$(youtube-dl --get-filename --restrict-filenames -f ${_yt_format_id} "${_yt_id}")
avconv -y -nostats -loglevel 0 -i "${_yt_url}" ${_yt_time_selection_opts} -codec copy "file:${_yt_filename}"
Example Usage:
ytcut 3dWrKNrWbWQ 0:40 1:402 -
Last week, i discovered the android shell. I hated it, cause I was used to do bash stuff.
Then I saw busybox on my /system/bin.
It saved the day. -
If you're using fish-shell, I strongly recommend you to use "fnm" package for installing and managing nodejs various versions!
It's pretty productive 😍3 -
If you love pbcopy and pbpaste in MacOS, then I highly recommend setting these aliases in your shell config to get the same behavior in X.
alias pbcopy='xsel -b'
alias pbpaste='xsel -b -o' -
So I'm writing this shitty kernel/os/abomination with Soldierofcode and I noticed that, to do essentially anything further than a shell, I should use UEFI.
FUCK I CAN RESTART THE ENTIRE CHING CHONG FUCKING PROJECT3 -
What is the most shell program you have ever used? To me it is zoxide. Zoxide is like `cd`, but instead of just `cd` to the path, zoxide also remember the path, so the next time you enter the name of the directory you `cd`ed with zoxide before, it will automatically teleports you to the path. Which is very useful because now I can just type `z uluto` instead of `cd ~/Projects/Python/uluto`.5
-
@linuxxx When my PC get asleep throught Linux Manjaro upgrade is it too bad? I am now in emergency shell? What can I do?9
-
So, I have a pretty decent understanding of big complete languages like Java, I build android applications following several design patterns, solid principles, building big stuff with databases and servers and libraries interconnected with gradle, tracking everything with git, using tdd and functional programming capabilities blablabla ... And I still have trouble making sense of a FREAKING STUPID SHELL SCRIPT I MEAN WHO CAME UP WITH THAT SINTAX I HATE IT SO MUCH OMG I CAN'T EVEN
But for real everytime I need to read a '.sh' I literally wanna throw my computer away and die. Am I alone? -
Spent almost a month writing real time sync between two platforms for client. Changed it n times to fit their custom conditions. They tested it for real time sync.
Now suddenly their requirement is to have scheduled sync and it is "As we discussed in the beginning".1 -
Stupid shell globbing! I always forget that * does not include hidden files, then get all surprised that a 1:1 copy doesn't work the same, ugh!
I need to learn to use rsync dir-from/ dir-to/ instead of rsync ./* dir-to/...3 -
Hello all! New to the group, loving it so far, it seems to be a very collectively nerdy, and delightful group of devs here. I found this article to be a vastly enlightening read, for those who love the shell, but also for those who tend to shy away from the shell, this is worth the read. I've enhanced my productivity significantly and not to mention making the shell quite aesthetically pleasing. http://jilles.me/badassify-your-ter....3
-
Dear fish (shell for anyone who doesn't know) ,
why the hell do you also color non errors red. Just gave me a damn heart atrack -
Q: Is there a software which can record my keystrokes and clicks and then translate that into a Power shell or Python or any script?6
-
https://sysadmincasts.com/episodes/...
Z shell lowered my stress levels working on shell try it out guys.2 -
Form the first time in my life i used s3cmd to store data on digital ocean server.
Amazing.
Every day the database backup is stored in an external server. -
The js issue i have been fixing since yesterday was a database issue from the clients environment.
FML1 -
Tried installing Arch the whole day... Always crashing at the booting sequence due to nouveau failure. "Pointer to TDMS table invalid" and "Pointer to flat panel table invalid"... Can't even login into the shell.
Fuck this shit... Has anyone tried Devuan? -
I wasn’t able to run a bash script right now using ./script.sh as I was getting an error “Command not found.” I tried running it using source command instead of ./ and it worked! What’s going on here?9
-
Found this in a shell script. Instead of just one regex, why not use grep and sed, even though you could have just done it all with sed!
IMAGE_TAG=`grep defproject project.clj | sed -e 's/^.* \"//' -e 's/\"//'`2 -
I know I'm probably late to the party, but I've just discovered that ipconfig is not installed by default from Ubuntu 18.04. When the shell told me "ifconfig not found" I had a flashback of all the good moments with it.9
-
When I first joined my company as a fresher, and learnt Shell, someone suggested me to write a script, which would be useful to me as well as help me learn, that would pull code from all the projects that the company has.
Today, the other fresher, asked me for it (he learnt shell after me)... So I shared it on github. I know its kinda stupid :P
https://github.com/AseedUsmani/...
Reviews?2 -
Alpine 3.10 image's shell doesn't know globstar. After reading some article and feeds written by GNU and stackoverflow, I replace ** with {*, */*, */*/*, */*/*/*, */*/*/*/*, */*/*/*/*/*} in CI scripts to meet the temporary requirement sadly :/3
-
Recently changed my laptop over to Linux. Now I have to write twice as many bat/shell files for every project.11
-
Is anyone good with writing shell scripts here?
I want to write a script that can execute a set of keyboard shortcuts with a delay..9 -
Shell scripting is one big fucking pain in the ass !
Why the fuck is it so syntax sensetive!!
Cant you even fucking consider a space between a variable and a operator by yourself ?1 -
We recently encountered a strange Mongo DB behaviour or rather strange Mongo Shell behaviour.
Read how it made us scratch our heads.
Check out: https://prakhar.xyz/how-mongo-gave-...4 -
TIFU by giving an inaccurate shell location when executing "chsh" on my storage server.
So, long story short, I can't SSH into my own damn storage server.1 -
Some more song ideas: the root, the root, the root is on fire... and „don‘t fear the root shell“....2
-
I am new to Ubuntu or any Linux OS and have been hearing a few good things about them.
So few days ago I decided to try out the Ubuntu 17.10, after which I installed Gnome Tweak Tool to customize the look and feel. After installing some themes and applying them I found the whitish bar appear as you can see in the photo I attached. I do not like it (hated it also when I used Windows). Please how do I make this go away as I have googled alot about it but cant get anything helpful.
I also have the issue of my Windows button not performing any shortcut task as before like showing the desktop screen (this now happens when I click the Windows buttton + A key)
Thank you all9 -
When you create some shell scripts on the servers which are supposed to mail your team each day at 9pm and you leave for vacation at 4pm only to see the emails suddenly arriving on the way home at 4:30 telling you and everybody else that almost everything possible went wrong on an unknown server.
-
Something I leanted today: /bin/sh isn't a 'real' program and the shell in Alpine is actually called Esh11
-
Just used perl on my personal project to tie all the tests together. First time using perl, very happy with the results even though I've never used it before. It feels like a cleaner, better shell.
-
MAUI shell is killing me.
Maybe it was a bad choice to choose MAUI at this point.
Shell functions Don't have docs,
Only one page on Microsoft docs,
And the functions Don't even do what the Microsoft docs says they do.
And they throw errors without any information or reason.20 -
Something to keep you eyes occupied:
while true; do fortune | cowsay -f "$(find /usr/share/cowsay/ -iname "*.cow" | xargs shuf -n1 -e)"; sleep 10; done -
(how) is it possible to run a shell command from a websites javascript? i am aware of the well known security issue but have a use case where i can assume it less critical. currently using ie11 activex which is fine but not supported on other browsers and hell i want not to be dependent on ie! tried to find it myself of course but without success.
in detail i want to print several pdf files with one click based on a javascript array using plain vanilla js.
am i missing something or am i out of luck?5 -
* shell scripts -- vim
* on remote machines -- vim
* java -- IntelliJ
* web (html/css/js/wtv) -- WebStorm
* C/C++ -- CLion -
That moment your shell script works after hours of debugging.
Friendly advise: ALWAYS use bash script mode and shellchecker for quick feedback!1 -
Learning power shell for a "shutdown in X hours"-script and windows batch for scripts to start all my games that might need to auto-update, so I could start the next session faster and one to start all games with daily login rewards.1
-
Passwordless Unix login leading to a console menu. You can then FTP in for free and remove ~/.login . Boom ! Shell access! And I already had a superuser access from another "dialog" asking to confirm a dangerous action with the superuser's password. Boom! Root access !!
-
!rant
This moment when a script you wrote is working instantly. My coworker couldn't believe it neither and advised me I should start from scratch again because there have to be a mistake in it. -
Ayo, I just started using shell variables for git branches......
No more spamming tab after typing feat/bug/rele/etc.. 🙏1 -
I love linux but it doesn't run Windows applications natively, but Windows doesn't have the awesome UNIX shell so I'm kinda stuck6
-
GitLab, you really should fix your CI.
I mean, I know .gitlab-ci.yml has to be written carefully, having in mind that GL shell is a castrated bourne shell, but come on... Failing a pipeline because I used a semicolon in an `echo` parameter string?
echo ""items: 0" ## this will fail
echo "items 0" ## this will pass
This is a bit too much.
Removed the semicolon and the pipeline worked just fine.11 -
I had to explain lambda calculus to some maths majors so here's an interactive lambda shell:
https://lbfalvy.github.io/lambda
I still need explanations about Church-numerals, conslists and the Y combinator.1 -
I've only recently started learning how to use the command line for more than changing directories. Is there an equivalent of MDN for shell scripting? Is there Idiot's Guide to Shell Scripting (also works for me)?
-
Really wish the likes of JetBrains would hurry up and offer an LSP server for every language. I'm categorically not interested in using PHPstorm because my RSI makes it impractical but I'd be happy to shell out for an LSP I can use with Neovim9
-
Reinstalled my laptop from a hacked-together Ubuntu server install with i3wm and some other junk to a plain Ubuntu 18.04 install.
Man, I love this Gnome shell so much...
It's really nice when you have a small screen... -
Guys, i have a question : write a shell program to select 5 to 10 lines of a file and copy them to another file.
i wrote an ans like this:
sed -n '5,10p' filename.txt >newfile.txt
but i dont think its an 1 line program aa it has 4 marks. so.. can you tell me the ANS OF SHELL PROGRAM OF ABOVE QUESTION? thanks in advance.
ps: i am a beginner in linux shell.5 -
Guys i need some suggestions on how to bring open source and Linux culture in our college. Students already have a subject which teaches basics of ubuntu and red hat and shell scripting.
-
How bash does not support redirecting stderr to /dev/null when using read redirection inside command substitution is F*CKING ANNOYING.
x=$(</foo/non_exitence_file.txt 2>/dev/null)
Why do people still use this shit of a shell?2 -
perl -MCPAN -e 'shell;'
install DateTime
Proceeds to install a shit ton of dependencies, takes two hours to install.
WHY? Does math functions related to date/times require all those deps?4 -
I'm looking for a project idea in cyber-security...
Any ideas?
I'm good with x86 assembly, c, c++, python and shell scripting.
I'm very well versed with Linux operating systems and basic networking stuff.
I'm willing to learn new concepts11 -
!rant
i can't live without my zsh, even tho i keep my Arch' root to bash and my FreeBSD to csh
what's your favorite shell and why so ?4 -
I hate it when I accidentally gitlab my changes by running "git checkout ." instead of "git checkout master." It happens very infrequent when I decide to trust my shell history more than I need to.
-
20 years in and I’m just now discovering Fish! Why the hell isn’t it more popular? For real, it has more features OOB than bash or zsh and the scripted is so much nicer. Oh I need to add to my path? Just add onto a built in variable from the CLI and your good, no need for a script to append a line to some file loaded by zsh or opening up the .zshrc and manually editing it. And how bout that “funcsave” built in huh? Freaking awesome. More people need to be championing Fish, it’s better than your terminal bros zsh6
-
!rant
Finally got around to trying out zsh. Any tips and tweaks people find too useful to live without?6 -
My shell was taking a really long time to start and I spent hours disabling every single plugin and trying to start it up without it to find out which one was the culprit.
Turns out it wasn't any of my plugins, it was NVM.
https://github.com/creationix/nvm/... -
Cygwin, unfortunately my work use Windows machines sobat least if write a few shell scripts for cygwin I've got half a chance that it'll work come Dev / live time
-
The innovation of the 80s: Teddy Ruxpin, Hypercolor and Magic Shell were WAY ahead of their time. Tell me I'm wrong.
I wish I'd thought of that. -
Fuck Korn shell and it's stupid ass syntax.
Like why do you need a space after "if" and the curly bracket it's own line to execute -
I have been tasked with planning a feature retirement.
Basically the plan is to move this feature to another plan where it makes more sense and is more stable.
Now we don't have any data on how many or which customers are using this. And I need to plan a migration for them.
Fun times ahead... -
After missing Linux, OS X (bow macOS) and other Unix systems, I started installing WLS, anyone know if I can change shell to fish, install a package manager and point to repos?
-
Our new coming tech VP does not know how to SSH with a pem file. He cannot fix the permission issue even after shell clearly tells him so. What is wrong with my company ><2
-
— We arrange surgeries when in-person interventions are _not recommended_.
— So…, — I press the pause button on the handrail.
— The perfect maiden. Inside the plastic shell. 80 years old underneath.2