DEV Community

What do you Google EVERY. SINGLE. TIME. and never just memorize?

Ben Halpern on October 19, 2017

Collapse
 
val_baca profile image
Valentin Baca • Edited
  • Converting Array<->List in Java*. Been coding Java for 6+ years and still don't care to learn/memorize this.
  • Objective-C block syntax

  • bash test format and flags

  • vim macro create and execute

I noticed I could never remember these, so I always make aliases, shell functions, or short ~/bin/ scripts for them instead:

  • tar: xkcd.com/1168/

  • netstat flags (other than "-tulpn" which I have memorized as "tull-pin" like "Tolkien")

  • ssh tunnel syntax

Edit: *in one-line.
Array to list:

String[] array = ...;
List<String> immutableList = Arrays.asList(array);
List<String> mutableList = new ArrayList<String>(Arrays.asList(array));

List to array:

List<String> list = ...;
String[] array = list.toArray(new String[list.size()]);

Clear as mud...

Collapse
 
ibibgor profile image
Oscar

Helpful protip. I learned yesterday, that list.toArray(new String[0]) is faster than the version with the explicit size given.

Collapse
 
lynnetye profile image
Lynne Tye

I was about to write the same thing. How to vertically align elements... without using flex 😂

Collapse
 
sarah_chima profile image
Sarah Chima

Regex. While I understand how it works and how it can be used, it's difficult for me to memorize the right regex that should be used at every point. So I just google whenever I want to make use of it. :)

Collapse
 
ben profile image
Ben Halpern

Oh yeah that's a big one

Collapse
 
inozex profile image
Tiago Marques

I was just like that... but then I've found regex101.com/ and now, I'm almost proficiente writing regex!

Collapse
 
arakawadotca profile image
gustavo

regex101 is the single best resource I've ever found for regex.

Collapse
 
miffpengi profile image
Miff

It's funny in my case. I know enough regex to get by, but I generally need to google to find out how to actually apply it.

Do I need RegExp.prototype.test or String.prototype.match in JS? What are the order of parameters in preg_match in PHP? What are the little parentheses things called in .NET, captures or groups?

Collapse
 
redgreenrepeat profile image
Andrew

I had the same problem, until I found Rubular:

rubular.com/

Bonus tip: making a permalink will also save all the test cases used. Makes for an excellent inline comment!

Collapse
 
rogerpaviani profile image
Roger Paviani

Same here...
BTW, I knew someone must've been written about regular expressions when I read the title.. 😂

Collapse
 
kwabenberko profile image
Kwabena Bio Berko

Me too!
Hahaaahaa

Collapse
 
georgeoffley profile image
George Offley

I always have to Google regex. Or copied old code.

Collapse
 
jeansberg profile image
Jens Genberg

I can never remember how it works either. I found this to be helpful, though! regexr.com/

Collapse
 
reyabreu profile image
Reynaldo Jose Abreu • Edited

Same here. I can only remember $,,*,+ and /s /w. I always end up up googling an example and going from there.

Collapse
 
ben profile image
Ben Halpern

For me it's "manually start postgresql"

Every once in a while my postgres server isn't running and I know to punch that into my browser and land on this Stack Overflow question, where I proceed to copy this command into my terminal:

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

It happens infrequently enough that I never bother to alias it or remember how to type it out. I just remember what to Google.

Collapse
 
galdin profile image
Galdin Raphael

I have postgres installed via homebrew. So I use brew info postgres to copy the start command :)

Collapse
 
lepinekong profile image
lepinekong

So did I then I realize how many precious minutes of my life I'm losing so I decided to buy a domain for 75 cents mycodesnippets.space :) I write things down little by little as soon as I need it the first time or I risk to never do it by lazyness !

Collapse
 
svemaraju profile image
Srikanth

I was gonna say this. Have bookmarked the stackoverflow post on this. :D

Collapse
 
kaustav1996 profile image
Kaustav Banerjee

cant you just sudo service postgresql start ? :P

Collapse
 
shelbyspees profile image
shelby spees (she/her)

On Linux, yes. On OSX, no unfortunately.

Collapse
 
samxeshun profile image
Kwaku Eshun

Oh yes, I even googled and used this today because my service keeps stopping.

Collapse
 
aminarria profile image
Amin Arria

How to make a tar file...

Collapse
 
damian profile image
damian

