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
| cd ~ | |
| mkdir avm | |
| mkdir avm/downloads | |
| mkdir avm/dvd | |
| mkdir avm/vms | |
| mkdir avm/bin | |
| mkdir avm/shares | |
| mkdir avm/log | |
| cd ~/avm/downloads |
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
| # Useful commands | |
| # VBoxManage list vms | |
| # VBoxManage showmediuminfo avm/dvd/dsl-4.4.10-x86.vdi | |
| # VBoxManage list hostonlyifs | |
| # VBoxManage list intnets | |
| # VBoxManage list ostypes | more | |
| # VBoxManage showvminfo f-1 | |
| # VBoxManage list hostdvds | |
| if [ ! -f ~/.vbconfig ]; then |
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/sh | |
| VB_BASE_LOC=$HOME/avm | |
| VB_DLS_LOC=$VB_BASE_LOC/downloads | |
| VB_DVD_LOC=$VB_BASE_LOC/dvd | |
| VB_VMS_LOC=$VB_BASE_LOC/vms | |
| VB_BIN_LOC=$VB_BASE_LOC/bin | |
| VB_SHR_LOC=$VB_BASE_LOC/shares | |
| VB_LOG_LOC=$VB_BASE_LOC/log | |
| mkdir $VB_BASE_LOC |
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
| # split panes using | and - | |
| bind | split-window -h | |
| bind - split-window -v | |
| unbind '"' | |
| unbind % | |
| # reload config file (change file location to your the tmux.conf you want to use) | |
| bind r source-file ~/.tmux.conf | |
| # Enable mouse control (clickable windows, panes, resizable panes) |
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
| # From https://laravel.com/docs/5.3#installing-laravel | |
| composer global require "laravel/installer" # then add $HOME/.composer/vendor/bin to your path | |
| #source your shell rc file to pick up the laravel binary | |
| laravel new example_project | |
| # Dev environment can be Homestead (runs off virtualbox) or Valet (OS X only) for minimalists running the caddy server | |
| # now make some controllers | |
| php artisan make:controller ControllerName | |
| # Add some vendor dependencies |
This file has been truncated, but you can view the full file.
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
| -- MySQL dump 10.13 Distrib 5.7.16, for osx10.12 (x86_64) | |
| -- | |
| -- Host: localhost Database: homestead | |
| -- ------------------------------------------------------ | |
| -- Server version 5.7.16 | |
| /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
| /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
| /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
| /*!40101 SET NAMES utf8 */; |
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
| alias nah='git reset --hard; git clean -df' |
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
| # Create an image (Ubuntu 16.04 LTS) and boot it up - see https://www.linode.com/docs/getting-started for help | |
| # ssh into it | |
| # install nginx - https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04 | |
| sudo apt-get update | |
| sudo apt-get install zsh | |
| sudo apt-get install git | |
| sudo apt-get install nginx | |
| sudo ufw app list | |
| sudo ufw allow 'OpenSSH |
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
| # run multiple websites from nginx | |
| # https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3 | |
| chgrp -R www-data /var/www | |
| sudo chmod 775 /var/www | |
| sudo mkdir -p /var/www/example.com/public_html | |
| sudo chown -R www-data:www-data /var/www/example.com/public_html | |
| sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/example.com | |
| sudo vi /etc/nginx/sites-available/example.com | |
| sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/example.com | |
| sudo rm /etc/nginx/sites-enabled/default |