Skip to content

Instantly share code, notes, and snippets.

View rydurham's full-sized avatar

Ryan Durham rydurham

View GitHub Profile
@rydurham
rydurham / .bashrc
Created October 25, 2013 05:35
.bashrc 10/24/13
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
@rydurham
rydurham / gist:7149861
Created October 25, 2013 05:37
.bash_aliases 10/24/13
# Some useful Aliases
alias cls=clear
alias composer='/usr/local/bin/composer.phar'
# Add Git Branch Info
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
sudo apt-get install phpmyadmin
sudo vim /etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache.conf
sudo service apache2 restart
### Keybase proof
I hereby claim:
* I am rydurham on github.
* I am rydurham (https://keybase.io/rydurham) on keybase.
* I have a public key whose fingerprint is 0A67 6818 87ED 7D1D 26A8 CEED 0279 B429 EC4F 1C27
To claim this, I am signing this object:
@rydurham
rydurham / gist:1fd7ac4154e6a18865fd
Last active September 4, 2019 07:45
Installing Gulp on Homestead
Via http://christoph-rumpel.com/2014/02/how-to-laravel-series-lets-talk-gulp/
$ node -v
v0.10.28
$ npm -v
1.4.24
@rydurham
rydurham / gist:9dde974dea12b355525a
Created September 9, 2014 18:46
Sass Media Queries mixin
$breakpoints: (
'small' ( '( max-width: 616px )'),
'medium' ( '( min-width: 617px ) and (max-width: 1066px)'),
'large' ( '( min-width: 1067px )')
);
@mixin respond-to($name, $push: false) {
// If the key exists in the map
@if map-has-key($breakpoints, $name) {
// Prints a media query based on the value
@rydurham
rydurham / .env.local.php
Created November 19, 2014 22:44
Basic Laravel .env.local file
<?php
return array(
'EMAIL_HOST' => '',
'EMAIL_PORT' => 587,
'EMAIL_USERNAME' => '',
@rydurham
rydurham / gist:904804896e12b95abee8
Created December 11, 2014 18:05
Using Git with WordPress Plugins
http://teleogistic.net/2011/05/revisiting-git-github-and-the-wordpress-org-plugin-repository
So, for the last six months or so, I’ve used a modified version of the release workflow described in Part Three. First, I have a local branch, which I call svn, which tracks trunk:
git checkout -b svn trunk
At release time, I check out the svn branch, and do a squash merge. This means that all changes since the last commit to the svn branch are laid on top of svn as if they were a single set of changes. You can then commit these changes as a single changeset (thus keepin’ it linear, and keepin’ it short for Otto’s sake):
git checkout svn # if you're not already on it
@rydurham
rydurham / wp.sh
Last active August 29, 2015 14:12 — forked from bgallagh3r/wp.sh
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "
@rydurham
rydurham / package.json
Created January 11, 2015 00:27
Basic Package.json for Gulp
{
"name": "project-name",
"version": "1.0.0",
"description": "description",
"repository": {
"type": "git",
"url": ""
},
"author": "Ryan C. Durham",
"devDependencies": {