Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "tar"
I don't get why people struggle with tar commands. It's just:
tar -<left half of the keyboard> filename.tar15
curl cheat.sh — get an instant answer to any question on (almost) any programming language from the command line
do curl cht.sh/go/execute+external+program to see how to execute external program in go
And this question: why I actually should I start the browser, and the browser has to downloads tons of JS, CSS and HTML, render them thereafter, only to show me some small output,
some small text, number or even some plot. Why can't I do a trivial query from the command line
and instantly get what I want?
I decided to create some service that will work as I think such a service should work.
And that is how wttr.in was created.
Nowadays you probably know, how to check the weather from the command line, but if not:
(curl wetter in Paris if you want to know the weather in Paris)
After that several other services were created (the point was to check how good the console
can solve the task, so I tried to create services providing information
of various nature: text, numbers, plots, pseudo graphic etc.):
curl rate.sx/btc # to check exchange rate of any (crypto)currency
curl qrenco.de/google.com # to QRenco.de any text
And now last but not least, the gem in this collection: cheat.sh.
The original idea behind the service was just to deliver a various UNIX/Linux command line cheat sheets via curl. There are several beautiful community driven cheat sheet repositories such as tldr, but the problem is that to use them you have to install them first, and it is quite often that you have no time for it, you just want to quickly check some cheat sheet.
With cheat.sh you don't need to install anything, just do:
curl cheat.sh/tar (or whatever)
you will get a cheat sheet for this command (if such cheat sheet exists inf one of the most popular community-driven cheat sheet repositories; but it surely does).
But then I thought: why actually show only existing cheat sheets? Why not generate cheat sheets or better to say on the fly? And that is how the next major update of cheat.sh was created.
Now you can simply do:
and get your question answered
(cht.sh is an alias for cheat.sh).
And it does not matter what language have you used to ask the question. To be short, all pairs (human language => programming language) are supported.
One very important major advantage of console oriented interfaces is that they are easily
programmable and can be easily integrated with various systems.
For example, Vim and Emacs plugins were created by means of that you can
query the service directly from the editor so that you can just write your
questions in the buffer and convert them in code with a keystroke.
The service is of course far from the perfection,
there are plenty of things to be fixed and to be implemented,
but now you can see its contours and see the contours of this approach,
console oriented services.
The service (as well as the other mentioned above services) is opensource, its code is available here:
What do you think about this service?
What do you think about this approach?
Have you already heard about these services before?
Have you used them?
If yes, what do you like about them and what are you missing?29
Software engineering is doomed.
The next generation of developers is going to suck as fuck
I've come across a lot of situation that made me think this way.
The most notable examples are right here on devrant.
I've seen a shit ton of rants blaming languages for "bugs" when in fact those "bugs" wouldn't have happened if those fuckers would have read the specifications of said languages.
This new generation doesn't read, when they've got a problem they just fucking go to Google for answers, they don't bother reading specifications, language books, rfc, etc, they don't bother reading where the true source of information are. The documentation ? What's that ? Let's go to stackoverflow first, let's think second.
Same back in school I've seen people in the highest grades that couldn't fucking decompress a tar archive.
In the coming decades we will loose the high skilled people, the people that made the software world as it is today we will be left with fuckers only able to blame things for stuff they don't understand.
This is my first true rant. This is me being pissed off.27
How Microsoft devs think about Linux 😁.
This was found inside the index.html of Visual Studio Code editor.9
running tar commands like
'Twas the night before deployment and all through Hipchat
Not an intern was stirring, or a CSM, at that,
The feature design was approved with care,
The business case and user feedback were there.
The sales team was home watching the game in their beds,
Making "Presidents Club" danced in their heads,
The CEO mused over valuation cap,
And how the competition could take a dirt nap.
When in pager duty there arose such a clatter
The night devs logged in to see what was the matter.
Away to the server logs they flew in a flash
To see what had made the primary DB crash.
The pristine backups in the freshly pushed cloud
Gave joy and relief to the now-anxious crowd.
When what, on the CDN status page should appear,
But holly-red downtime and a DDoS severe.
With little fanfare and at speeds none could detect,
In toddy-wreathed glow appeared the Senior Architect!
In mere milliseconds the commands they came,
Were whistled, and shouted, and called out by name:
"Now Traceroute, now Nmap, now Dig, now loopback Localhost!
On Makefile, on Linker, on Tar, on avocado toast!
To the bottom of the Btree, to the root CA,
Now compile! Compile! And restore away!!"
As JS frameworks of the day away fly ,
When the zeitgeist forgets them in the race to the sky,
So up to the network backbone they flew,
The Architect on her PDP-10, with her Dynabook too!
And then in a twinkling, the emergency team
Saw the DDoS reverse, and the bits surged downstream
Packets, like snowflakes, flashed before our wint'ry eyes,
At 1024 GB/s, a wonderland of surprise!
Her eyes, how they twinkled! Her shell scripts-- concise!
Her bytecode so polished it ran on any device!
Her soldering iron swung freely from her hip,
From a hot whiskey toddy she enjoyed a long sip.
She spoke not a word but went straight to her work,
And synced the prod DB where the tables went berserk.
And laying her spanner aside of her nose,
And giving a nod, to obscurity she rose!
She sprang to her PDP, to her mainboard gave a knock,
Rebooted the magnets and refreshed the clock.
She exclaimed as she vanished, giving us her last jabs,
"Remember to always use spaces, not tabs!"12
For the first time in my career as a developer I remembered the tarball command line options without looking them up5
It's always so uplifting to see this post on SO. With _that_ accepted answer. After so long... :D
I installed ArchLinux on my smartphone thanks to termux, and now i kinda feel like a god, but don't know what to do.
WHY AM I SO FUCKING AWKWARD OH MY LORD! LITERALLY ALL I HAD TO DO WAS WATCH A SCHOOL PLAY AND THEN GET A PICTURE WITH A CAST MEMBER AND IT WAS PROBABLY ONE OF THE FEELINGS I'VE HAD IN THE PAST WEEK! GOD FUCKING DAMMIT I AM SO DONE WITH THIS! I'M TIRED OF BEING SO AWKWARD AND ANXIOUS! I DON'T GET HOW PEOPLE CAN DO ANYTHING LIKE THAT WITHOUT FEELING UNCOMFORTABLE. THIS HAS LITERALLY RUINED MY FUCKING LIFE AND I'M SO TIRED OF IT. I KNOW PEOPLE LIKE ME BUT I JUST CAN'T GET MYSELF TO TALK TO ANYONE! THE SIMPLEST THINGS TAKE SO MUCH OUT OF ME AND I'M SICK OF IT! I'M JUST TIRED OF IT! I'm just, tired.9
Lets Start a list of all the impertant gnutools, everybody
- $(cd contdir; tar -cf - .) > $(cd destdir; tar -xf - .)
Challenge for all Linux users:
You have to unpack sometarball.tgz
You have 10 seconds.
Can you do it?29
tar -zvcf folder just gave me the error message:
"tar: Cowardly refusing to create an empty archive"2
Never worked before so I'll talk about one of the former staff at my school.
This guy worked as IT and did some teaching in the high school. Early last year, he suddenly disappears for no reason.
Now, I'm going to go in order of what we (the students) found out, not, chronological order.
Firstly, turns out that in class he would make comments about female students. Nothing explicit, just kinda strange. I forget the examples I heard but think like the overly friendly old guy. Those types of comments from a 40-something IT guy. (Some female students knew about this for a long while but I only heard about it after the investigation)
Next, rumor got out that they found some stuff on his computer. I don't know how, but it turned out to be accurate, and we were accurate at the follow-up assumption that it was porn.
After that, the school made an announcement that we had been arrested. Up until then, we just assumed he had been sacked. He was weird sure, but we didn't think criminal.
Some other students looked into the police records, and it turns out this guy had been arrested for possession and distribution of child pornography.
Pretty sick right? Its worth pointing out now that our school has Pre-K through 12th grade students.
I gained a new level of respect for my female classmates after that. I didn't even know that was going on, really wish I could have helped out.2
Okay karma, why?!
I made some backup scripts, it should dump our MongoDB every 30 Minutes... Nope I didn't test if there's something in the tar and yes it's my fault but now we needed this backup AND THE ONLY BACKUP SCRIPT WHICH DIDN'T WORK WAS THE ONE WHICH BACKUPS THE DATABASE...
"Tar up your projects as version control."
- CS teacher
I understand git is hard (just the awkward syntax) and not part of a curriculum, but can it at least be suggested? A whole year later, I found out about git and it has made CS projects so much easier.
git commit -a -m "No more tape archiving"4
trying to install devkitARM:
>don't wanna install pacman for one special snowflake library
"can't extract /-.tar"
"lol just use pacman skrub"
>I DON'T WANNA FUCKING USE PACMAN YOU TROGLODYTE, MAYBE HELP ME WITH BUILDING SOURCE?????
"nah, just use pacman, it'd be dumb to provide a copy for every package manager"
>EVERYONE ELSE DOES THAT. YOU ARE THE EXCEPTION, NOT EVERYONE ELSE.
*fucker marks issue as spam, doesn't help me*
i'm gonna fucking stab somebody i swEAR TO FUCK
Turns out i'm banned from making another issue to try and ACTUALLY GET HELP THIS TIME.
"You can't perform this action at this time" isn't fooling anyone, GitHub, we all know what happens when you get errors like this7
So I decided to install Arch on my Vps.
Problem: no connection from Vps to internet.
Info: I have terminal access from my hostings panel.
Solution: basic troubleshooting and Google
Problem: this hosting uses outdated install image with broken systemd-networkd.
Solution: install networkmanager
Problem: no internet
Solution: download networkmanager and dependencies on my laptop
Problem: How do I upload them?
Solution: put them in a tar archive, then base64 it and copy paste it via the panel.
Problem: That base64 is over 30MB. No browser lets me copy and paste so much text.
Solution: Write a quick and dirty Java that reads a .txt file and presses buttons.
Problem: Browser freezes after one second
Solution: Thread.sleep(10) after each character, and Thread.sleep(1000) after 10k characters for the browser to catch up.
It's currently going and I have no idea how long it will take. I'll post an update when it finishes.
And people ask me why I love programming. It can help solve so much problems with so little work.
Edit: according to some quick calculations this will take about 5-6 hours, so I'm cancelling it, sine it's past midnight now. I'll start it up tommorow before going to college1
Wrote my first bash scripts today.
One installs a few packages (Brackets, VLC, Nodejs, chrome) and the other gets my preferred theme and icon set from gnome-look.org with curl and piping straight to tar -xz in tge proper folders.
They're simple, really, but you have to start from somewhere.
Now with that said, I'll let you know if they work ln the first try--about to install Ubuntu on a different machine5
I am become gradle
destroyer of builds
look upon my works, ye mighty, and despair
Why can't zip/tar tasks work like copy tasks? Whyyyyyyy?
I got it working--abusing tasks.create--but hot damn this should be easier.
Of course the shouting episodes all happened during the era I was doing WordPress dev.
So we were a team of consultants working on this elephant-traffic website. There were a couple of systems for managing content on a more modular level, the "best" being one dubbed MF, a spaghettified monstrosity that the 2 people who joined before me had developed.
We were about to launch that shit into production, so I was watching their AWS account, being the only dev who had operational experience (and not afraid to wipe out that macos piece of shit and dev on a real os).
Anyhow, we enable the thing, and the average number of queries per page load instantly jumps from ~30 (even vanilla WP is horrible) to 1000+. Instances are overloaded and the ASG group goes up from 4 to 22. That just moves the problem elsewhere as now the database server is overwhelmed.
Me: we have to enable database caching for this thing *NOW*
Shitty authors of the monstrosity (SAM): no, our code cannot be responsible for that, it's the platform that can't handle the transition.
Me: we literally flipped a single switch here and look at the jump in all these graphs.
SAM: nono, it's fine, just add more instances
Me: ARE YOU FUCKIN SERIOUS?
Me: - goes and enables database caching without any approvals to do so, explaining to mgmt. that failure to do so would impair business revenue due to huge loading times, so they have to live with some data staleness -
SAM: Noooo, we'll show you it's not our code.
SAM: - pushes a new release of the monstrosity that makes DB queries go above 2k / page load -
Tho on the bright side, from that point on I focused exclusively on performance, was building a nice fragment caching framework which made the site fly regardless of what shitty code was powering it, tuned the stack to no end and learned a ton of stuff in the process which allowed me to graduate from the tar pit of WP development.5
Given the recent election, I'm taking measures to ensure the privacy and security of my data. Call me paranoid, but I think the NSA is going to be getting some extra funding soon. I'm already working on encrypting a ton of my data. Any other tips some of you guys could give me?11
Forgot to wish everyone a happy new year. Some time in July, I was randomnly browsing the play store and found this app called "devRant".
sudo tar -cfz /ce/2017 /ce/2017.tar.gz
sudo rm /ce/2017
sudo touch /ce/2018
Yet another step towards the God's eye in Fast & Furious. Since it requires a 360 scan of a face, CIA just requires a photo to find anyone in the planet who's using an iPhone X [Stands for Expensive]. There's a reason why Apple ditched the fingerprint sensor.
RIP #Privacy 😶5
So I am broke and can't buy a vds, I installed Termux on my android phone instead. Now I have a portable server that is capable to recieve calls and transmit sms for logs.
BUT, then I had to go to customer support due to case makes the phone get short circuited şn random times. Obviously they deleted all info and Samsung Cloud doesn't backup other users' data. (Termux emulates a terminal running on another user, which is not root by default)
Can anyone teach this teenager how to use tar properly? :D3
I'm a young dev with ADD. Basically I just need to stay up late, and then get myself to hyperfocus on my code. It typically gets done in time to get a decent night's sleep.1
Worst prod scenario experienced - on site in small African country working on CRM/billing system my colleague was testing some new SQL and after finishing decided to drop and recreate the DB. She thinks the process is very slow and suddenly realizes she is dropping the prod DB. In a panic she shuts down the system and starts doing a restore from tape, but is so stressed out she writes "tar cv" instead of "tar xv" and overwrites the backup with the broken DB. Took a while to clean that one up...2
Work at clients office,
Ubuntu, Friend requested to install VS Code and other softwares, they denied and forced to use stuffs we don't like.
Downloaded everything as tar balls and using it without installing.
Within 30 minutes, we got Sudo Access. Lol
termux : Android terminal with apt repos like vim, nano, tar, zsh, wget, plugable & more. Also small footprint.
.. htop in gif (incase if don't know)21
When I rented my server I uploaded my webpage (including resources like videos, images etc) which is about 150GB as .tar and extracted and setup all that stuff and deleted the backup from my PC. The uploading process took me about 4 days. I opened the site of my server provider and reloaded it.. Aaaaannddd whoops. All data gone.
On my server hosters webpage when you click the reinstall button for installing a Linux image you get returned to the main page of that server after it finished installing. If you then reload that page which basically only shows some monitoring diagrams and shit the server gets reset again.
Damn. I lost so much good porn on that day...
If I have to listen to one more trendy, simplistic, shallow, preppy pop song I'm going to snap and beat the living tar out of whatever happens to be in swinging range.
...ok, I won't. But man I'll be tempted.3
A friend of me said that intel Pentium and i3 is the same, that all laptops with intel`s logo have the same processor, you just have to view the info. of yours...2
Thank fuck for the ability to decompile java .class files. Tried to use tar and overwrote the source file :0
Spent half a day creating my CV, some time ago and today it was time to upload it to my site.
Unfortunately, swapped the first and second arguments of the tar command, so the CV file got overwritten with the tarball...
After about ten minutes of panicked searching in my browser cache, I realised that the jetbrains IDEs have local history 😀
So I did not lose half a day's work after all 😃
Hmm... Why does name look so familiar...
Ohhh mind flash... Looks at notepad file with my commonly used commands to confirm:
tar -xvzf ...3
Trying to do an LFS build on a computer that keeps restarting. Need to mount the partitions and export variables all over again (ノ=Д=)ノ┻━┻1
I'm an aspiring coder working some chappy administrator job just to pay the bills for now. My boss found out that I may actually be more computer literate than I let on.
Boss: "I want you to make X happen automatically if I click here on this spreadsheet"
Me "X!? That means processing data from 4 different spreadsheets that aren't consistently named and scraping comparison info from the fronted of the Web cms we're using"
Boss: "if you say so.. Can you do it?"
Me: "maybe.. Can I install python?"
Me: "what about node.js or ruby?"
Boss: "no.. I don't know what you're talking about but you're not installing anything, just get it done"
Me: "Errm Ok.."
So here I am now, way over my head loving the fact that I'm unofficially a Dev and coding my first something in Powershell and vb that will be used in business :)
Sucks that I still have to keep my regular work on target whilst doing this though!2
Between android studio and Unity, which one si better to make a adventure text game? Why? (i'm learning, dont kill me please)8
Let's list off all the craziest stuff that happened in 2016. (Crazy meaning unexpected not good or bad)
I'll start with the cubs winning the world series.7
When gulp build (expressjs + browsersync + browserify + uglify + gzip + gulp-zip + gulp-tar) perfectly compiles your code, minify and concat all js, gzipped them, minify images, package the files into a .zip and .tar... and refresh your browser 😍
you begin to have faith that its gona be a nice day ahead
when installing software(any) on linux, which method do you guys prefer ?
- from official repos
- using .deb/.rpm
- manually from .tar.xx/.zip packages
I prefer unpacking .tar/.zip3
I learned over this weekend that there are no good tape backup systems for Linux. Oh sure, there are a couple of open source projects like Bacula and AMANDA, but they're both a bit too much on the .conf file hell side for me. And fuck literally everything about .tar scripts.
And then you've got things like Backup Exec that, while having its own problems like not being hostable on a Linux machine, will talk to a Linux machine and its connected tape devices with very little hassle.
Linux people: UX is important! Licenses for expensive software are often cheaper than teaching people how to use obtuse systems!1
I'm a full stack web dev (LAMP, MEVN), not a sys admin. Besides complete control of my os, are there any benefits to a Linux-based os like arch or ubuntu? I've played around and set up both in VMs, but I'm struggling to find a benefit that justifies the setup commitment.5
Tried (and still trying) to do an LFS build. I already worked with Ubuntu, Debian, and Arch, but somehow a successful build eludes me. Each time I follow the book as closely and possible, but each time I got different issues. I've had to format the partition I'm working on at least 20 times now. Its fun, but I have no idea how I manage to mess up in so many ways.
Trying to write a program a la `man` in ncurses and just, is this hell?
I just want a floating header, a scrollable main body that reads from a file, and a command line footer, why is that so difficult? I finally got it to handle resizing terminals but now I need to try to compile it for windows, which does have unofficial ports of ncurses, but I have no idea how to use them.
Should I just restrict the windows version to a non-interactive command instead of a TUI like I want?2
Tries to automate login with vb using I.E...
Gets stuck because login page is a hive of nested iframes with deep nested tags without defined names
About the one ranting about people who don't know how to use Google:
that kind of people is my family, and, my sister ASK TO GOOGLE, really, she write all the homework of her school to google.
THATS why they dont find answers
Thought i'd try using VSCode.. initialized folder for git... and then proceeded to delete all my nodeschool work that i'd done over the past year... ARAGH!2
ugh I just wasted an hour of my life on `tar`. Unzip, edit file, rezip. Seriously. How hard can that be? And no DSM, "invalid file format" doesn't do crap for helping me debug.
(I know, tar is the butt of a lot of memes around here, but it's legitimately frustrating.)