at least extracting is easy (say it in a german accent) tar -xzf "xtract ze files"

Collapse
 
cdw9 profile image
Chrissy Wainwright

and -czf == 'compress ze files'

Collapse
 
aminspeaks profile image
Amin Mohamed Ajani

well what works for me is tar -xzvf "xtract ze vucking files"
No kidding that's how remember it

Collapse
 
aminarria profile image
Amin Arria

That's a great way! Jajajaaj

But it's important to note that tar is smart enough to detect the format so I prefer the general tar -vxf

Collapse
 
loilo profile image
Florian Reuschel

Even though as a German with decent English pronunciation this is a little bit insulting, I'll probably never forget this ever again. Thanks! 🙈

Collapse
 
dean profile image
dean

Thank you so much.

Collapse
 
jgauffin profile image
Jonas Gauffin • Edited

Isn't that for zipped tar files? -xzf = extract zipped (tar) file.

Collapse
 
tbodt profile image
tbodt • Edited

xkcd tar

Collapse
 
baamenabar profile image
B. Agustín Amenábar Larraín

I threw this one at a dev I used to work with. He answered instantly, he could have disarmed 2 bombs with that speed.

Instant respect gained

Collapse
 
sanjay555 profile image
Sanjayshr • Edited

I figured out how to remember it. To create tar, use c option and for extracting replace c with x ==> $tar will remain same for both Lol :) . tar -cvf filename.tar file/dir_path && tar -xvf filename.tar.

Collapse
 
brandonhowkins02 profile image
brandonhowkins02 • Edited

Hey, I also want to make a tar file for my website name:Lenny face. Let me know if the given suggestions works for you!

Collapse
 
jacoby profile image
Dave Jacoby

sed and awk and how to use them.

Collapse
 
ttiger profile image
Tony
  • Creating SSH Keys
Collapse
 
kyslik profile image
Martin Kiesel

I just ssh-k ↑ in zsh and just list all previous key generation commands or if I am not sure what I am looking for I use fzf

# fh - repeat history
fh() {
  print -z $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//')
}
Collapse
 
kunde21 profile image
Chad Kunde

I was helping someone with this earlier this year. Ended up creating a helper for it:

gist.github.com/Kunde21/3633e1e9ef...

Collapse
 
math2001 profile image
Mathieu PATUREL

Suprised tldr didn't got mentioned.

It's a pretty neat tool to do this kind of things...

Collapse
 
imthedeveloper profile image
ImTheDeveloper

Best link I've seen all week. Heroic!!!!!

Collapse
 
scottfred profile image
@ScottFred

That's awesome! thanks

Collapse
 
aidanharding profile image
Aidan Harding

Javascript array methods. Is this one in-place, or returning a new array? I don't know, but MDN does!

Collapse
 
andy profile image
Andy Zhao (he/him)

And centering things. Completely clueless every time.

Collapse
 
redgreenrepeat profile image
Andrew

here's a handy multiple choice questionnaire!

howtocenterincss.com/

Thread Thread
 
theminshew profile image
Michael Minshew

holy crap, whoever made this site needs a medal. Great recommendation!!!

Collapse
 
z0al profile image
z0al

How to extract tar.gz file in Linux command line!

Collapse
 
dean profile image
dean • Edited

Saw a comment from above and it changed my life.

tar -xzf filename xzf = "Xtract Ze Files!" (german accent)

Collapse
 
erwandavid profile image
ErwanDavid

Excellent, noté that you may get ride of the dash.

Collapse
 
galdin profile image
Galdin Raphael • Edited

tar -xf filename

Read as tar eXtract File filename.
Saw this on an SO answer and never had to google it ever again :)

Collapse
 
z0al profile image
z0al

Wow, I never thought of it.

Thanks :)

Collapse
 
hmemcpy profile image
Igal Tabachnik

How to delete a remote branch in git.

Collapse
 
itsasine profile image
ItsASine (Kayla)

Cherry picking commits in git, because I can never remember if it's cherrypick or cherry-pick

A more efficient way would be to just do it and correct if it errors, or alias it to git cherry or something

Also, how to exit vim, and how to insert in vim, and basically how on Earth did I end up in vim omg get me out

Collapse
 
eljayadobe profile image
Eljay-Adobe

I've been using Vim now for about 24 years. Primarily because I don't know how to quit.

