Skip to content

Instantly share code, notes, and snippets.


julien Lengrand-Lambert jlengrand

Block or report user

Report or block jlengrand

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View service-worker.js
"use strict";
var precacheConfig = [
["/index.html", "6633bcbb6d392a7d68be37924b341845"],
["/static/js/main.f95e1c59.chunk.js", "559581975d6026fccabb204f217e44db"],
["/static/js/runtime~main.1b922744.js", "13a6cba6703084ad6f60a3db941db615"],
["/static/js/vendors~main.3ca81432.chunk.js", "86fba34edc08a61c670b6c7527e6b813"]
cacheName = "sw-precache-v3-sw-precache-webpack-plugin-" + (self.registration ? self.registration.scope : ""),
ignoreUrlParametersMatching = [/^utm_/],
addDirectoryIndex = function(e, n) {
jlengrand / spotiProxy
Created Apr 22, 2018
Activating / Deactivating Spotify proxy settings
View spotiProxy
SPOTIFY_PREFS="$HOME/Library/Application Support/Spotify/prefs"
PROXY_ON="network.proxy.mode=2" #HTTP Proxy
PROXY_OFF="network.proxy.mode=1" #No proxy
if [ ! -f "$SPOTIFY_PREFS" ]; then
echo "Spotify preference file not found. Exiting"
exit 1
View extract
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.tar.xz) tar xvJf $1 ;;
*.bz2) bunzip2 $1 ;;

Keybase proof

I hereby claim:

  • I am jlengrand on github.
  • I am jlengrand ( on keybase.
  • I have a public key ASBOPLSHLfuup2FQb9eaoKIljG0q1LIqAesn4cYTaeiJQwo

To claim this, I am signing this object:

jlengrand /
Created May 10, 2014
Get the latest octocat
from bs4 import BeautifulSoup
import urllib2
url = ""
content = urllib2.urlopen(url).read()
soup = BeautifulSoup(content)
print soup.find("img")["src"]
jlengrand / .bashrc
Last active Aug 29, 2015
.bashrc pour bilou
View .bashrc
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
source ~/.rvm/scripts/rvm
export PS1="\[\033[0;31m\][\u@\h:\w]$\[\033[0m\] "
#adding my own scripts
export PATH="$PATH:$HOME/bin"
jlengrand / .bash_aliases pour bilou
Last active Aug 29, 2015
.bash_aliases pour bilou
View .bash_aliases pour bilou
#putting my aliases here
alias cb="mv -ft ~/.local/share/Trash/files --backup=t"
alias trouve="find ./ -name .svn -prune -o -type f -print | xargs grep -Hi"
alias updg="sudo apt-get update; sudo apt-get upgrade"
alias pc_clean="sudo apt-get clean; sudo apt-get autoremove"
alias st="svn status -u --no-ignore"
alias svnrm="find -name .svn -exec rm -rf {} \;"
alias rmcb="rm -rf ~/.local/share/Trash/files "
alias unlog="gnome-session-save --force-logout"
You can’t perform that action at this time.