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?26
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
Fucking 20 hour days. Third one this week.
Been at work since 6am, it is now midnight. Spent the morning fixing bush league code mistakes from "expert" onshore developers, and explaining how-to-wipe-your-ass level concepts to some rude cunt who is absolutely going to take credit for my work after I leave.
Now I'm just waiting on this slow boat scp to finish because the invalids the customer hired to manage their infra can't figure out the 3 minute exercise that is standing up a registry, so the container deployment process is fucking export multiple 500mb Redhat images as a tar and ship it across the cripplenet they call a datacenter. And of course the same badmins don't understand rsync and can't manage to get network throughput in a datacenter with a $300M annual budget over 128kbps. I guess that's fast for whatever jugaad horseshit network they're used to.
I've said it before, but it bears repeating. Fuck IBM. They're a cancer and at this point I question the moral compass of anyone who works for them.8
How Microsoft devs think about Linux 😁.
This was found inside the index.html of Visual Studio Code editor.9
running tar commands like
Manager: I'm so sorry to say but your collegue A has passed away yesterday afternoon. There will obviously be flowers etc and we'll try to support her family as much as we can..
Me: Oh, no. My deepest condolences. (I'm always bad at saying much in situations like this, but)
B: My gosh! So does this mean A's family also caught it??!? (Corona)
Manager: She died in a car accident.
Also how unfortunate. Due to the lockdown, a ton of the people use the roads as a racing track around here...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
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
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.
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?8
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
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
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
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
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
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
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
On Facebook open day:
Graduate dev lady telling a story about how much responsibility they are given and how she broke the password reset button for hours when her task was to instruct old users with weak passwords to update them...
//my first post, so not sure if it's appropriate, but surely did this come as a shock7
Between android studio and Unity, which one si better to make a adventure text game? Why? (i'm learning, dont kill me please)8
So this is a story all about how:
I went from my brother being asked to clone the disk of old laptop to a new one. My m.2 ssd being held in with duct tape because of it and me having to run a tar command that took over 5 hours to complete.
So my bro got asked by a friends mom to help her with "PC Problems". In short the old laptop was barely useable and they ordered a new one on the reccomendations of my brother. Turns out the laptop he recomended shoud have had a 1tb hdd in it. Instead it had a 256gb m.2. Note: The old disk was 500GB.
So cloning wasnt possible. He then told me, that they also bought a regular sata ssd which was supposed to go in instead of the non present hdd. So I <-Want to emphasize on this! went to work.
Ordered a ssd in the right form factor.
Made a disk image of the old HDD.
Had to drill out the screw holding in my m.2 ssd as it was stuck.
Its now held in with a piece of kepton tape.
Wrote old disk's image on new disk.
It doesnt boot in new laptop.
Spend an evening trying to rebuild boot partitions.
Fuck it, lets install windows 10 (instead of 7) and copy all the shit over manually!
Lets buy office for 30$ on g2a as it would be a pain in the ass to explain the that its normally a subscription.
Previous rant happend.
Brought them the laptop yesterday telling them I did all the work.
I collect the ssd they ordered explaing i ordered the correct one and would take tis one for me.
Still had the 500GB img file of the disk and wanted to compress it in order to put some data back in place.
The tar command took over 5 hours to complete! I havent checked on it yet as I went to sleep.
Thank fuck for the ability to decompile java .class files. Tried to use tar and overwrote the source file :0
Trying to do an LFS build on a computer that keeps restarting. Need to mount the partitions and export variables all over again (ノ=Д=)ノ┻━┻1
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 😃
The end of today was extremely fun.
Imagine the surprise. I was importing a simple 8 GB big virtual machine into the Proxmox hypervizor.
First issue: It was in the Open Virtualization Format (.ova) for easy import into... most hypervizors... Not Proxmox, however.
But really, not that bad, there are ways around it. Create a blank virtual machine through the UI, scrap the disk you create, then extract the two disk QCOW2 files from the .ova file, which by itself is just a POSIX TAR archive. Then import them through the commandline.
...So I did just that. The larger of the two was about 8 GBs, the other just like... 50 MBs.
The larger imported fine. The smaller?
Color me surprised, when it created a FUCKING. 1. TB. LOGICAL. VOLUME.
That it then proceeded to try and fill full of zeros...
Oh yes, it was one of the fancy dynamic storage files that expand as space is needed.
Tomorrow, I'll have to try if I can export just the filesystem data into an individual, shrunken down, normal, plain, old disk. None of this fancy black magic shit.
...Also... I don't get why Proxmox doesn't support that... The filesystem was only a few megs big... Ugh.1
Hmm... Why does name look so familiar...
Ohhh mind flash... Looks at notepad file with my commonly used commands to confirm:
tar -xvzf ...3
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
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
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.6
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.
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.4
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/.zip2
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
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
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
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.)
I am running:
while true; do sshpass -f ../pass rsync -aP -e 'ssh -p12222 -o ServerAliveInterval=3 -o Se rverAliveCountMax=2' user@someServer:///usr/home/....\* . && break; done
Now guess why I have to do it so complicated...6