Collapse
 
binaryforgeltd profile image
Bart Karalus

I would be responsible for 95% of hits coming from google search into the Tutorialpoint's html5 minimal template. Now I could easily type it in every time I set up a new page, but it is now a matter of extreme laziness I think.

Collapse
 
terceranexus6 profile image
Paula

This is stupid but g++ compiling filename and output order in the terminal. I've been doing it for four years now and still failing to remember.

Collapse
 
codeprototype profile image
Kevin Le

regex

Collapse
 
schlump_fuffzn profile image
Stefan Hecker

The same with me!! But I found VerbalExpressions (github.com/VerbalExpressions) to have solved it for me.

Collapse
 
codeprototype profile image
Kevin Le

That is very good to know about.

Collapse
 
ferocit profile image
Ferocit

I usually just go to regexr.com and trial-and-error the syntax until it matches what I want.

Collapse
 
ryanhaber profile image
Ryan Haber

Regex kills me sometimes.

Collapse
 
_bigblind profile image
Frederik 👨‍💻➡️🌐 Creemers

How to find out which process is listening on a certain point on my mac. I'm often switching between projects, and have a server from another project running on a port that I now need for another server.

And it looks like Heroku's CLI doesn't always stop all processes correctly when you stop it using ctrl+c

Collapse
 
palle profile image
Palle • Edited

You could add a function to your .bashrc to make this easier:

listening() {
    lsof -n -iTCP:$1 | grep LISTEN
}

Then (after restarting your terminal or typing source ~/.bashrc) type listening 8080 to find out what process is blocking that port.

Collapse
 
l_giraudel profile image
Loïc Giraudel

ln -s [source] [destination] or ln -s [destination] [source] ?
find . -name [...] -exec grep '...' {} \;

And of course sed, awk and more generally shell syntax (if, loops, switch, etc).

Collapse
 
curusarn profile image
Šimon Let

I got a good way to remember argument order for ln:
Destination is optional so it must go second.
By default ln creates a link with the name of the source in the current directory.

Collapse
 
jsn1nj4 profile image
Elliot Derhay

Oh yeah, linking. Forgot about that one (obviously, since I need to Google it every time lol).

Collapse
 
andy profile image
Andy Zhao (he/him)

How to properly write a Rails migration file.

Add a column? Huh? What???

Collapse
 
ben profile image
Ben Halpern

Oh yeah. I always copy and paste from old files.

Collapse
 
ukazap profile image
Ukaza Perdana • Edited

IIRC:

rails g migration AddStuffToTableName new_column1:integer new_column2:text #etc. etc.
Collapse
 
techiesourav profile image
Sourav Ghosh

How to exit vim.

Collapse
 
shroudedmoon profile image
Michael Whitis

Many moons ago, at one of my first jobs, I got myself in trouble with this. I was editing something in prod without knowing how to save or exit. I was a windows nt guy mostly. So, like one does, I hard-rebooted the server instead of asking for help... After the dust cleared, my boss made me sit at a keyboard for over an hour launching vim and learning how to at least save and exit. :) I have :wq, :q,:q! burned into my muscle memory to this day...

Collapse
 
shelbyspees profile image
shelby spees (she/her)

Oh god why did they have the new guy making changes in prod you poor soul

Collapse
 
imthedeveloper profile image
ImTheDeveloper

Everything git related

Collapse
 
harry_wood profile image
Harry Wood

Yeah. For some reason I really find some git procedures harder to memorise than others. It's ludicrous the number of times I've googled "git unadd a file" and "git reset branch to remote"

Collapse
 
georgeoffley profile image
George Offley

How to spell maintenance.

Collapse
 
scheidig profile image
Albrecht Scheidig

That's unneccessarrelly, but true.

Collapse
 
jimschubert profile image
Jim Schubert

I don't have to Google the spelling, but I'd say 99% of the time I type "valud". I say it correctly as "val-id" and only mistype because of the QWERTY keyboard layout. This is the only word that I consistently type incorrectly. It's not a speed thing (like "teh"), because it happens when typing slowly as well. I've been typing for a really long time and I'm beginning to think my brain just thinks this is a funny prank.

Collapse
 
atyborska93 profile image
Angelika Cathor

This! Plus a few other words: convenient, conscience, accommodate. I'm not a native speaker ;).

Collapse
 
