Skip to content

Instantly share code, notes, and snippets.

View Remiii's full-sized avatar
👨‍💻
remibarbe.fr

Rémi Barbe Remiii

👨‍💻
remibarbe.fr
View GitHub Profile
@Remiii
Remiii / README.md
Last active December 29, 2015 15:19
Google Cloud: Generating a refresh token

GENERATING A REFRESH TOKEN

STEP 1

  • Go to http://cloud.google.com/console and log-in
    • Activate youtube-data API (APIs & auth -> APIs)
    • Register a new app (APIs & auth -> registered apps)
  • Name it, select native
@Remiii
Remiii / README.md
Last active December 31, 2015 17:29
SQS-QueueCreator

SQS-QueueCreator

Install PIP "python-pip"

$ apt-get install python-pip

Install "boto" with PIP

@Remiii
Remiii / README.md
Last active December 31, 2015 20:19
Hide Apache information
@Remiii
Remiii / remibarbewebsite
Created December 19, 2013 14:11
Remiii ASCII Logos
iiii iiii iiii
i::::i i::::i i::::i
iiii iiii iiii
rrrrr rrrrrrrrr eeeeeeeeeeee mmmmmmm mmmmmmm iiiiiii iiiiiii iiiiiii
r::::rrr:::::::::r ee::::::::::::ee mm:::::::m m:::::::mm i:::::i i:::::i i:::::i
r:::::::::::::::::r e::::::eeeee:::::eem::::::::::mm::::::::::m i::::i i::::i i::::i
rr::::::rrrrr::::::re::::::e e:::::em::::::::::::::::::::::m i::::i i::::i i::::i
r:::::r r:::::re:::::::eeeee::::::em:::::mmm::::::mmm:::::m i::::i i::::i i::::i
r:::::r rrrrrrre:::::::::::::::::e m::::m m::::m m::::m i::::i i::::i i::::i
r:::::r e::::::eeeeeeeeeee m::::m m::::m m::::m i::::i i::::i i::::i
@Remiii
Remiii / merry-xmas.txt
Last active January 1, 2016 08:49
Merry Xmas
__ __ __ __
| \/ | ___ _ __ _ __ _ _ \ \/ /_ __ ___ __ _ ___
| |\/| |/ _ \ '__| '__| | | | \ /| '_ ` _ \ / _` / __|
| | | | __/ | | | | |_| | / \| | | | | | (_| \__ \
|_| |_|\___|_| |_| \__, | /_/\_\_| |_| |_|\__,_|___/
|___/
.\/.
>><><<
'/\'
@Remiii
Remiii / output-sample.csv
Last active January 2, 2016 05:09
remiii-script-emailsmurfer-sample
Alain Dupond alain.dupond@gmail.com
Roger Dupont roger.dupont@gmail.com
@Remiii
Remiii / README.md
Last active January 2, 2016 05:09
legal-template

Legal template in French

@Remiii
Remiii / finding.md
Created January 10, 2014 18:00
Finding... Finding all files containing a text string in linux...

Finding

$ grep -rnw 'directory' -e "pattern"

-r is recursive, -n is line number and -w stands match the whole word. Along with these, --exclude or --include parameter could be used for efficient searching. Something like below:

$ grep --include={*.c,*.h} -rnw 'directory' -e "pattern"

This will only search through the files which have .c or .h extensions. Similarly a sample use of --exclude:

@Remiii
Remiii / reset-DNS-cache.md
Created February 7, 2014 13:13
How to reset the DNS cache

How to reset the DNS cache

How to reset the DNS cache on OSX

$ sudo dscacheutil -flushcache