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 - "commands"
-
One of the most evil commands to completely screw a Linux terminal user.
alias cd='rm -rf'
Deletes the folder you want to cd in.13 -
Newbie telling me about the new Linux commands he was learning-
"So there's sudo.. It's like !important in CSS. Whenever something doesn't work normally, use sudo.
Me: 😵14 -
I guess unix was made by pervs as I have to command it to Touch, Finger, Unzip, Strip, Mount, Fsck, Unmount and Sleep5
-
Professor in OS lab: Open up Cygwin and try some Linux commands
Me: Opens up dual boot Ubuntu and runs the commands on Terminal
Professor looks at my system: Is this the latest Windows 10 ?
Me: ...13 -
I really wish I had known this before. Check this out guys. You can type a unix command and find out what each options mean. Rather than man paging the commands this is a easier way to do it :)5
-
Dolphin has an integrated terminal (So that you can run commands in the directory you're looking at) and that's a fantastic feature.23
-
Now, I work at a hosting company in the UK, as a linux support engineer. I've seen many cases where a number of clients ran one of the following:
rm -rf / something
rm -rf /var/cache (attempt to magento)
chmod 777 /var
chown -R user:user /*
Half the time, they're like "Hey guys, I dun did fuck up, please help!". The other half of the time, they piss me off. Here's a number of responses that really grinds my gears:
"Such a harmful command should really prompt for input before running" -- From the buy you "forced" a recursive rm command, which mutes such a feature.
Client: "I did no such thing"
Me: "I've seen the command history, and at the time the command was run, you were the only person logged in"
Client: "You're mistaken, You're reading the information wrong"
Me: "I assure you, I'm not, I know what I'm looking at"
Client: "Well you're a shit engineer"
Me (thought): "Says the fucker who doesn't know how to linux"
I like people who own up to fuck ups. But the ones that don't, are just making their lives harder, since we have all the evidence in front of us.
Most of these people are the developers, and in some cases, the sysadmins...4 -
So apparently the Amazon S3 outage happened because of one setting being wrong in a looooong string of commands issued to shut down just a few servers.
Am I the only Linux user who totally gets how that could happen to just about anyone regardless of how awesomely competent they might be?4 -
Actual conversation:
- Vim has weird commands. For instance, you copy by typing "Y".
- Why?
- Correct.3 -
More Unix commands are becoming web services. What else can you think of?
Grep -> Google
rsync -> Dropbox
man -> stack overflow
cron -> ifttt"9 -
1st post. Not sure if rant.
> Join 1st job after college.
> Desk assigned is close to a senior dev
> Random day, QA asks senior dev questions on something and coincidentally I happened to be working on the same thing.
> Senior dev borrows my system and explains qa something.
> By the end of explanation senior dev had bunch of shell commands written on notepasd on my machine.
> I don't understand jack shit of whats happening.
> QA looks at me and says, "Ping me once."
> I think, "no idea what just happened but must be something related to network ."
> I open terminal and type "ping" and quitely wait for further instructions (address to ping that is).
> Everyone starts laughing their asses off.
> QA guy opens slack, and sends himself the commands on text document.
> I realize what just happened
> Laugh awkwardly with everyone to ease the pressure
> FML7 -
Biggest terminal hack I've discovered till now which is so fucking obvious I can't believe I literally just started using it:
Executing the date command right before and after another command/series of commands to see how long shit takes.
$ date; command or commands; date
This is incredibly useful when rendering loads of data in screen sessions!
I actually feel rather retarded for only thinking of this now.17 -
Hello, world!
Hey, it's me. It's been awhile. How have you been..? :3
For those of you who don't know/remember, I'm the lead developer of a Desktop and (to-be) Hacking Simulator Game. My project should still exist somewhere on here. I just thought I would hop on, and catch you guys up on my progress. ^~^
So far themes are a thing! You can add custom fonts, wallpapers(or just a desktop color) and set the color/opasity of everything in-game!
I have also implimented a modding API. It's under-documented, but it works very well! You can add apps, commands, or even redesign the entire interface using it. It executes modded functions on specific events, so you could really have it do anything.
As of yesterday, there is also a simulated FileSystem. You can navigate it using in-game terminal commands, and you can create and remove directories.
(in-game screenshots are also a thing, you can even set a timer - ps: this is a 100% mod! As are all apps and commands in the current unreleased version. PM me on Telegram @TheCyaniteproject to get a copy~)25 -
Everytime I have to execute several commands to do something, I tell myself:
I will write a script for that.
But now I have no time.
I will do it the next time.
I will never write these scripts.4 -
I started coding in 1994 making .BAT menus for my DOS games. Used HELP.EXE to find commands I could use. Then I figured out how to modify and run GORILLA.BAS (using Q-Basic). Man, when I realized that all BASIC commands were in the OS documentation as well, that was the Red Pill! Just started to copy commands and blocks from the Gorillas game into a new program, read the doc, modify, run and learn. Btw, the first BASIC command I played with was "PLAY" (for music).
At that time I was 10 and there was no Stackoverflow, no Youtube, no tutorials, no Google... no easy path to follow down the rabbit hole.
Ref: https://en.wikipedia.org/wiki/...10 -
running tar commands like
tar -abcdefghijfoeifjeoigejj3powogjp3wrijgo3iwerjgoijokjfwefmpwefoewfjweojfw66611 -
List of commands that will destroy your Linux system.
BEWARE! THESE COMMANDS WILL GREATLY HARM YOUR LINUX DEVICE! I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE ON YOUR DEVICE! I AM NOT RESPONSIBLE IF YOU CANT GET YOUR DEVICE TO WORK AGAIN!
- sudo rm -rf /*
- mkfs.ext4 /dev/sda
- cowsay hello there >> dev/sda
- :(){:|:&};:
- rm -f /bin/su
- rm -f /usr/bin/sudo
- cd /etc;echo hello | tee *47 -
Ah, these classic LINUX commands:
$ unzip; strip; touch; finger; grep; mount; fsck; more; yes; fsck; fsck; umount; clean; sleep3 -
Now that I have time to approach my ultimate dream ( being the pro penrester ) , asked a hacker for a road map and he gave me (U'll rarely see such open hackers that share knowledge :) )
Surprisingly I've been familiar with all the topics but being the most pro , requires u to be pro in every single topic .
Guess what ? I'm starting from basic linux commands all over again 😂
echo 'hello world :/'25 -
Setting up a server in Amazon ec2. Running all the commands to install nginx and everything.
Only to realize I have been running those commands in my local VM instead of ssh.2 -
Thanks ssh!
Because of you I don't have to leave the bed to run commands on my Linux server(laptop) sitting on my desk.8 -
Every time I mess up my git branch I usually find that its pretty futile to fix it with fancy commands like 'git reset', 'git prune', 'git rebase', etc. I usually find it easier to just start over from scratch.
They should really add a command for that
'git fuck-it-start-over'9 -
When you're a Linux guy and automatically start to type bash commands into a friends Windows' cmd...6
-
When you get fed up of using up and down keys to initiate commands, so you just create 2 extra command prompts and color code them so you know which one does what.5
-
Taught my whole team that you can enter cmd/bash commands directly into windows explorer in the location bar.
No point in opening git bash to just clone a repo or open cmd just to run a php server.8 -
Sometimes I forget that not all Terminal commands begin with "git."
git ls
git less fileName.ext
git cd ..3 -
Found this interesting Vim based Pacman game: https://github.com/jmoon018/PacVim
acVim is a game that teaches you vim commands. You must move pacman (the green cursor) to highlight each word on the gameboard while avoiding the ghosts (in red).4 -
Windows:
// Find for a solution
crashChecker.findSolution() {
wait(10000);
}
// Close app if pressing letters 30 times in a row, do the same for mouse click event
keyboardEvent.preLoad(countRow, app) {
if (countRow > 30) {
app.whiteOverlay();
app.crash();
app.close();
}
}
commands.kill(pid) {
App app = findByPid(pid);
app.askFor("ALT+F4");
}
// Render a page in IE
internetExplorer.renderPage(content) {
if (content.type == "json") {
return renderAs(content, "html");
}
if (content.type == "html") {
supportedElements.cutByHalf();
if (supportedElements.length > 20) {
bsod(Error.Memory);
} else {
wait(1000 * random());
return renderAs(content, "html");
}
}
commands.shutdown() {
int delay = 0;
if (apps.length) delay = 30;
if (updater.hasUpdates()) delay = updater.length * 40;
maybeShutdown(delay);
}10 -
How many guys have experienced this?
Heard this from a supposed Linux user
Other dev: I have been using Linux for 3 years I'm really good at it.
Then sees me use "cd" and "mv" commands
Other dev: wow that's some complex stuff
Me: 😂😂😂
True story2 -
When working in embedded, you basically write your program, compile it and flash it on some hardware.
Compiling and flashing usually require some black magic commands with lots of parameters so i set up two shortcuts in my terminal
yolo to compile
swag to flash
Understandably i keep it to myself1 -
Only site which helped me alot to get me started in advance git commands was : ohshitgit.com
It also helped me when i started contributing in open source
Check it out :)3 -
@trogus @dfox
Can we have support for
```
snipets
```
Doesn't even need syntax highlight, just the <pre> behavior.
In support of my request, I know this isn't code sharing but we still quote code and commands alot.
It would be a nice differentiation.12 -
I’m so happy I finally did this on an old imac! Bye macOS! This feels so smooth. Next: Change that to Mint and learn the commands etc.
It feels so f****ng good! If xcode runs on linux I would change that on my main machine too! It’s just much cleaner, faster,... I would never go back.15 -
I was looking through old entries in my keepass, and I happened across this bit from when I worked in places that still had unix servers. I was so angry at the impossible input issues they had that I put this into my 'handy commands' section.2
-
There's a special place in hell for those who don't provide keyboard shortcuts for commonly used commands.
It's shared with those who don't display the shortcut keys in the menus, so you can learn them.1 -
Any folks willing to join the GIT family in devrant...
Steps to join:
Change username with prefix "git" followed by your favorite available commands..
Example: gitpush(already taken and co-founder of this gang), gitpull68 -
That feeling of getting something to work in Linux after a thousand Google searches and trying a hundred commands5
-
This fucking call is still going, and this asshat who should know how to do SIMPLE FUCKING COMMANDS LIKE MV AND CP is having a hell of a time and I'm about ready to throw my arm at him because I ok hurt like hell and hopefully knock some sense into his brain.4
-
My first Drone
Arduino nano + L293D + hc-06
Objective: learn how to use Bluetooth with Arduino.
V 0.1 (no direction, commands by serial terminal).18 -
Oversleeping due to sleep-walking to my phone and turning the alarm off and going back to bed is a thing for me now. Fuck.
Is there an alarm clock where you have to type in different shell commands to complete a given task on Android in order to stop the alarm? If not, I'll have to do something with my Raspberry Pi...22 -
Who the fuck at Microsoft decided to put python on their store? I don’t care if it’s on the store. What I do give many shits about is that I spent 20 minutes uninstalling and reinstalling and reconfiguring my fucking PATH because the python & python3 commands did not work but instead SENT ME TO THE FUCKING STORE PAGE FOR PYTHON 3.7
THEN I FIND OUT ITS NOT A PROBLEM WITH THE PATH MICROSOFT PURPOSELY CREATED ALIASES FOR BOTH COMMANDS SO THEY HAVE TO SEND YOU TO THE STORE PAGE WHEN YOU TYPE python OR python3 INTO THE CMD OR POWERSHELL.
I turned it off after finding that out, but I’m still furious. Fuck Windows.22 -
Wanna have some fun at work.
Print out a beautiful sheet of voice commands for the printer.
Lean back and wait :)2 -
So apparently this is how you get kids to learn coding.
Graphics after pretty nice but coding by dragging commands takes too long...16 -
( bad english alert )
Why everybody from my school class, saying "Windows is better than linux, because windows don't have commands like linux"12 -
This is one of my favorite lines of documentation 😁
Found in the description of flags for SVN commands: http://svnbook.red-bean.com/en/1.7/... -
I'm taking an entrepreneurship course and there is this one guy who talks empty words just to impress others.
He uses linux and at every single course he opens the terminal just to run the commands "sudo apt update" and "sudo apt remove", the rest of the time he is on discord.
He always switches to the terminal so you can see what an 'expert' he is17 -
Boss: our team in El Salvador is having problems with the app. Look at the email I forwarded you.
Me: oh yes. They are running the wrong ionic commands they need to run these commands.
Boss: okay, and that will fix everything?
Me:...Let's just have them enter the right commands...we can go from there.1 -
ABC 80.
It was a Swedish computer in the 80s.
Used basic as main shell like c64 but its editor was worse than edlin if any one remembers that.
You could not use arrow keys to go to a line to change it but had to type a command like edit 80 to retrieve the line in an editor prompt.
It also lacked a lot of common basic commands.6 -
Staying at friend's place bcz he had corei5 and I had p4 for uni project. We were making arch linux and package installation took whole night on slow net. Made bash script of possible sequence of commands and we slept.
In morning when we woke, it was perfect!1 -
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
-
Doing a distribution center job right now just to pay the bills and had to do voice order picking (with a headset and voice commands etc) today. Well, that didn't go ideal:
*girl walks by and gives me a tip/hint*
Me: *puts headset back on*
Headset voice: you've logged off. Truck could not be located by provided ID.
😓😮
I said "fair enough, thanks!" 😐4 -
Hello, world!
Soo.. I am half way done with Pre-Release 10!
Woohoo!
However.. The update log is already as long as the full update log for the last update.. Which was twice as long as the log for the update before..
I'm Starting to notice a pattern.. XD
This is all good and well, but I feel as if I'm overworking myself. I'm getting stressed out, and I'm not spending near as much time with my girlfriend. 3: But, I'm having fun. I'm genuinely enjoying myself, and I'm making a ton of progress in such a short amount of time. I also have a new team member!
Idk.. I haven't done anything the past two days really. Work nor spending time with my girlfriend. I'm stressed, and I'm not sure what I should do. I'm sooper modivated to keep working, but I feel that my situation will only get worse.
---
Because I'm sure some of you will be interested ('cause my game is very popular in this community <3), here is the update list so-far. Do note that this is not the final list, and things will be added, and may be removed.
As you can see below, this update is mostly focussed around API's. Specifically Modding, and the new FileSystem. On top of this, I will *try* and tinker with the official Patreon API for Java and see if I can't intergrate that into my game. I'll also work on a ModManager, but I'm not sure if either of these will make it into this release. I also have plans for new Apps and Commands for this release, as well as working and polishing up existing Apps and Commands.
---
* Closing the game with X button (and other ways) now also calls preExitTasks()
+ Added AddonLoader. It's literally a Mod-Loader. (Your welcome :3) A tutorial coming soon, but just know that it's standard Java codeing and you simply need to drop the mod.jar into the game's addons/ directory.
++ Added "API" - This is a bunch of methods that are added for the Mods to use. These Methods likely wouldn't of been added othewise.
+ Added in-game FileSystems (Folder, files..)
++ Added FileNavigator API for traversing the in-game FileSystems
* Fixed a major bug with the "debug" command where you could no longer run any commands after enabling debug mode.
+ Added GameSave creation
+ Added System creation
+ New Save + localsystem are generated on startup
++ Added WindowBuilder API for creating Apps. This makes creating Apps much, much simpler, and is intended for not only us, but use in Mods.
* We re-wrote the Console Class from scratch, and turned it into an API for creating custom Terminal Apps. (Commands are now created using the Command Class and are then passed to Console and registered as either a Local or Global command)
++ Added Command API for creating commands. These commands execute Java code, much like a JavaFX Button would, on each call. You also get everything after the first [space] of the command that was passed, as a String.
* Re-wrote ALL previously implimented Apps.
* Re-wrote ALL previously implimented Commands.
+ Added "debugtest" command to test debug mode. (This just prints a totally boring random message, and you shouldn't try it.) [Note: This "command will not exist" when debug mode is false.]
+ Added "cd" command. ("cd ~" "cd .." "cd /home/folder" "cd etc" "cd /")
+ Added "cat" command. ("cat file" "cat /folder/file")
+ Added "mkdir" command.
+ Added "rm" command.
+ Added "dir" command.
If you're new and you have no clue what I'm talking about, here's the info page: https://trello.com/b/0bH2SjQf1 -
my best use of Linux's ability to pipe together commands
git | cowsay | lolcats
I also have a custom bash script written that if the message is longer than 50 lines it writes cuts it off with a '...more' and outputs to a file where I can read the full details if needs be.7 -
What are your most used commands? Find out by running:
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head -110 -
Just moved to linux. Went with elementaryOS. Already ran into a little issue with eclipse which is now fixed. For those of you who use linux, what distro do you use, is there any special commands that really come in handy?19
-
Today I had my first :
root@DEC:~# echo "hello World"
in my linux terminal ! :)
Just knew some commands but finally wanna master that !16 -
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 -
encouraged by you beautiful folks i present my weekend doodle: a text2asciiart converter with cli commands and optional terminal responsiveness.
https://github.com/erroronline1/... if it matters4 -
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! -
It just hit me that when we reach self aware AI we will have to start using “requests” as opposed to “commands”10
-
Commands, when I make a mistake and you've only got one suggestion. THEN THAT'S CLEARLY WHAT I FUCKING MEANT!
$ git psuh
git: 'psuh' is not a git command. See 'git --help'.
The most similar command is
push
$ git COURSE-THATS-WHAT-I-FUCKING-MEANT7 -
The more i use git.. more the fun it is.. Just found out the usage of rebase and cherry-pick.. I have read about the implications of these commands in a shared repo.. But it is fun to use it in a solo repo..3
-
that moment when you were still new to git commands and just typed in random commands while thinking of a stupid dog meme saying I have no idea what im doing then accidentally pushing something in prod and had no idea what to do cause the lead dev was not around... aahhh those were the days
-
Today my fellow @EaZyCode found out a local Hosting Provider has a massive security breach.
He wrote an Plugin for Minecraft with an own file explorer and the ability to execute runtime commands over it.
We discovered that this specific hosting provider stores the ftp passwords one level above the FTP-Root. In FUCKING PLAIN TEXT! AND THE MYSQL PASSWORD TOO! And even more shit is stored there ready to be viewed by intelligent people...
It's one of the fucking biggest Hosting provider Germanys!
But, because EaZyCode has such a great mind and always find such bugs, I give him the title "Providers Endboss" today, he has earned it.
Loving you ❤️
Edit: we used SendMail with runtime commands and sended too many empty Spammails (regret noting)24 -
Today I learned, that Firefox Devtools allows you to copy requests as a cURL commands. Guess how many times I "had to" write them by myself...2
-
I am currently under a desperate crunch at work, trying to get things wrapped up before my honeymoon.
Of course, this is when My Greatest User decides he will come to my office no fewer than five times today. Not once was it for an actual, legitimate issue that he had not created himself. Here were the top three for today:
#3
MGU: "The scroll wheel on my mouse isn't working. I used to be able to scroll stuff with it but now I can't."
ME: *Looks at his mouse. All looks well.*
ME: "Show me what you're trying to do."
MGU: "I'm trying to scroll this Word document. See? It won't scroll!"
ME: ..."That's because there is nothing to scroll... The entire document is on your screen..."
#2
MGU: "I can't move my mouse off the edge of my screen! I used to be able to move it from my monitor to my laptop screen and I can't do it anymore!"
ME: "Did you move your laptop?"
MGU: "Yeah I moved it to the other side of the monitor. That shouldn't make a difference, should it?"
#1
MGU: "You know the DOS commands?"
ME: *Does a triple take.* ... ... "Huh?"
MGU: "The DOS commands. You know how you can use DOS commands to make the computer do stuff. Like Ctrl+M."
ME: "Ah. You're talking about keyboard shortcuts."
MGU (ignoring me): *Goes on a long, confusing explanation of something he's trying to do in Outlook and wants to know a keyboard shortcut for instead of clicking.*
ME: "I don't know what the shortcut for that would be and honestly I don't have time to look right now. I really need to keep working on this project."
MGU: "You don't know?"
ME: "Nope."
MGU: "Oh... I'd have thought that with being a programmer you'd have gotten into the DOS commands."
I have never been so tempted to quit. -
Installing arch on VM of hyper-v,
Everything was working as expected.
But can't scroll at the end, commands entered are going below monitor output, need to use everytime "clear".
Thanks Windows, maybe it's feature🤔16 -
If git was written in english or in ancient greek it made no difference. It's everything counter-intuitive and you have just to learn commands by heart and google the errors. Because nothing makes sense, even if you know how it works and you used it for years6
-
Some programmer forget to put ; at the end of their commands,
My problem is that i forget not to put ; while coding in python :/4 -
So i have been talking to @dfox about working on some integrations.
One idea was a slack bot, would you use it and what commands would you use?12 -
TIL I can run Linux commands in Powershell. I don't know what I did. I didn't realize that I was in Powershell instead of WSL. But only to a few commands though. Can't run uname, free, top or other system like commands so far. Must be part of some Windows 10 update that I missed.8
-
Are there more people here who use Makefiles as a façade for complicated commands? For example, 'make dev.up' executes a long docker-compose command and 'make dev.expose.secrets' activates ansible-vault with some variables. It makes doing stuff easier and makes it so that developers with less shell experience can quickly get going instead of having to use long boring commands.
Each time I try to look up what the actual purpose of a makefile is I get a long list of explanatioms talking about building C programs etc. But it never talks about using it to just put shell commands in one big file with subtargets 🤔
So, my question, any of you guys use a makefile to facilitate a facade too?3 -
What's the funniest combination of commands/keywords/variables you've seen?
I'm a big fan of "man touch" 😂
Also, a colleague named an instance of System.Threading.SemaphoreSlim to Fatboy (Fatboy Slim, get it? 😏)
Let's hear it!
edit: tounge twisters are also welcome11 -
"No i mean the bot goes offline like whatever is hosting it goes offline and then the bot literally doesnt respond to commands"
- One guy trying to prove how "unreliable" a bot is.
Kill me.2 -
Refusing to escape user input in shell commands because "it's the responsibility of the user to insert safe input".
-
What the hell! Every time someone comes over to my desk and stands behind me my brain disengages from my fingers an I start misspelling and doing wrong commands etc..
Just one more reason everyone should have private office.4 -
Ice King. Lonely, weird, has a penguin for a debugger and doesn't do as he commands... Yup, that's a Linux guy alright.2
-
Did anyone else notice how setting up a letsencrypt.org certificate for a domain became a lot easier as this year went on? Certbot + automatic renewal was set up in four commands on my RasPi, I remember it being more difficult to set everything up 🤔1
-
Oh God.
So I'm working on something and I needed to see how it looks when you type a command into the terminal (like the animation).
Quickly Google "Kali linux terminal," since it's kinda where I'm getting some of the design from.
First video "Kali Linux basic commands (every ethical hacker must know in 2018)"
1st command: whoami
2nd command: date
3rd command: pwd
4th command: cd
5th command: ls
I'd say that's a wee bit basic there and those are commands that literally anyone who touches linux should know, dontcha think there pal?
Nice job using buzz words to try and get views on your "tutorial"4 -
At some point, someone on the visual studio team thought: what people need is a clicky-draggy gui for editing yaml files for github actions.
And instead of throwing him unceremoniously out of the window, the rest of the team agreed, and said: yes, that's a great idea, it will be almost as useful as that clicky-draggy gui for editing sql commands.3 -
I had a collage who kept linux commands like ls -l, ssh and git commit/pull/push in .txt file and when he needed to use them, he just copy from the file and paste them to command line EVERY F*CKING TIME. He just didn't won't to learn them.7
-
What the fuck is so hard about vim? Press i for insert mode, esc for visual mode. How is that so hard to remember? There's like 2 commands at most that you need to know18
-
I think the reason why git beginners have a hard time with it is because the api is a bit untuitive.
For example: if you want to "unstage" staged changes, you run git reset, and if you want to "delete" those changes from your working copy, you git checkout those files.
But then, you find out that you can do all of that if you git add . and git reset --hard.
So you're like "huh..."
And then you discover that if you end the resethard with a branch name/commit id then you also make current branch point to the commit or that branch/commit (respectively).
So you're like "huh..."
And also if you add a commit id or branch name to git checkout, you change the current branch to specified/enter detached state with HEAD pointing to that commit (respectively).
Oh and you don't use git branch to create branches, you use git checkout -b because it's a lot shorter.
So here's a rundown: git reset mutates things related to files, but also mutates things related to branches.
git checkout also mutates things related to files and mutates things related to branches too (in a diff way). Also, creates new branches.
I don't think this is intuitive. We users use the same commands for different purposes with just a different flag.
Commands shouldn't mutate different types of things. But don't composite commands (as in, "smart" commands that mutate different things) shoudln't be a flag in an existing command, it should be a single new command of its own.
Maybe if I reread the internals of git now, I'll be able to disgest the dozens of technical terms they throw at you (they are many). And in my mind, the api will cognitively fit to the explanations.
Here's another one that feels weird too.
If you want to make your changes start on top of someone else's commit, you do git rebase.
But git rebase -i can be used for that, and also to delete, modify changes or message of, reorder or combine previous commits of the current branch.
Maybe the reason why several things we do overlap with the same commands is because they internally do similar things, and while not separating those commands might make it less intuitive, it makes them more sensible? i dunno...
disclaimer: I'm not setting this opinion in stone though, and am aware that git was created by one of the most infuential programmers.6 -
This is easy. Irl fork and acquire commands to let me reposess the knowledge of my children.
Things i can do while playing games:
0: work
1: sleep
2: eat
3: sex
4: workout
5: travel the world
6: troll my ex
7: read every post on DevRant1 -
Just found out that a big hosting provider saves a user's SQL and FTP password in a plain text file just at the parent folder of the normally accessible ftproot.
Using some linux commands you can
cat ../mysql_pw
cat ../ftp_password.txt
IT'S NOT EVEN ENCRYPTED OR HASHED
(This is tested on a minecraft server, would also work on other services)5 -
I just learned that you can use Android Device Monitor in Android Studio to take screenshots.
Until today I was using adb screencap -p /sdcard/filename, totally forgetting the filename, go through all the commands and see what fucking file name I used and do an adb pull. It was a lot of fucking work.1 -
Tldr: fucked up windows boot sector somehow, saved 4 months worth of bachelor thesis code, never hold back git push for so long!
Holy jesus, I just saved my ass and 4 months of hard work...
I recently cloned one of my SSDs to a bigger one and formatted the smaller one, once I saw it went fine. I then (maybe?) sinned by attaching an internal hdd to the system while powered on and detached, thinking "oh well, I might have just done smth stupid". Restart the system: Windows boot error. FUCK! Only option was to start a recovery usb. Some googling and I figured I had to repair the boot section. Try the boot repair in the provided cmd. Access denied! Shit! Why? Google again and find a fix. Some weird volume renaming and other weird commands. Commands don't work. What is it now? Boot files are not found. What do I do now? At this point I thought about a clean install of Windows. Then I remembered that I hadn't pushed my code changes to GitHub for roughly 4 months. My bachelor thesis code. I started panicking. I couldn't even find the files with the cmd. I panicked even more. I looked again at the tutorials, carefully. Tried out some commands and variations for the partition volumes, since there wasn't much I could do wrong. Suddenly the commands succeeded, but not all of them? I almost lost hope as I seemed to progress not as much as I hoped for. I thought, what the hell, let's restart and see anyway. Worst case I'll have to remember all my code😅🤦.
Who would have thought that exactly this time it would boot up normally?
First thing I immediately did: GIT PUSH --ALL ! Never ever hold back code for so long!
Thanks for reading till the end! 👌😅8 -
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 -
At one point I understood a lot of git internals. Now I don't remember shit apart from the small subset of commands that I use everyday.
How does one remember such intricacies.
Also same with regular expressions xD6 -
This company's API simply wraps python commands from "client.get_data" to http://service_host/get_data. I spent 30 minutes trying to get through your stupid PIP installation crap, to find out all you do is wrap python's urllib2 library with 4 lines of code?
-
!rant
Just bumped into a repo that produces a mock shell with commands as a 404 page. Thought it might fit with someone's project.
It still has bugs (not work on mobile Safari) but that's an opportunity to get involved in an open-source project, no?
http://jotaen.net/jBZuH/...2 -
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 -
(Yet another rant on TAR commands.)
Whose idea was it to make TAR file listing "tar -t" and not "tar -l"?
How does it make sense? It goes against intuition.
It would have been more logical to make "-t" tarfile instead of "-f", and to make "-l" list.
Obligatory: https://xkcd.com/1168/9 -
It's hard to teach git to a beginner! There's just so many bits of info that you have to know before it clicks into place. Not to mention git's "reuse" of certain commands with files and refs.7
-
What console you use?
I use this one:
https://cmder.net/
I highly recommend it, you can use linux commands
Share yours!17 -
!$rant
Hmm.. I kinda want to add a terminal type feature to my portfolio project that let's you type commands to navigate the site or change some options. I could still keep the standard navigation elements for the people who get mini heart attacks when they even see a terminal xD -
Year 7 maths in 1984 - the teacher had a computer and showed us some BASIC commands to do mathematics.
I was spellbound. That year my father also bought a Commodore 64 for the family and I gravitated towards it. I typed program listings out of magazines and learnt programming almost by osmosis.1 -
Any advice on some good SQL book or resources?
I need to start learning DB designing and theory.
I know jackshit apart from the basic commands.4 -
I was about 8. A family member was like a secretary, but not exactly. There are was a term used, but I can't remember. It's not really that important.
Anyways, I was like 8. Their job consisted of backing data up on.... Floppy disks. The software they used to back this data up just used a console and you had to input commands. Well this was amazing to me at the time. So they taught me the order of the commands and let me do it. Was the most fascinating thing to me. And it definitely planted the seed of interest in computers.
Some other early experiences also involve me hanging around the IT guy that worked with my relative. He taught me a little bit, such as some keyboard short cuts.2 -
More rants coming up.
1st
Working with a guy who I am not sure has the necessary experience to begin with.
The person who hired him told me to teach the guy for him to catch up to our project and its pace. He has some experience with Java. Which our project is being developed in java in a linux dev environment in a full stack way. So we handle front to infrastructure.
First day working with him and I saw this guy is trouble.
1st - doesn’t know effing git commands. Who doesn’t know git nowadays. Ok i can forgive him for that. But damn this guy’s learning curve is so slow. After s month of joining, he still has to look up the commands in his photo cheatsheet.
2nd - doesn’t know linux basic cli commands like cd, ls, rm. not an ounce of knowledge. He told me he is used to developing in Windows. Now this. I can’t forgive him for not knowing this shit. cd (change dir) even exists in windows command line. He even has guts to say to everyone he wants to try working in our servers. The HORROR!
3rd - not sure if knowing junit and matchers of hamcrest, if you are working with Java is a must. But this guy doesn’t understand Matchers of Junit. How the fuck did he ensure effing quality in his prev work.
All in all, seems like this guy doesn’t understand the basics of current development tools.9 -
(another) Russian roulette for devs
$jobs -l
[1]+ 642 python .....etc
$sudo kill -9 642
.... other commands here
arrow up...arrow up... (looking for jobs -l)... got it.
arrow up...
$kill -9 642
F*uck! (i remember that i have not changed the pid)
kill: no such process (luckly no damages)
anyone killed something relevant making this mistake?6 -
I don't understand how people use Windows for development! And then they get GitBash and WSL and those terminals that let you use Linux commands and what not, like why not just get gnu/Linux or macOS?19
-
Today in Rust I defined a function that takes Any and returns Any specifically so that parametric types turned into trait objects of this trait can still receive commands without having to know their concrete type.
Bridging static and dynamic typing is one hell of an exercise.8 -
Sweet, my motivation for coding my personal projects has started to come back.
Last night I setup my Personal Assistant project with Text to speech and Voice recognition.
Now I just have to get it to react to commands.6 -
Linux networking: A tragedy in three acts
ACT 1:
Wherein the system administrator writes their /etc/network/interfaces file as is the custom.
ACT 2:
Wherein the kafkaesque outputs of basic networking commands threaten basic sanity. Behold:
```
# ifup ens3:1
RTNETLINK answers: File exists
Failed to bring up ens3:1.
# ifdown ens3:1
ifdown: interface ens3:1 not configured
```
ACT 3:
Wherein all sanity is lost:
(╯°□°)╯︵ ┻━┻)1 -
Docker.
Even the getting started tutorial didn't worked correctly. It basicly ask you to run commands and fails to execute. I also banged my head to wall few times while trying to connect my dockerized application to database container.12 -
How well do you speak git? Name all commands you know how to use 😄:
init, add, commit, remote, cherrypick, push, rm, rebase, reset, submodule.
Did I miss something?16 -
Bought a new toy drone to play with at home, Ryze Yello. It boasts an Open SDK on the box and claims to be programmable. Awesome, I think, I end up buying and going home to get to work.
All is great using the app, I can fly the drone and the video feed is mostly usable. Now let's get in to the SDK and see what we have.
Docs say I've got a few basic commands, 8 directional flips, 6 directions of movement, rotate, takeoff, and land. Plus a config option to set the speed. After a bit of tinkering I discovered that only 3 commands actually work: takeoff, flip, land. The rest error out with no (currently) useful message.
A bit more searching online tells me that they borked the commands with a recent firmware update and are working on it as of 3 months ago.
I wish I knew more about firmware or deconstructing the wifi packets from the app so I could try to do something useful.
So many stupid things I wanted to do with an automated drone and I'm stuck waiting for them to fix their firmware to put functionality back into the device.7 -
WHY DONT I GET FUCKING FIRED. I BEG TO GET FIRED. PLEASE FUCKING FIRE ME U DIPSHITS IM NOT EVEN DOING A GOOD JOB HERE AND IM NOT LEARNING ANYTHING USEFUL. HOW CAN A FUCKING DEVOPS JOB BE TO 24/7 CONSTANTLY RUN LINUX COMMANDS AND LITERALLY NOTHING ELSE HELLO????20
-
I did reverse engineering on window command prompt hahaha
of course it was just for the commands:
· set
· cd
· start
which were the ones I needed because the admins in my school blocked cmd.4 -
LETS MAKE AN INTERACTIVE RANT CUZ I'M BORED:
Lets try to collect some "deadly commands".
I'll start:
sudo echo "I AM STUPID" &> /etc/fstab
sudo chmod +777 /10 -
Do you also learn more using code snippets in the Internet than from sites and wikis trying to explain specific commands?
That's pretty odd in my opinion. -
I first wanted to be a black hat hacker so I opened cmd.exe and run help to see which commands I could use to make batch programs and then I taught myself the rest of batch. Afterwards, I drifted to DHTML (HTML+CSS+JS) where I made some basic snippets while teaching myself JS3
-
That sinking feeling when you realize you’ve been running all you got commands in the wrong repo. 😐 I can fix it but DAMN IT2
-
Hey Linux users!
I'm coming from a pure Windows background, and is going to make the change to Linux:Debian this weekend, and is looking for recommendations on material for learning commands and other possible features the OS might contain.
Working mostly with web dev and some Datawarehouse/BI applications.
Hoping for a smooth transition!5 -
Don't quite get this.
There's some bug where u run sudo -u#-1 cmd, it lets you run it as root.
But then it says only if you have permission to do so.
Does that just mean "run sudo" or something else?
I'm thinking sudo -u#-1 /bin/bash would basically give anyone root?
https://bleepingcomputer.com/news/...7 -
Ridiculous when ftp guide doesn't include anything about how to change root directory.
"All these commands and Voila! Yiu have your vsftpd server running"
ok but what is the root directory tho?2 -
I am really thinking of switching my main computer over to linux. I’m getting pretty tired of windows bugs and I keep finding myself wanting to use linux commands. The only reason I haven’t switched is MS Office products and video games, but I suppose I could make a new windows image just for that and dual-boot...13
-
Read everything and by looking at the source code by example, changing stuff and seeing what happens, reading tutorials, books, watching videos. Then coming up with an idea I want to do that doesn't seem too difficult but gradually building up knowledge of commands, memory, input and output, variable types and manipulation of said types, learning program flow and control and making stuff one project at a time.
-
Git should rename their commands to past tense verbs, so it can be "git merged!" (get merged), etc.3
-
I've decided to switch my engine from OpenGL to Vulkan and my god damn brain hurts
Loader -> Instance -> Physical Devices -> Logical Device (Layers | Features | Extensions) | Queue Family (Count | Flags) -> Queues | Command Pools -> Command Buffers
Of course each queue family only supports some commands (graphics, compute, transfer, etc.) and everything is asynchronous so it needs explicit synchronization (both on the cpu and with gpu semaphores) too4 -
Executing git commands you found online as proposed solution to your problem without checking what they do. Not even once.
-
Today I basically threatened my whole team that if they weren't going to help me take a backup (somehow don't have access issues to the machines) I would just deploy the thing and if it crashes then just fck it...
I already busted my ass for a whole week on top of other issues and you can't even help me run a few simple commands...1 -
The 'hamburger menu' is now like, and industry standard for basic UX everywhere.
Am I the only one who feels that it in its entirety, sucks?
the way iPhone implements its commands on the bottom or the way windows used to (before it gave in to hamburgers in UWP) implement charms was a way more efficient and elegant way to show commands..
I cant think of a better way without sacrificing screen space, but this for sure isn't the best way to handle commands.6 -
So I'm TAing this database class and we constantly need to use shell to edit text. I am hosting the workshop with another student, who is a vim user and I am an emacs user. During one workshop he wrote down the commands for editing and quitting vim, and I simply told them control x and controls s, then control x and control c. And the stdents are fucking complaining that is too many commands? Like, wtf? And this week when we are holding the workshop and we need to edit something so he said just open your favourite editor and a girl was like vim, vim, vim , the same girl who complained emacs is too many commands. Like I'm the total loser using emacs there. Get your shit together people omfg you brainless followers. No offense to vim users, this is just personal.1
-
Me: So we're deploying this today on prod.
Junior: Can you record the deployment steps for us so that we can deploy whenever you're unavailable?
Me: Seriously?
I liked their enthusiasm though.
Maybe it's just too early as these chaps don't even know the basic commands right now.
What y'all have on this?12 -
At my workplace a while back we got some new interns.
I had been explaining how to use the commands on our Linux server. While I was in mid-sentence talking about what shutdown does, the intern inputs the shutdown command; shutting down everything... not shortly after, I start getting bombarded with emails and calls...4 -
So a few weeks ago my colleague needed to generate some self signed certificates for our web application, we're working on.
I've sent him some instructions on how to do that. No big deal, few terminal commands.
The only trick was the commands were written for linux and we're using windows.
So... my colleague calls me, having some issues with certificates. He explains to me what commands he managed to execute, etc. There was also command "sudo" included.
He inputs the command to terminal and... terminal eats it?! Wtf?
So long story short he managed to install "sudo" for windows powershell terminal :D. It basically just gives you some UAC popup confirmation dialog and then executes the command.4 -
I want to create an interactive portfolio in a terminal design where you kinda have to type commands to get information. There would be a list of all available commands. Would you guys do it like that or would a normal/simple portfolio be better?7
-
Finally, I made my first android music player App. ☺️☺️
.
I don't know u guys like this or not but it have fully voice recognition functionality.
It means u can completely run this app by voice commands😋😋
https://play.google.com/store/apps/...14 -
I just scroll past this question asking how to get good at Git commands (https://devrant.com/rants/9997784/...). Figured I'd share my thoughts as a separate rant cause it's a topic I've tinkered with a bit.
So, My initial engagement with git-related queries on StackOverflow dates back to around 2021.. Surprisingly, one of my short and straight-to-the-point replies got a hand full of attention. You can check it here: https://stackoverflow.com/a/...
Now, about mastering Git commands – from my own trial and error:
1). Instead of trying to cram everything into your big brain, scribble down notes. Trust me, it’s more practical. I kept a cheat sheet of sorts as notes on my PC, noting down the commands I used day in, day out. Super handy beyond just work stuff.
2). You gotta get what each command does, but you don't need to nail it all at once. Spend a day diving into the basic commands. Leave the trickier ones for later; they start making sense as you get more into it.
3). I had this aha moment when dealing with a merge mess using a GUI tool. Switched to the command line, and bam! It made way more sense. The command line's like a secret passage to really understanding Git.
So, if you're wondering how to tackle Git commands, my take is: *notes, *baby steps, and *lean into that command line magic. Mix them up your way and see what sticks for you!1 -
Today I had to explay to a new developer, gradueated in Informatic, that our 15 year old php application uses global variables and strings as sql commands.
It seem to force someone to prostitution.
It's just like to drive a ferrari using a double-clutching because the gear is not syncronized.
I was shamed.3 -
always wanted to learn to use Linux, but school and c# has kept me on Windows, but I finally have Ubuntu on Windows, what should I start learning? please don't say the basic commands, learnt those ones, like is there a project or something I can plug into, and struggle with, and eventually learn from? Thanks!4
-
!rant
New to linux
So I deleted all of my games, pron, and installers just to free up some space for testing dual boot in my laptop.
I will study all the basic commands in terminal and make use of my time to coding.7 -
I want to be able to learn how to program as of now but there's no good courses online that I can actually interact with and my programming elective starts next semester in school. So unless one of you Devs can give a good suggestion, I'm basically sitting here playing with the commands I do know in my Linux terminal.6
-
After two weeks of struggling with Docker, I can confidently say, this is the worst shit I've ever worked with.
$ php bin/console make:migration
ERROR: php_network_getaddresses: getaddrinfo failed: Name or service not known
Well let's try again...
$ php bin/console make:migration
ERROR: Connection refused
Different error messages for the same commands?! FUCK YOU!!!8 -
#TIL that you can navigate part of your Linux commands with CTRL like CTRL+A gets you to the beginning of the typed command, CTRL+D deletes the forward command and CTRL+E gets you to the end of the typed command.
NONE OF THIS WAS FOUND IN ANY LINUX-FU LESSONS! THESE WERE WAY EASIER TO USE THAN USING THE ARROW KEYS GODDAMMIT!2 -
I feel hopeless after Unity fails to start/run under your primary user but works fine using guest user and other user in the system. And i did my research to fix it, but none seems to work. :(
The last thing i did to my laptop that might cause the error is executed the commands below:
sudo apt-get update
sudo apt-get upgrade6 -
Is it okay, to wrap posix-commands in your program for stuff like remove, mkdir and copy, if the language doesn't provide this functionality to accomplish these, without having to implement them yourself and handle half a million edge-cases.23
-
Blindly copy pasted and executed commands from tutorial.
Just because it was faster to reformat sd card in the worst case ( raspberry pi ) than figure out what each one did.3 -
when you script git commands to push with the message "bug fixes" because you're tired of doing it by hand2
-
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
-
Only took 20 minutes to setup a Debian vm and get the satisfactory game server running in docker. And most of that was waiting. I feel so smart 🤓 compared to even just last year when I was googling basic commands linux commands8
-
* ml wallpaper site with api (pandora for wallpapers)
* mmorpg like .hack/sao
* vr ai office (vr gear turn head to see screens and understands voice commands)
* gpg version of krypto.io2 -
Thanks ssh, reaaalll helpful message you got there :D
I get that you very rarely mistype ssh commands but come on4 -
Do NEVER give Linux-Mashines similar hostnames!
Had it often enough: forgetting I SSHed into my Laptop (ArchLFK) or RPi (HomePI) and tried to execute commands for my PC (HomeLx).
It drives you crazy when your commands do not work as desired or changes are not visible. Then you realize you're on the wrong mashine. 😰
Its like searching for your Smartphone while having it in your hand.2 -
Imagine 100 years from now, what would programming be like?
My answer :
Speaking the commands directly to the computer and hope it runs
Your answer?9 -
Spent 4 hours debugging a script. Running the commands manually in cli worked fine but not when run as a web service. I've done similar things before so I was confident it should work. I tried literary everything I was going crazy. Turns out that Atom added some garbage characters only visible in other editors.. And this was not the first time! Fml..
-
When you realize that commands like :wq / :q! / :x aren't getting you anywhere because you're in sublime not vim. I've begun my descent into a vim fan boy...4
-
Hi, everyone.
This is a post created for those of you who want to step up their terminal knowledge, learn new tricks, or just learn the basics.
I found these links that will help you on your path to master the command line on mac.
Links:
1. https://github.com/juanfrans/...
2. https://medium.com/@manujarvinen/...
3. https://computers.tutsplus.com/tuto...
4. https://lifehacker.com/a-command-li...
I hope you found these links useful and you learned one or two tricks!
I appreciate it if you leave a comment and Rant++ this post.3 -
Fucking gdb with your stupid commands, showing me the memory allocation, shos me the data you stupid piece of shit, what is the value pointed by the pointer.
*Segmentation fault**core dumped*
Oh gdb! How much I missed you. Please don't ever leave me okay? -
Sony Ericsson are just awesome. They not only have AT commands over USB without any unlocking, but also OBEX and docs for it. I'm absolutely in love with that!2
-
It's going to be horrible if God was a JavaScript developer. We'll only be created as skeletons and have to run some commands like
npm install brain
npm install body3 -
When shows openly insult your intelligence....
Like o wow that ping commands really gonna do a lot.6 -
Wondering for half an hour why the 7zip batch commands are not working.
Realized I was using 7zip instead of 7z :( -
linux wonders:
>su - otheruser
>whoami
root
fuck you!!!!!
it's one of those days where not even basic linux commands are working.... i'm about to give up, i'm so pissed off6 -
Hmm... Why does name look so familiar...
Ohhh mind flash... Looks at notepad file with my commonly used commands to confirm:
tar -xvzf ...3 -
I made a Linux Command Library/Help App for Android and iOS a while ago. In the app I give the user the possibility to request missing commands. A lot of useful feedback and commands arrived since then but apparently some people think I know and can just give them a command to hack entire facebook. like wtf :D
-
Honestly, Fuck Laravel, Fuck the installation process, Fuck the project setup process and fuck the cmd commands that have to be implemented with it.........But looks like ill be sticking with laravel for now19
-
Strapi...
So much promise let down by poor documentation. Adding custom commands is not in the docs but is supported in the code.
Spent 2 weeks through trial and error trying to get custom commands written to import content and its been a pain in the ass.
When your documentation is written, give it out to novice or intermediate programmers with minimal exposure to your system. Note down their issues and improve the documentation.
Hell, why not add a form to submit feedback on the docs to a dedicated team of writers.
Anyone here good with Strapi who could assist?1 -
Does anybody really know what they're doing with linux or is everybody just copying commands from stack overflow?13
-
Spent last 2 days trying to get an upstream data file loaded. I've now concluded it's just corrupted during transfer beyond repair... But I got to practice lots of Linux commands trying to figure out what the issue was and fix it (xml parser was throwing some error about nulls originally)
vi, grep, head, tail, sed, tr, wc, nohup, gzip, gunzip, input output redirection -
When you run some dangerous git commands, then realise you're in the wrong repo... oops
Luckily I didn't lose anything -
Is anybody else indecisive enough to code a RNGesus to help them decide what to do? lol... I even have it bark out commands indefinitely until I decide when to kill it, just so I feel that I have a wee bit of control in determining my faith. :P
-
As you guys probably know, Yowsup (Whatsapp via python) is going to die 1st June 2017. RIP :(
Is there another internet messaging service I can use to send commands to my computer (and get responses) over the internet? I'm looking at Slack, Telegram, etc. daeomons or something. Any (any) opinions?8 -
Theres one manager in my company which is not very technical but wants to be able to restart services so we use windows server (!) for everything.
Id rather make a whole application for restarting services (as if there probably aren't enough) just so you don't have to remember the commands if that means we can use linux for the servers4 -
I have these gulp tasks to preprocess my css and html. months ago it was all polished and working great.
I run the commands today, npm complains about deprecated something and doesn't let me run... I do updates, I try to run again: "Right now osX is not supported".
I literally did not change anything all these months.
Fuck you npm.3 -
Memorizing hundreds of commands with thousands of parameters to be used on an unforgiving command prompt was the next logical step. I mean who needs GUIs or IDEs with intuitive context menus and point-click operations in 2017 anyway?
I must be getting old.4 -
To competive programmers out there... What if there was an inbuilt browser in vs code, and some shortcuts to run terminal commands ?2
-
Show me how you made an http server with an arduino nano and an esp8266 via AT commands from the arduino, the arduino handling the clients.
No you didn't, this shit is fucking impossible.4 -
I am new to c and cpp.
I used to exploit my college's competitive programming platform cus it had a bad architecture and almost no auth checks.
For every ajax request, they weren't sending auth tokens or any form of identification and ran all the programs without any logs and on the main thread and as root.. wtf, right?
But recently they've changed something to the site and I cannot run bash commands using system() call.
Is there any other way to execute bash commands using c and cpp.
I already configured a miner in their server but then they re-deployed it cos someone forked bomb the shit out of it.
I'm a noob in c and cpp btw!3 -
Web server configuration sucks.
Apache or nginx have they're own custom configuration language and I don't understand why.
We've plenty of languages to work with: why we should learn some another custom commands with enigmatic commands for weird stuffs.
I'm not a python funboy but, a web server with python based configuration file will be so easy to setup and to maintain.9 -
Any good productivity ideas for Powershell profiles?
I currently have a couple of aliases for frequent commands, Posh-Git import and bash-like tab completion.4 -
I thought debugging node.js would be me throwing a bunch of commands at terminal but thankfully saner minds created vs code debugger.
Also vs code documentation should be a lesson to everyone on how to document stuff. -
Any terminator experts here?
I want to make a setup of multiple split windows starting things on launch. I got so far that I get all the windows with the layout option but I cannot launch what I want via custom commands.
I want to launch multiple ros launch files like that.
Any ideas?8 -
Alright after upgrading to Monterey, I literally can't open a single repo without Sourcetree crashing. Any alternatives? What do ya'll like as a git GUI?
inb4 "learn the commands" - I want to carefully separate files (or even hunks) by ticket number and can't be bothered to type all the commands out5 -
For some reason installing python 3.6 broke my NPM commands so i couldnt install any modules globally. The only solution I thought of was reinstalling windows, so the full day of work has been reinstalling everything
Fun times4 -
|----------------------------------------------------|
| FALSE(1) User Commands |
| |
| NAME |
| false - do nothing, unsuccessfully |
|----------------------------------------------------|
My daily activity summed up in a linux command man page. -
If my coworkers are going to execute SQL commands via strings in python and I can condense 50 lines of code into 7 with built-in eval(), then I see no problem here.6
-
With the current pace of gpt and dall-e, it’s looking more likely that a lot of development roles may go obsolete in the nearest future (3+ yrs).
I see the possibility of building full fledged websites and fixing bugs based on voice commands. The picture of this possibility is quite vivid in my head because it’s totally feasible technical-wise.
The only delay that may occur in this dynamics is the slow pace of its implementation by existing developer tools. Of which I think the reason is directly related to the cost of management of resource, quite the limiting factor here.
But imagine if a big tech like google creates a platform to build websites based on voice/text commands using advanced gpt inline with its access to existing corpus of data; that to me is “game-over” for web devs.17 -
me: can you help me debug this issue in our artifactory server?
ops: we don't manage that server. devs do
me: can I get access to manage that server?
ops: why would you need access??
me: to manage server ಠ_ಠ
ops: exactly what commands you will need?
me: ಠ_ಠ -
I started with logo where you typed commands to run logo. I wrote a script to create shapes. Started web dev in college when a friend taught me bit of php. I felt that it was the best thing ever. I just couldn't stop exploring more and more since that day. I've worked with c/c++ projects too.
-
got to play adventures of hugo when i was 6yrs old, a game where you need to type in commands for the character to execute. when i finished the game, my dad told me, that's programming. and i was like O_o this is my destiny
-
LINUX MASTERS, I can't believe that linux didn't get rid off yet of the annoying user:group system.
Anyway, I have two pre-existing groups(postgres & www-data), now I need to enable both groups full access to an HD for data storing, currently the owner of /media/"user"/DATA is www-data but I need to enable the postgres group to operate in it.
I seached around and can't get around how to accomplish this, if it's even possible.
Help >_<15 -
The God of dev arrives and commands you to stick to just one OS, programming language, text editor, ide for the rest of your life. How do you respond to His glorious command?7
-
It's so funny when you try to run some commands in bash under windows 😆😆😆. It's a very old port of bash v1.14.23
-
I just recently stumbled over qutebrowser, a keyboard-centered FOSS-browser. It can be used with vim-commands exclusively, so no mouse needed. The only downside is that it doesn't seem to support plugins. Perfect for people like me who keep losing their cursor 😅2
-
Looking for advice...
I'm working on a personal assistant type application, my own Jarvis.
I've been using Python3 and it's at a point I'm confident to host it on server, but it consists of no commands.
Just a server, communication and other functions.
What process would you use for commands?
As in, would you just have loads of if statements? If so, what about plugins?
I'm using Yapsy as a plugin framework, so I'd like to be able to drop plugin files and build up the command list.
This is why I haven't done commands yet...2 -
It was compulsory to study logo at the school, class 4. Was around 10 at that time. Love what I could make the turtle do with commands. FF 2 years, learnt HTML in school. Loved how some tags made a webpage. Didn't code for next 7 years(idiotic decision?). Started with Java and Android development and fell in love again. Didn't let it go this time 😀
-
Oh, come on! Human Resource Machine, Three Sort, a single cycle away from the optimization challenge! What more do you want from me?
Also, I have already gotten the challenge completed for only using 34 commands. I'm increasing the number of commands greatly for the cycle challenge in order to avoid swapping.1 -
A few years ago and today very shameful: Griefing Minecraft servers with an own "Griefer-Class". The class was completly enclosed into a simple ArrayList ( with {{ }} ) to hide it in JD-Gui (decompiler many are using) and had a own remote client that could send own as well as server commands via kinda like a telnet connection.
That were times... 😏2 -
I hate windows, the fucking constant updates and restarts as soon as I start working.
I have been wanting to make the change for a while now but I would like to ask the community first, which Linux distro should I start with? I understand most basic bash commands and am fine navigating the command line, but would love to hear people's opinions. Thanks!6 -
Ok so I decided to do some Vue + Vite + Tailwindcss
OMG.... the flames I saw setting up tailwindcss in Vue 😢😢😢
A whole bunch of docs where all about setting it up in react
even after 24 hours I then found a doc that was specific for Vue
same commands for react as well where used
then I had to copy the last step and override the tailwind config file with those specific configurations
why tha fuck couldn't they just create Vue specific commands that generate configurations for Vue
WTF 🤨🤨🤨🤨20 -
The best description of my job i ever heard:
„one time you’d opend a black window on the pc to put some Hacker commands in.“
And yes she talks about the cmd on her Windows 😂 -
Kut boosts CLI productivity by organizing commands. I recently put lots of work into it and I am looking for testers / contributors / critics!3
-
Knew nothing about Arduino
Attended a workshop
They had a hackathon after it
Won the hackathon
Got the Arduino uno board as a prize
Gotta buy sensors and other stuff though.
*Me so happy*
What should I make now? (Apart from an Iron Giant replica controlled wirelessly thorugh commands)3 -
I'm thinking of taking the LPIC-1 exams and getting certified. My boss has asked for a time frame for studying but I'm unsure how long it would take. Any ideas? I'm at the level where I can just about work my way through a system use basic commands.
-
Jr dev: I need to log in to servers via ssh and run commands.
me: [posts link to Fabric web site]
Jr dev: Does it support python 3?
Gee...here's an idea. Why don't you try READING THE FUCKING DOCS?!?!?! -
I feel like I mostly know programming. I wasn't fed HTML and bash commands mixed in with my mother's milk as a child. In fact I didn't know very much at all about computers before my computer science degree, other than what's to be expected from someone in his 20's.
On the endless journey of knowledge most of the road is ahed of me.3 -
Creating the build script for the CI pipeline:
- 20% trying to avoid someone getting access to passwords, tokens, etc.
- 10% writing commands for the build and tests
- 70% writing work arounds for bugs and errors caused by the CI system or SDKs in headless environments...4 -
I had created a vb script that bred a wav file with a cat meow. Then I sent it to a colleague of mine and I was executing it in the background giving commands over the network from my pc . She was looking inside the cupboards for a real cat!!!
-
Ok soooo......today all those years of learning cmd commands and how to navigate the system in cmd kinda paid off
Had to search and copy files from a pc that isn't booting up and the pc has to return to the pharmacy today
Incase the machine fails.... we just do fresh install and restore back critical data -
Do you guys have any linux commands especaily you like?
In my case,'rm -rf /'
After type it, start again5 -
Finally, installed nvidia drivers on arch linux and I can watch videos without screen tearing.
It took me 8 months to figure out to download the main driver from their site instead of using the commands mentioned in arch wiki.15 -
I just watched the GitHub training videos at http://youtube.com/playlist/... and I am at the same basic comprehension level as I was when I started. Cannot keep track of all the switches, options, and commands and when it's best to use them! GAH!5
-
I don't know about you but I find remembering symbolic link commands too difficult - midnight commander to the resque!
-
After exchanging punches with laradock and docker yesterday, I was able to to find a middle ground, it promised to work and I said I would not annihilate it from my machine.
Pretty handy once it works, got now quite some docker-compose commands beaten into me, because of how many times I've up'd and down'd after re-building with different configs. -
GitHub Command Syntax
Do you also think GitHub should highlight
commands as you would expect them to?
Check out this related issue and give it a
thumbs up or something, maybe at some
point they will finally do something about it ..
https://github.com/github/linguist/... -
So this is really a thing. I'm used to have yarn build/dist/watch and serve commands but my collage is used to laravel mix, and we working with static URLs like client.local. I'm used to localhost:xxxx which is better because you can use hmr. So what do you guys name your development build command and the one for production?? convention
-
Learned about IDEAVim today. Still learning to use it, but I feel that after mastering the commands it's going to boost my productivity.
-
Don't you hate it when you are typing too fast in him and you accidentally capitalize your commands?1
-
How can you know my mood? Check my git commands. Am I using `git push -u origin SQUAD-feature-branch --force-with-lease` or `git push -f`?4
-
Created a separate user in linux debian. Logged in as new user. Console seems weird and if I press my key up I can't get previous commands, I'm just getting symbols. This is how it looks https://prnt.sc/r0krvw
With root user everything is fine.
How can I fix this?7 -
Are these things always clear to everyone else? I completely just come to a screeching halt with this type of thing. Are there brackets? are there quotes? Everyone writes these fill in the __________ type commands differently - and half the time I interpret them incorrectly. (or it's misleading / however you want to think about it)3
-
I was setting up a CI build machine. Builds were supposed to be ran in disposable containers, but I needed a way to trigger a task on the host from inside the container. I didn't want to give containers shell access to host - kinda misses the point.
Solution: a server running on the host and listening for predefined commands on a named pipe. The pipe was bound into containers which would simply echo commands into it. Very simple and effective.
The hacky part? The server was an 8-line bash script.1 -
I've just seen Powershell Crescendo... Which seems to be glorified aliases? Am I getting this wrong? Also does anyone prefer Powershell commands above (literally ancient) Linux program names?2
-
I got reeeeeeaaaally mad today when I found out there are ssh commands in the ios shortcut application but not an actual official actual terminal.1
-
I just made an interview for a Devops position, for a bit of context I’m transitioning from a development background. I was asked only for specific commands and configs and literally no design questions, thing I would usually just google.
Is this normal? Because it was the most bizarre interview I’ve had.5 -
Tried setting up a Cordova project using Docker (less dirt when I stop with the project or something)...
All cordova commands exit without error or anything...2 -
Does anyone have experience with unit testing AutoCAD plugin applications? And || or UI testing?
Because you need a running AutoCAD application to test commands and functions it's very difficult to test the AutoCAD related methods.
I would like to know how you do it. -
Still waiting for google to add voice commands in my language (at least "OK Google" recognition).
The audio to text is working pretty good, I'll give them that... -
List all commands for troubleshooting networking issues! (For Microsoft) Go!!!! (I feel like I'm forgetting some!)4
-
Run ./configure and gmake directly, it works.
Run a gradle script with exec tasks that runs the same commands, and the binary doesn’t run complaining about a library.
Fuck you AIX.
I haven’t fully root-caused it yet. I’m assuming something is fucking up during configure. -
For editing small stuff? micro. Intuitive shortcuts and useful commands.
For editing larger projects? Definitely a JetBrains IDE. The way they make debugging work properly out of the box is fascinating. -
GDB&Code::Blocks got drunk together and this is apparently normal now. For like an hour already.
I DIDN'T RUN ANY FUCKING CODE IN BETWEEN THESE COMMANDS WTF IS THE DEBUGGER DOING ????3 -
I was passed someone else's homework which included describing what certain Bash commands do. I've a fair bit of experience and I can't imagine why this one would be useful, can you think of any use for it?
(find -type d) | grep public | tr './p' ' '6 -
Protip by Brian Bi: Close terminal windows often, instead of reusing them. This ensures that the bash instance flushes its command history to ~/.bash_history, and new bash instances will be able to recall previous commands in their reverse-i-search.1
-
What is the correct way of pulling the latest changes via docker?
Please write step by step commands.
This is how i do it:
1. docker build -t dashboard:latest -t dashboard:v2 dashboard/.
2. docker rm -f dashboard-latest
3. docker run --name dashboard-latest -d -p 8081:80 dashboard
So...
1. Build latest changes
2. Remove the old container
3. Pull those latest changes
---
Is there a better way? Less commands? Is this the right way to do it?
Sometimes the changes dont get updated so i waste hours of time trying to figure out if i fucked up the commands, or order of commands, or if its some caching problem etc.
Teach me the right way once and for all.9 -
I have troubles running docker and daemon on ubuntu linux cli installed on windows 10, tried to solve all possible mistakes but no result. Windows is a bullshit, Ubuntu linux cli for windows is not fully fledged.8
-
HELP ME DECIDE !
For my next project, i am gonna make a voice assistant app in javascript. Comment what commands and corresponding actions you would like to see. Try ta think of something funny and entertaining !5 -
p4 add <new file>
cp <old file> <new file>
p4 delete <old file>
p4 submit
That how you tell someone “GO TO HELL!” in perforce commands.2 -
! Rant
In the spirit of the latest dirty cow Linux cve lets hear dev rants favourite dirty Linux command
$ man touch -
So trusted. Purchased a HackRF SDR and I don't know how to program it? Anyone know what language/skill I need to send control commands from my SDR to my iPhone via Bluetooth? A good text or example code would help???
-
I started on my commodore 128D by typing over code from magazines. After that I started modifying them a little. Then I started making programs that drew little sketches on the screen using vb lineto commands. All this when I was 10years old.
-
Looking for good literature regarding CRUD. Basically i want to have a list of possible dataoperations nowadays. And the relations to commands like Copy, Paste, Search, List, Undo Redo, Macros etc. Any suggestions?16
-
need ideas to create an app that runs linux commands on a server from a web page.
i have tried sshxcute lib of java to do the same .it works
any other ideas7 -
Again symfony documentation or symfony itself. Or me not noticing something?
Doing simple commands from
https://symfony.com/doc/current/...
and https://symfony.com/doc/current/...
and encore not found . Wtf. Just wasting my and other devs who have same problem time.4 -
An intern wrote down in their timesheet:
Monday, 3 hours, "going over git commands to push code to <branch>"
3 hours my ass6 -
Has this ever happened to you?
You open up your text editor and start typing commands. But it tries to turn on your virtual environment or run a script:
& "c:///project/folder/..."
But since you're in the middle of typing your commands, it get's meddled in between and it fails to run the script, so you gotta do it by hand.
git fet & "c:///project/folder/..."
Unrecognized command "get"7 -
I want to learn about Linux file system. My searching led me here => https://refspecs.linuxfoundation.org/...
Is this a good place to start with file system?
P.S. I barely know Linux apart from basic commands.3 -
Anyone knows some good resources about git?
I use it everyday - but only the basic add, commit, push, merge commands. I'd like to get a deeper understanding of git and of different workflows (like working with rebasing).
So if anyone has a recommendation for a book or something where everything is at one place - please let me know 😀1 -
WHAT THE FUCK IS THE GOOGLE SDK FOR?
ya I get it you connect to it.
It doesnt give local directory to Google Directory, it doesnt run ssh commands nor python commands. WHAT THE FUCK IS IT FOR?
DO I MAKE A BUCKET NOT COMPUTE ENGINE?
DO I SHOOT MYSELF IN THE FOOT AND DELETE THE PROJECT DUE TO HAVING AN OVERFLOW OF PYTHON FILES IN WRONG DIRECTORIES?
LIKE FOR REAL