robingoupil profile image
Robin Goupil

As a non native english speaker:

slice()
Enter fullscreen mode Exit fullscreen mode

vs

splice()
Enter fullscreen mode Exit fullscreen mode
Collapse
 
cannikin profile image
Rob Cameron • Edited

Find a file in Linux. I know it involves "find" and "name" but I have to look up the exact syntax each time. (For reference, the sledgehammer version is find . -name testfile.txt from the root of the drive.)

Collapse
 
tterb profile image
Brett Stevenson

Usually, anything that is outside of my basic Git workflow.

Collapse
 
gilbertoalexsantos profile image
Gilberto Alexandre dos Santos

PHP array_push and array_key_exists parameters order.

Collapse
 
erebos-manannan profile image
Erebos Manannán

this alone should tell you you need to use another language ;)

Collapse
 
daanwilmer profile image
Daan Wilmer

Argument orders in all array functions in PHP for me. That's just horrible. VSCode gives hints though, so that helps. I still have to look up the exact names of functions regularly, though.

Collapse
 
linevych profile image
Anton Linevych • Edited

How to type this: ¯\_(ツ)_/¯

Collapse
 
ben profile image
Ben Halpern

Ha! Me too. I know to go straight to textfac.es

Collapse
 
denmch profile image
Den McHenry

The best thing they ever added to Slack was the /shrug command.

Collapse
 
alejandrofdiaz profile image
Alejandro

text-overflow: ellipsis

Collapse
 
aswathm78 profile image
Aswath KNM

unzip a tar file especially with that different extensions .xz , .bz etc..

vim commands to cut,copy and paste

regex in python and other python builtins . Can't memorize the whole docs right ?

Collapse
 
speedstream profile image
Aaron Santos

vim...

Collapse
 
kspeakman profile image
Kasey Speakman

Updating the list of git remote branches. It doesn't refresh when you sync so it will continue to list remote branches that don't even exist anymore until you manually run the command below. (Which I had to google again to put in this comment.)

git remote update origin --prune

Collapse
 
shelbyspees profile image
shelby spees (she/her)

Git, brew, and bundler all have some kind of prune flag so it's starting to stick for me.

Collapse
 
havryliuk profile image
Oleksandr

easy to remember because it is like dried fruit!

Collapse
 
javierg profile image
Javier Guerra • Edited

How to flush DNS cache on OSX

Collapse
 
onedurr profile image
Matt Durr

I literally added an alias to my ZSH config for this one

alias flushdns='sudo killall -HUP mDNSResponder'

Collapse
 
dance2die profile image
Sung M. Kim • Edited
  1. I always Google how to create a webpack configuration file.
    • You need to be a 🚀👨‍🔬 to configure it from memory.
  2. Adding a style tag for CSS files 😝.
Collapse
 
rubberduck profile image
Christopher McClellan

Setting firewall rules with iptables.

Collapse
 
syntacticsalt profile image
Syntactic Sugar

Ever heard of ufw?

Collapse
 
jess profile image
Jess Lee

RAILS MIGRATION

Collapse
 
sea_salt_toffee_coffee profile image
Jonathan Solis • Edited

How to git checkout a remote branch. I’m gonna try it it without googling

git remote add repoFork <url>
git fetch repoFork
git checkout —track repoFork/branch

I hope that’s right I just looked it up again yesterday

Collapse
 
juankortiz profile image
juankOrtiz

My first choice was "Regex", but it seems you guys beat me to that choice.

So, without a shame I can say that everytime I search "how to insert an element at the end of another with jquery". Frigging append(), man.

Collapse
 
shelbyspees profile image
shelby spees (she/her) • Edited

What gets me is when I'm switching between languages. Java uses add, Python has append, and Ruby uses push. But then some gem will use add.

This is why I shamelessly use IDEs while everyone I work with uses vim.

Collapse
 
maruru profile image
Marco Alka

flexbox and grid with all their different attributes and values :/

Collapse
 
davidgagne profile image
David Vincent Gagne

MySQL and PHP date formatting. Every time. What’s weekday again?

Collapse
 
hudsonburgess7 profile image
Hudson Burgess

"How to do x in CSS" where x is anything

Collapse
 
samjarman profile image
Sam Jarman 👨🏼‍💻

Its vs It's

Collapse
 
jeroen1205 profile image
Jeroen Jacobs

