This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# command to generate dhparams.pen | |
# openssl dhparam -out /etc/nginx/conf.d/dhparams.pem 2048 | |
include /redirects.conf; | |
server { | |
listen 80; | |
listen [::]:80; | |
access_log off; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open up Terminal | |
# In the command line, type: cd | |
# Drag and drop the folder you wish to delete .DS_Store files from, in this case our theme folder. Press enter. | |
# run: | |
find . -name '*.DS_Store' -type f -delete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /TARGET_DIR/* -type d | xargs -n1 sh -c 'echo mv ${0}/* "$( dirname {0})" ";" rm -rvf ${0}' | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I needed to install vim with lua support because I wanted to use neocomplete in my recently installed 15.04 distro. | |
The following (based upon https://gist.github.com/jdewit/9818870) should work though I copied it from history: | |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get build-dep vim-gnome | |
sudo apt-get install build-essential liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim /usr/local/bin/vim | |
sudo mkdir /usr/include/lua5.1/include | |
sudo cp /usr/include/lua5.1/*.h /usr/include/lua5.1/include/ | |
cd /tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ORG_NAME="YOUR_ORGANIZATIONS_NAME" | |
ACCESS_TOKEN="YOUR_ACCESS_TOKEN" | |
GITHUB_INSTANCE="api.github.com" | |
URL="https://${GITHUB_INSTANCE}/orgs/${ORG_NAME}/repos?access_token=${ACCESS_TOKEN}" | |
curl ${URL} | ruby -rjson -e 'JSON.load(STDIN.read).each {|repo| %x[git clone #{repo["ssh_url"]} ]}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -m SimpleHTTPServer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -name '*.DS_Store' -type f -delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ln -s /Users/raul/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service ntpd restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install python-software-properties | |
$ sudo apt-get install software-properties-common | |
$ sudo add-apt-repository ppa:git-core/ppa -y | |
$ sudo apt-get update | |
$ sudo apt-get install git | |
$ git --version |
NewerOlder