Details
-
SkillsC#, C++, Java, JS, TS
Joined devRant on 8/17/2017
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
-
curl cheat.sh — get an instant answer to any question on (almost) any programming language from the command line
tldr
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 wttr.in
or
curl wttr.in/Paris
(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:
curl cht.sh/python/copy+files
curl cht.sh/go/execute+external+program
curl cht.sh/js/async+file+read
or even
curl cht.sh/python/копировать+файл
curl cht.sh/ruby/Datei+löschen
curl cht.sh/lua/复制文件
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:
https://github.com/chubin/cheat.sh
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 -
Some dumb puns to cheer you up after reading/ranting about "part of your workflow you dislike"
#tower-of-pisa {
font-style: italic;
}
#titanic {
float: none;
}
.yomama {
width: 99999999px;
}
.ikea {
display: table;
}
#bigbang::before {
content: " "
}
.illuminati {
position: absolute;
visibility: hidden;
}
I'd rate these horrible puns a C++20 -
I just can’t imagine it.
( ._.) “Hey dude, I code. Do you?”
(.-. ) “Same”
( ._.) “Friends?”
(.-. ) “Friends”125 -
How you can make the perfect clickbait that will even bring highly intellectual software engineers to click on your things?
It is very easy you only have t... [read more]9 -
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠃⠙⠉⠙⠷⢻⣴⣤⡀ ⠀⠀⠀⠀⠀⠀⡀⠄⠀⠠⢄⡀⠀⠀⠀⠀⠈⠺⣻⣢ ⠀⠀⠀⠀⠀⡎⠀⢀⡄⠀⠀⠈⠆⠀⠀⠀⠀⠀⠘⠗⠆ ⠀⠀⠀⠀⢀⠇⠀⠀⠀⠀⠀⢀⠖⠉⠀⠀⠉⠑⢢ ⠀⢀⠤⠤⢌⡮⣐⠤⠤⡤⠔⢹⠀⠀⠀⠴⠀⠀⠀⡇ ⡜⡐⠈⠉⠗⣌⠀⢠⠊⢀⠄⠈⠢⣀⠀⠀⠀⣀⠜ ⢃⢇⠀⠀⠀⠒⡓⡪⣈⣀⣀⠀⠑⠠⠉⠉⠉ ⠈⢊⢖⡄⡀⠀⠀⠁⢉⣒⣑⠊⠛⠒⠤⡰⡀ ⠀⠀⠁⠓⠫⢥⢲⡀⡈⠙⢿⣷⣆⠀⠀⡁⡇ ⠀⠀⠀⠀⠀⠀⠈⠐⠋⠬⠎⠿⠿⠤⢐⠕⠁ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠈⠉
I turned myself into a rant Morty, I'm rant Rick!13 -
Does anyone else have this?
When you flash something onto your android phones and the boot process afterwards takes very long and you start to get veeeeeery nervous 😅28 -
Tester raises bug:
"Error when loading application in Opera 11.1"
Current Opera version - 48
No tester. Just. Fucking. No6 -
"Can you put my site as the first result on google?"
I can add SEO to your site, just give me your preferred keywords, a description, and let's make sure we follow white hat best practices etc.
"No call someone at google and ask how much to go to the top of the list"
So you want to pay for ads or..?
"No get a figure I can pay to get to first page"
"Or can you just edit the google"
... And so I never renewed that contract ever again, the end.12 -
Me wanting to board Plane,
Goes through security Check...
"Sorry sir Laptops are not allowed."
Me
"Why?"
Security
"It could be a modified bomb"
Me
"But this is a Tablet!"
Security
"No sir, it has a Keyboard and Trackpad attached to it, its also running Windows..."
Me
"Excuse me, but this is clearly a Tablet"
*Detatches Keyboard from Surface Book*
"See? Tablet."
Security,
"Sorry sir, but no. You cant board the plane with this, only Tablets and Smartphones"
Me
"WTF? you dont allow Laptops because they could be bombs but A FUCKING SMARTPHONE IS ALLOWED? AND TABLETS TOO?!"
Security
"Yes, because the Battery is not removable..."
Me
"But my Laptop Battery is also not Removable..."
Security
"I dont have anymore Time for an Argument"
Me
"So I can board the Plane?"
Security
"No, the Ticket will be refunded"
WHO THE FUCK CAME UP WITH THIS BULLSHIT? LIKE RLY? WHO!!
I MEAN WHAT THE FUCK IS ALLOWED?!30 -
Boss: “Our YouTube channel doesn’t look at all like our website.”
Me: “I’ve made it look as close to our branding as YouTube allows for with its limited editing controls.”
Boss: “This is unacceptable. I expected more from you.”
Me: “I cannot accept the blame for this. YouTube is setting the design parameters for all channels and I can only do so much.”
Boss: “You can call the YouTube, can’t you? Why didn’t you call them?”
Me: “.......and ask them....what?”
Boss: “You don’t ask! You tell! Our company has been around for 140 years. Our brand name carries that weight. They’ll change their design to what we need if you’re assertive enough.”
Me: “Ma’am, that’s just not how this works. That’s not how any of this works.”50 -
Started talking about Pi-Hole (still trying to install this fucker by the way) today with a collegue.
He had it installed and showed me around a little.
CW: Alright give me an example then I'll show you wildcard blocking.
Me: google.com 😅
CW: *enters and saves it. then tries to load anything related to google.com*
*no google.com domains load, all give a blocked error*
Me: Works great!
CW: Yup.
...
...
...
...
Me: Uhm so you aren't like surprised that I went with google.com as example and that I'd genuinely would block it?!
CW: No, why would I be?
Me: Well, most people consider me paranoid/crazy the second they find out I don't want to use google/google's services.
CW: well that's fucking retarded. why would anyone redicule you for not using something you don't want to use. You'll have your reasons.
Me: So if I'd say i do it for privacy reasons, you wouldn't find that redicilous?
CW: No, why would I? Not using google (and for that matter facebook etc) for privacy reasons is very logical really.
FUCKING. THANK. YOU.22 -
A: "You write code? Can you fix my computer?"
M: "No, that's not how it works, bud"
A: "Why? It's both computer stuff."
M: *points to the greasy tire shop* "Let's go get your car painted there*
A: "Hell no"
M: "Why? It's both car stuff."
😂4 -
Person: I want to learn to code neural networks and cool AI stuff.
Me: Look into Python or Lua.
Person: Those are too hard, I'm going to use HTML instead.
I got out of there as fast as I could. 😅11 -
One time a company I worked for tried to fuck me over and not pay me the referral fee that was promised for referring an employee. They hired the person I referred for a position that was advertised as having a referral fee paid after 6 months.
After the 6 months were up, I went in to HR to ask when I could expect to see the money, and they said “oh, you’re not eligible to receive the referral bonus because we hired so and so as a contractor (full-time) instead of an actual full-time employee.” And I was like... fuck that shit, they never mentioned that to me and I didn’t burn a referral lead so they could hire the person as a contractor and avoid paying me the advertised fee. I was absolutely livid and couldn’t believe it after I had been expecting this money for 6 months.
I felt cheated and none of my colleagues at the company could believe they’d stoop so low to not pay a highly-valued employee an advertised referral bonus. I had lots of battles with management over it, and eventually ended up with a portion of the promised fee, but not the whole thing.27 -
This guy at my last internship. A windows fanboy to the fucking max!
He was saying how he'd never use anything related to Linus Torvalds because he hated him for creating Linux.
Two seconds later I saw him initializing a new git repo.
I was standing there like:
*should I tell him?*
😅😆70 -
Today at work, still laugh thinking back to it!
We were on lunch break but the linux support engineers who are on the phones as well have to pick up calls anyways (very small team).
*engineer walks to the table, sits down: Ahhh rest, finally!*
*tringggggggggg*
*engineer pulls a face like 'oh for fucks sake' and walks back to his desk*
*puts headphones on and clicks the answer button just as it disappears*
"really!?! Alright lets finally eat now"
*sits for literally one second*
*tringgggggggggg*
*Engineer seems quite pissed off now. walks to his desk again, puts on headset, clicks the answer button JUST as the call stops again*
"Mother of god, fucking really?"
*stays as his desk for a minute or so, walks back, stays hovering above his chair for a little and finally sits down again*
"Finall......"
*TRINGGGGGGGGGGGG*
"MOTHERFUCKER. THESE GUYS TIME IT OR SOMETHING!?!?"
*walks back to his desk very frustrated this time*
*puts on headphones very quickly and presses the answer button*
*answer works but the call is literally dropped the second he starts it (it was a real client)*
"OH FOR FUCKS FUCKING FUCKING FUCKING SAKE FUUUUUUUUUUUUUUUUUUUUUUCK"
*walks back to table again and sits down. Takes sandwich and....*
*TRINGGGGGGGGGG MOTHERFUCKER*
"FUCKING COCKSUKING MOTHERFUCKING PIECES OF WHAT THE FUCKING FUCK EVER"
*gives a deadly look to another engineer: "I am NOT going to take it this time! En-fucking-joy."*
We laughed so hard xD15 -
"A picture is worth a thousand words"
No one knows the pain of that more than a front end dev trying to reduce load times of a web page.4 -
I automated the process of downloading songs from YouTube and transferring them to my phone.
This is how it works, very simple:
- I have a youtube playlist in which I add songs that I'd like to download
- When I run my python script, it parses my playlist and checks to see if I have added any new songs that aren't already downloaded
- Uses a library to download MP3 for all the songs I want to download
- Transfers all those MP3 files to a designated folder that is tracked by Google Music manager
- Google Music manager syncs those songs to my phone and downloads them for offline playback
That's it 😎 No need for YouTube Red
I'm going to run this script 24x7 on a Raspberry Pi, so everytime I add a new song to the playlist, script starts it's job without me running the script manually.13 -
It was between me and another guy.
I fucking won!
I GOT THE FUCKING JOB!!
I'll be a junior Linux Support Engineer in a week or so!
OMG OMG YAYAYAYAYAY97