How to use "find ... -exec ..." correctly.

Collapse
 
sake_92 profile image
Sakib Hadžiavdić

How to "unignore" files with git... Here is a nice and short way.

Collapse
 
niorad profile image
Antonio Radovcic

The order of arguments for map/reduce/filter is JS. Was it (index, item) or (acc, index, item) or (item, index)....

Collapse
 
developerdylan profile image
Dylan

Everything! 🤪
But seriously, I think I do a lot of Googling (and looking at Documentation - same thing?) for things which are new or I'm uncertain of or if I'm working with an SDK like Firebase.
Is that the way I'm supposed to do it? 😂 I'd rather get things right first time rather than get it wrong and THEN Google. Sounds like the other things people Google are a lot more advanced. 😳

Collapse
 
wintermute21 profile image
John Best

SQL syntax #ashamed.

Collapse
 
r0f1 profile image
Florian Rohrer

How to use grep and find.
Also when I write data = {} in Python, is this a set or a dict?

Collapse
 
z0al profile image
z0al

This can't be a Set

data = {}

It's always a dictionary!
If you want an empty Set use:

data = set()

P.S. it's handy to use the official Python REPL and type type(youvariable) ;)

Collapse
 
ryanlabouve profile image
Ryan LaBouve

When I accidentally commit on master instead of a branch and I need to reset my master to match origin:

git reset --hard origin/master

Collapse
 
jmikkola profile image
Jeremy Mikkola

The argument order to the various PHP array functions

Collapse
 
thehanna profile image
Brian Hanna

The arguments for JavaScript's array.slice method. Every. Damn. Time.

Collapse
 
yechielk profile image
Yechiel Kalmenson
  • CSS attributes
  • Rails generators
  • ActiveRecord queries
  • Syntax for any function I don't use on a weekly basis
Collapse
 
maxwell_dev profile image
Max Antonucci

Vim commands.

Just...I can't even.

Collapse
 
redgreenrepeat profile image
Andrew

ever play:

vim-adventures.com/

?

bonus tip: a lot of unix commands support vim keys by default. i.e. less and man

Collapse
 
purcola profile image
Pablo Urcola

how to undo $whatever in git

Collapse
 
antislice profile image
GA

Yesterday was the first time I deleted a tag or branch (it was a tag) from a remote git repo without googling it first. Pretty proud of that.

Collapse
 
cadellsinghh_25 profile image
Cadell

ruby hashes lol

Collapse
 
saidarab profile image
Said Arab

Selinux allow httpd

Collapse
 
symore profile image
RobK

"github ssh-keygen example" :D

Collapse
 
jsn1nj4 profile image
Elliot Derhay

Array.prototype.map() callback param order.

Collapse
 
nickcampbell18 profile image
Nick Campbell

alias_method in Rails. Confusingly, the arguments are the opposite order to Kernel#alias. And the examples for both are terrible!

Collapse
 
arschles profile image
Aaron Schlesinger

How to use ln. ln $LINK_NAME $TARGET or ln $TARGET $LINK_NAME? I can never remember

Collapse
 
vgrovestine profile image
Vincent Grovestine

In-place string substitution; usually performed on multi-gigabyte database dumps:

sed -i 's/STRING_TO_REPLACE/REPLACEMENT_STRING/g' reallybigdb.sql

Collapse
 
tottiq profile image
Jorge Quijano

Exit vim

Collapse
 
jclem profile image
Jonathan Clem

The order of arguments to the reduce callback or block in any language.

Collapse
 
arakawadotca profile image
gustavo • Edited

How to remove password expiration in Oracle. It always happens at the worst possible time, but not often enough to have it memorized.

Collapse
 
ryanhaber profile image
Ryan Haber

Any switches I don't use often with linux commands.

Collapse
 
denmch profile image
Den McHenry

IIS error messages on the yellow screen of death (YSOD)

Collapse
 
jonathanvoelkle profile image
Jonathan Völkle

git commands

Collapse
 
tarzan212 profile image
tarzan212

How to set up a docker container. Got to look this up every single time..

Collapse
 
mildlyskilled profile image
Nana

Grep recursively for a pattern

Collapse
 
mhorn30 profile image
M.H.

Converting UNIX timestamp to Excel date-time format with the correct timezone.

Collapse
 
tylerbodway profile image
Tyler Bodway

