This file contains 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
<?php | |
/** | |
* This is just a quick hack to get the data directory for a user | |
*/ | |
// load engine - this assumes the script has been put in the root directory of Elgg | |
require_once(dirname(__FILE__) . "/engine/start.php"); | |
global $CONFIG; |
This file contains 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
xinput set-button-map "Logitech USB Trackball" 1 8 3 4 5 6 7 2 9 |
This file contains 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
.DS_Store | |
Gemfile.lock | |
*.pem | |
node.json | |
tmp/* | |
!tmp/.gitignore |
This file contains 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
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.1-full rubygems1.9.1 | |
ln -s /usr/bin/ruby /usr/local/bin/ruby | |
ln -s /usr/bin/gem1.9.1 /usr/local/bin/gem | |
rm /usr/bin/ruby /usr/bin/gem | |
aptitude install -y mysql-server libmysqlclient-dev | |
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git | |
adduser --disabled-login --gecos 'gitlab system' gitlab | |
usermod -a -G git gitlab | |
su - gitlab | |
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa |
This file contains 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 new project | |
# | |
# Parameters: | |
# name (required) - name for new project | |
# description (optional) - short project description | |
# default_branch (optional) - 'master' by default | |
# issues_enabled (optional) - enabled by default | |
# wall_enabled (optional) - enabled by default | |
# merge_requests_enabled (optional) - enabled by default | |
# wiki_enabled (optional) - enabled by default |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
# Quick Install for Docker on Mac OSX | |
# Author: Benjamin H. Graham <bman@bman.io> | |
# Must be run as root | |
# Usage: curl -s bman.io/i/install_dockermac|sudo bash | |
cd ~ | |
echo "Downloading docker binary"; | |
curl -Ls "https://github.com/boot2docker/osx-installer/releases/download/v1.2.0/Boot2Docker-1.2.0.pkg" -o "Boot2Docker-1.2.0.pkg"; | |
echo "Installing docker service"; | |
installer -pkg Boot2Docker-1.2.0.pkg -target /; |
This file contains 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
# Quick Install for Docker on Debian (LMDE, Mint, Ubuntu, etc) | |
# Author: Benjamin H. Graham <bman@bman.io> | |
# Usage: curl -s bman.io/i/install_dockerdeb | bash | |
# Add debian repo | |
echo "Adding the debian repository for docker" | |
echo deb http://get.docker.io/ubuntu docker main | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
echo "Updating apt repos" | |
sudo apt-get update -qq |
This file contains 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/bash | |
# | |
# Author: Benjamin H. Graham (me@bman.io) | |
# Copyright: 2015 Administr8 (http://administr8.me) | |
# License : GNU GPL v2 (http://www.gnu.org/licenses/gpl-2.0.html) | |
# dump packages to pastebin, return hash | |
# restore packages from pastebin with hash input | |
VERSION="1.0.0"; |
OlderNewer