Skip to content

Instantly share code, notes, and snippets.

View bserem's full-sized avatar

Bill Seremetis bserem

View GitHub Profile
@bserem
bserem / workshop_create.sql
Created April 3, 2015 14:28
Create dabatase and grant permissions
CREATE USER 'workshop'@'localhost' IDENTIFIED BY 'workshop';
CREATE DATABASE workshop;
GRANT ALL PRIVILEGES ON workshop.* TO 'workshop'@'localhost';
@bserem
bserem / nginx_server_block.conf
Created April 3, 2015 14:26
Nginx server block for running a Drupal workshop. This is not considered fast of secure, it is for development purposes.
server {
listen 8080;
server_name localhost;
root /var/www/workshop/drupal;
index index.php;
access_log /var/www/workshop/access.log;
error_log /var/www/workshop/error.log;
@bserem
bserem / mygitconfig.sh
Created April 30, 2014 13:53
Automatically configure git on a new environment
#!/bin/bash
# Automagically config git with a proper set of settings.
# Update and uncomment the following lines to change your user.
#git config --global user.name=""
#git config --global user.email=""
git config --global core.editor vim
git config --global core.page more
@bserem
bserem / .bashrc
Last active August 29, 2015 13:56
Bash: Verbose GIT branch
# verbose git branch on bash PS1
# get accompaning script with this command:
# curl https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh > ~/.bash_git
if [ -f ~/.bash_git ]; then
source ~/.bash_git
export PS1='[\u@\h \W$(__git_ps1 ":%s")]\$ '
fi