This file contains 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 .ssh/ -type f -exec chmod 600 {} \;; find .ssh/ -type d -exec chmod 700 {} \;; find .ssh/ -type f -name "*.pub" -exec chmod 644 {} \; |
This file contains 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 remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo apt-get install -y liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
git clone https://github.com/vim/vim ~/vimtemp | |
cd ~/vimtemp | |
git pull && git fetch | |
cd src |
This file contains 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/sh | |
#very simple wallpaper changer for lxde | |
# | |
#cron settings * * * * * DISPLAY=:0 /home/stone/Pictures/wallchange.sh | |
# | |
# | |
pcmanfm --set-wallpaper="$(find ~/Pictures/Wallpapers -type f | shuf -n1)" --wallpaper-mode=stretch |
This file contains 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
"/* ======================== Settings ========================= */ | |
set nocompatible | |
set relativenumber | |
set number | |
set smartindent | |
set ts=4 sw=2 et | |
set t_Co=256 | |
filetype plugin indent on | |
"/* ======================== Mappings ========================= */ |
This file contains 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 | |
# Written by Stone C. Lasley <slasley@gmail.com> | |
declare -r CAKE_PATH='/usr/lib/php5/CakePHP' | |
declare -r DEV_USER='user' | |
if [[ ! -d $CAKE_PATH ]]; then | |
echo "Snatchin' Yo Cake Up!" | |
git clone https://github.com/cakephp/cakephp.git $CAKE_PATH | |
sudo chown -R $DEV_USER:www-data $CAKE_PATH |
This file contains 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
# | |
# A virtual host using mix of IP-, name-, and port-based configuration. | |
# This is based on using Homebrew for OS X. You can use this in other | |
# cases though, but you'll likely need to adjust some of the paths below. | |
# | |
server { | |
# Replace this port with the right one for your requirements | |
# listen 80 [default|default_server]; #could also be 1.2.3.4:80 |