Ruby .strftime() formats

Collapse
 
jake profile image
Jake Casto
  • Converting StdClass <-> Array in PHP -> I always forget 'True' as the second arg of json_decode()
  • Git Commands
  • Format for PHP date()
  • Casting to a class in Python3
Collapse
 
liverlive profile image
liverlive

Git hard pull !!

Collapse
 
quadhay profile image
Andrew Marin

parameters for php date()

Collapse
 
erwandavid profile image
ErwanDavid • Edited

Tricky regex... empty a solr core... Python join array to string... Ssh tunnel local and remote port

Collapse
 
luispa profile image
LuisPa

I recommend devdocs.io

Offline docs! ⚡️

Collapse
 
scheidig profile image
Albrecht Scheidig

Starting / stopping services in linux. And it changes far to often.

Collapse
 
shiling profile image
Shi Ling

How to kill a process running on some port.

Collapse
 
elarcis profile image
Elarcis

Wether I'm looking for Javascript's call() or apply().

Collapse
 
idanarye profile image
Idan Arye

How to use HTTP client. I'm a polyglot programmer and I just can't memorize this in any of the languages I know...

Collapse
 
felipperegazio profile image
Felippe Regazio

man, i have a good one for that. put a before with height 100%, display inline block and vertical align middle on your holder div. vertical align middle and display inline block to the elements.

Collapse
 
rysilva profile image
Ryan Silva

Javascript: substr vs substring. One takes start,end; other takes start,length. Would have been simpler if they only included one :(

Collapse
 
kamalzairig profile image
Kamal Zairig

How to ignore chmod changes to files in Git :)

Collapse
 
rafaacioly profile image
Rafael Acioly

How to stop tracking a file on git

Collapse
 
avikaminetzky profile image
Avi Kaminetzky

"delete solr data", to clear data in solr core.

Collapse
 
maytrovato profile image
Adrián González

Python loop with condition

Collapse
 
luispa profile image
LuisPa

Mixins React example.

Collapse
 
speedstream profile image
Aaron Santos

Delete in SQL Server...

Collapse
 
nancyd profile image
Nancy Deschenes

The order of the parameters in the function passed to $.each().

Collapse
 
jsn1nj4 profile image
Elliot Derhay

How to list remote git branches.

Collapse
 
a_mujthaba profile image
Ali Mujthaba • Edited

how to git ignore and how to discard current changes

Collapse
 
david_j_eddy profile image
David J Eddy

docker log truncation

Collapse
 
dnstevenson profile image
Dave Stevenson

Glad I’m not alone with this one. Been doing rails since pre-1.0 and still google “active record migration” every time.

Collapse
 
dazzknowles profile image
Dazz Knowles

Updates with joins syntax in SQL. Always get the SQL Server and MySQL versions muddled.

Collapse
 
lukasmeine profile image
Lucas Meine

This command: su -s /bin/bash apache
On this link: linuxquestions.org/questions/linux...

Collapse
 
twigman08 profile image
Chad Smith

Current UTC time. I will never remember what my time is in UTC time.

Collapse
 
sammyisa profile image
Sammy Israwi

Switch statement format. I always forget where the {} and the () go.

And of course Regex - because memorizing Regex notation and rules is a waste of energy

Collapse
 
dkassen profile image
Daniel Kassen

Proper Regex syntax in the command line. "Wait I have to escape that?!"

Collapse
 
guid75 profile image
Guid75

For a long time it was the openssl sub commands, for instance to dump the text version of a certificate. :-)

Collapse
 
walkhard13 profile image
Phillip Smith

