Skip to content

Instantly share code, notes, and snippets.

View stonelasley's full-sized avatar

Stone Lasley stonelasley

View GitHub Profile
#
# 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
#!/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
"/* ======================== Settings ========================= */
set nocompatible
set relativenumber
set number
set smartindent
set ts=4 sw=2 et
set t_Co=256
filetype plugin indent on
"/* ======================== Mappings ========================= */
@stonelasley
stonelasley / .wallchange.sh
Created March 23, 2014 18:48
ldxe change wallapaper
#!/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
@stonelasley
stonelasley / install
Created August 1, 2018 00:02
Install Vim 8.1 with Python 2, Python 3, Ruby and Lua - Ubuntu 18.04
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
@stonelasley
stonelasley / reset.sh
Created August 20, 2022 17:04
reset ssh dir permissions
find .ssh/ -type f -exec chmod 600 {} \;; find .ssh/ -type d -exec chmod 700 {} \;; find .ssh/ -type f -name "*.pub" -exec chmod 644 {} \;