Skip to content

Instantly share code, notes, and snippets.

@francoiscabrol
francoiscabrol / awesome-wm-env.md
Created September 18, 2015 20:11
[Awesome wm + ubuntu] set ENV variables

For adding environment variables as HTTP_PROXY in awesome wm with ubuntu, the only way to get it works with everything (google chrome in particular) that I found was to define them in the ~/.profile as

export http_proxy=http://
export https_proxy=http://
export no_proxy="localhost, ..."
@francoiscabrol
francoiscabrol / webstorm.desktop.md
Last active April 24, 2018 13:31
webstorm.desktop

For getting webstorm fully install as a regular ubuntu app, and don't have to launch it with the script ./webstorm.sh add these webstorm.desktop in your /usr/share/applications/. Don't forget to replace WEBSTORM_PATH by your webstorm absolute path

[Desktop Entry]
Type=Application
Name=JetBrains WebStorm
Exec=WEBSTORM_PATH/bin/webstorm.sh %f

Icon=WEBSTORM_PATH/bin/webide.png

@francoiscabrol
francoiscabrol / gist:f7495c45caf0196b8b3c
Created July 2, 2015 19:56
interactive grep with percol and vim
// Use grepi as you would use grep and it will open the matching lines in percol
// then press enter to open it in vim at the good line
// ex: grepi -r [pattern] [folder]
// You need percol to be installed
grepi() {
vim $((grep -n $@ | sed 's/:/ /g' | percol | awk '{print "+"$2 " " $1}') || '-c quit')
}