Iterating over keys in an object (#javascript)

Collapse
 
kunaldargan profile image
Kunal Dargan

How to install opencv using pip !

Collapse
 
imperatormk profile image
imperatormk

How to redirect to URL with JS.

Collapse
 
allan2012 profile image
Allan Kibet

How to set the php errors on

Collapse
 
antonrich profile image
Anton

How to compile from source code on linux.

Collapse
 
agazaboklicka profile image
Aga Zaboklicka

I still can comprehend why, but:

rm -rf mydir

Collapse
 
d_b profile image
Darran Boyd

How to grep a text file without comments (#) and blank lines!

Collapse
 
hinzster profile image
flinkflonk

How to rescan the scsi bus. Probably not a dev thing to do, but certainly a devops thing.

Collapse
 
rohit profile image
Rohit Awate

Which of Java's string manipulation classes, StringBuffer or StringBuilder is the thread-safe one. I'm gonna have to Google that again.

Buffer! That's the one.

Collapse
 
vitalcog profile image
Chad Windham

Most things sadly...

Collapse
 
jainroe profile image
Shilpa Jain

How to align div to the center. CSS. Every. Single.Time.

Collapse
 
bgallagh3r profile image
Brian Gallagher

Date formats. SQL/JS/PHP all format dates differently and each one has different placeholders. I can never remember them. Ever.

Collapse
 
lmcrashy profile image
Crashy

How to use fstream. 14 years doing c++ and still cannot open a file without looking at doc.

Collapse
 
erwandavid profile image
ErwanDavid

Regexp, python join array to string, empty solr core, ssh tunnel local/remote port...

Collapse
 
gameoverwill profile image
Wilfredo Pérez

Git commands.

Collapse
 
ch_asch profile image
No dab no life

Python's list comprehensions

Collapse
 
tcratius profile image
Me, myself, and Irenne • Edited

Great question, just need to firefox it. Definitely, will reflect on the question.

Collapse
 
dwipr profile image
Dwi purnomo

SQL query

Collapse
 
skeptichacker profile image
Anand B Pillai
  1. How to disable IPV6 on Linux
  2. Almost anything got to do with OpenSSL!
  3. How to cleanup docker ghost and dangling images
Collapse
 
ore profile image
Oreoluwa Ogundipe

Bootstrap default mobile navigations 😭

Collapse
 
salmanjawed98 profile image
salmanjawed98

Last character of string :p

Collapse
 
leandrobighetti profile image
Leandro Bighetti

mietschuldenfreiheitsbescheinigung

Collapse
 
rapidnerd profile image
George

Java decompilers/deobfuscator even though I have my own written

Collapse
 
danielw profile image
Daniel Waller (he/him)

Regexes, adding permissions in Android Manifest, how to update npm

Collapse
 
kosset profile image
Kostas Setzas

Reset and revert on a git commit...

Collapse
 
yhippa profile image
Richard Yhip

All the good ones are taken so I'll add one I haven't found: Markdown syntax.

Collapse
 
ghost profile image
Ghost

How to save and quit in vim

Collapse
 
programazing profile image
Christopher C. Johnson

Some git commands and a lot of CSS stuff.

Collapse
 
ugoalbarello profile image
Ugo Albarello

Fixing "orphaned" users in SQL Server

Collapse
 
benhemphill profile image
Ben Hemphill

I always look up dd. Not because I don't remember the syntax, but because I am super respectful of its raw power to destroy my day if used wrong.

Collapse
 
residuum profile image
Thomas Mayer • Edited

How to temporarily disable restraints in SQL and re-enable them.

OK, not really Googleing it, I have bookmarked the answer

Collapse
 
paulmccarthy79 profile image
Paul McCarthy

IIS HTTP_HOST redirects, most regex, git beyond the basics.

Collapse
 
adnanrahic profile image
Adnan Rahić

Git revert. No chance to ever remember that.

Collapse
 
smandekis profile image
Spyros Mandekis

Anything related to the nc, telnet, iptables tools

Collapse
 
in_harmonia profile image
Bustanil Arifin

Almost every javascript library API...

Collapse
 
phantomis profile image
Rodrigo Amaro

When "gitignore is not ignoring" some file, there is always a line that I need to check to delete all the files from cache

Collapse
 
carlflor profile image
Carl Flor

How to revert my local branch to be exactly like its remote counterpart.


git reset --hard HEAD

Collapse
 
inozex profile image
Tiago Marques

what are the order of arguments in short-syntax CSS like padding, margin...

Collapse
 
smandekis profile image
Spyros Mandekis

mnemonic: it's clockwise starting from the top

Collapse
 
indiamos profile image
India Amos

Or, the more fun mnemonic I learned years ago: TRouBLe!

Thread Thread
 
inozex profile image
Tiago Marques

Yeah, I was thinking about this discussion another day, and I remembered this mnemonic... But damn, when I need to use, I Forget about it 😅
But thanks to both of you guys!

Collapse
 
isaacleimgruber profile image
IsaacLeimgruber

Change column values pandas

Collapse
 
eddiesigner profile image
Eduardo Gómez Vásquez

How to delete a branch 😳

Collapse
 
codemouse92 profile image
Jason C. McDonald

Regex. Almost anything regex.

Collapse
 
mellen profile image
Matt Ellen-Tsivintzeli

What the trim function is called in python

Collapse
 
jsalvador profile image
Juanjo Salvador

Some CSS styles, mostly.

Collapse
 
khophi profile image
KhoPhi • Edited

Installing NodeJS and having npm install global packages outside default folder.

Collapse
 
jwalzak profile image
Jason Walzak

how to use make on the command line.

i have a problem with my wifi and regularly have to reinstall the drivers I forget every time and I don't have wifi, so it's a pain in the butt.

Collapse
 
luispa profile image
LuisPa

How to exit vim.

Collapse
 
doodlingdev profile image
Ajina Slater

simple_form methods. I'm always at the readme, never bookmarked.

And I still think "I really need to bookmark this" every time.

Collapse
 
samsonasik profile image
Abdul Malik Ikhsan

substr or substring start from 0 or 1 in database and programming language specific

Collapse
 
maxwell_dev profile image
Max Antonucci

How to cut and paste lines in VIM. I do this all the time when rebasing but can never remember the commands. I've just bookmarked the top result from each search for quick reference at this point.

Collapse
 
jj profile image
Juan Julián Merelo Guervós

R commands. ggplot2 options. Every single little thing in that language. I stopped learning at the <- for assignment.

Collapse
 
shackra profile image
Jorge Araya

Memory is not needed when you have your technical notebook for annotations :) (I have mine using org-mode)

Collapse
 
trishasalas profile image
Trisha Salas
Collapse
 
bardware profile image
Bernhard Döbler

With how many 'm's do I write git amend?

Collapse
 
georgeoffley profile image
George Offley

The word "lieutenant"

And print statements for various languages.

Collapse
 
einenlum profile image
Yann Rabiller

Writing an Apache/Nginx configuration file.

Collapse
 
theodesp profile image
Theofanis Despoudis • Edited

How to use grep, sed or make

Collapse
 
superkarolis profile image
Karolis Ramanauskas

How to restart nginx 🤷‍♂️

Collapse
 
gab profile image
Gabriel Magalhães dos Santos

How to vertically center a div for all browsers

Collapse
 
pranay_rauthu profile image
pranay rauthu

Slice vs splice in JavaScript

Collapse
 
radioakt profile image
James Audry Spencer

*

Collapse
 
databasesponge profile image
MetaDave 🇪🇺

Named captures in Ruby regex

Collapse
 
gawetaner profile image
Gawetaner

Objective-C block Syntax, i can‘t memorize it and i don‘t know why.

Collapse
 
kaisershahid profile image
kaiser shahid

all sorts of PHP functions =/

Collapse
 
ihosely profile image
ihosely

.gitignore is not working

Collapse
 
adnanisajbeg profile image
adnanisajbeg

How to close vim...

Collapse
 
kels_bells93 profile image
Anthony Maldarelli • Edited

slice vs splice and css gradient syntax

Collapse
 
guille profile image
Guillermo Liss

CSS media queries !

Collapse
 
hslzr profile image
Salazar

Everything related to timestamps and date formatting.

Collapse
 
shan61916 profile image
Shubham Sharma • Edited

Just to be sure, I google git commands quite often. Most probably because for each command my mind has given it a custom-name. So it kind of mixes up. LOL

Collapse
 
0x3d profile image
0x3d
  • Timestamp converter (instead of bookmarking one or using some CLI tool/$ScriptingLanguage)
  • How to set Duckduckgo as default search engine (only to annoy BigBrother :))
Collapse
 
riekus profile image
Riekus van Montfort

Regex, every vim command ever

Collapse
 
smandekis profile image
Spyros Mandekis

regex101.com is a lifesaver!

Collapse
 
a2ashraf profile image
Ahsan Ashraf • Edited

I recommend thefuck. brew install thefuck You will thank me for this message, I swear you will.

github.com/nvbn/thefuck/blob/maste...

Collapse
 
gfoxavila profile image
Andres Avila Wille

Inner joins. For some reason I always get close, but never get them completely right without some good ol' google help.

Collapse
 
ctrleffive profile image
Chandu J S

carousel in bootstrap 😑