Skip to content

Instantly share code, notes, and snippets.

View llbbl's full-sized avatar

Logan Lindquist llbbl

View GitHub Profile
@llbbl
llbbl / keybase.md
Created January 24, 2015 03:12
keybase markdown file to verify identity

Keybase proof

I hereby claim:

  • I am llbbl on github.
  • I am llbbl (https://keybase.io/llbbl) on keybase.
  • I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }

To claim this, I am signing this object:

@llbbl
llbbl / copy_db.sh
Last active August 29, 2015 14:19 — forked from CatEntangler/copy_db.sh
#!/bin/bash
# Simple script to copy a MySQL to another
# Parent backup directory
backup_parent_dir="/path/to/tmp/backup/dir" #notice no ending slash
# MySQL settings
mysql_user="elevateduser"
mysql_password="elevateduserpassword"
@llbbl
llbbl / remove_footer_genesis.php
Created May 10, 2015 22:14
remove footer from genesis child theme
@llbbl
llbbl / update.sh
Created June 30, 2015 02:55
update all the things
#!/bin/sh
echo 'updating composer'
composer selfupdate
echo 'updating home brew'
brew update
https://www.evernote.com/l/AAoEOtFGgThO94zN6ia6mpGHd_0fxzhrwtk
@llbbl
llbbl / compare.sh
Created November 26, 2015 18:39
Compare two files and if they are different overwrite the second one with the first one.
#!/bin/bash
filePath1="$1"
filePath2="$2"
if cmp -s "$1" "$2"
then
echo "match"
else
echo "different"

See a list of composer configuration settings.

composer config --list -g

Check to see if you already set a github personal access token

@llbbl
llbbl / deploy.rb
Last active April 21, 2018 20:37
Capistrano deploy file for Laravel 5.x
# config valid only for current version of Capistrano
lock '3.4.0'
set :application, "Your app name" # EDIT your app name
set :repo_url, "https://github.com/laravel/laravel.git" # EDIT your git repository
set :deploy_to, "/var/www/my-app" # EDIT folder where files should be deployed to
set :keep_releases, 5
# set :linked_files, %w{.env} #EDIT uncomment this line once you have a .env file in :deploy_to/shared
# Before Script
before_script:
- composer self-update
- composer install --prefer-dist > /dev/null
- cp .env.example .env
- php artisan key:generate
- php artisan migrate:refresh
# Services
services:
@llbbl
llbbl / opencfp.com
Last active April 17, 2016 20:17
nginx opencfp conf example
server{
server_name cfp.sitename.com;
root /var/www/opencfp/web;
access_log /var/log/nginx/access.cfp.log;
error_log /var/log/nginx/error.cfp.log;
listen 80;
index index.php index.html index.htm;