Skip to content

Instantly share code, notes, and snippets.

@erichelgeson
erichelgeson / sentry-docker.sh
Last active January 27, 2020 15:10
Sentry Docker
SENTRY_SECRET_KEY=longsecrethere
DOCKERPREFIX=eric
cat <<-EOF > requirements.txt
sentry-slack==0.5.0
EOF
cat <<-EOF > Dockerfile
FROM sentry:8.5-onbuild
EOF
@thbkrkr
thbkrkr / install-newrelic.yml
Last active May 2, 2017 15:54
Ansible Playbook to install the NewRelic agent
#
# Playbook to install the newrelic agent on a machine
#
# ansible-playbook install-newrelic.yml -e newrelic_license_key=$NEWRELIC_LICENSE_KEY
#
---
- hosts: all
become: yes
gather_facts: false
@thbkrkr
thbkrkr / Dockerfile
Created June 24, 2015 09:24
Notes: Run Docker Compose in Docker on any machine (created using Docker Machine)
FROM krkr/dc
COPY . /
@thbkrkr
thbkrkr / prepare-pushgitrepo.sh
Last active February 12, 2016 17:20
Prepare git repo with push and update
# curl -sSL https://gist.github.com/thbkrkr/... | sh -s ops.git
repo=$1
[ ! -d $repo ] \
&& mkdir $repo && cd $repo \
&& git init && git config receive.denyCurrentBranch ignore \
&& echo '#!/bin/sh' > .git/hooks/post-receive \
&& echo "GIT_WORK_TREE=$repo git checkout -f" >> .git/hooks/post-receive \
&& chmod u+x .git/hooks/post-receive \
@wdullaer
wdullaer / install.sh
Last active June 29, 2024 11:54
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@stephanetimmermans
stephanetimmermans / ubuntu-compass-ruby
Last active May 16, 2024 03:29
Install Compass+Ruby on Ubuntu 14.04
#https://gorails.com/setup/ubuntu/14.04
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.2
rvm use 2.1.2 --default
@BlinkyStitt
BlinkyStitt / gource-multi
Created July 17, 2013 01:09
Run gource over a bunch of repos and save an mp4
#!/usr/bin/env bash
# Generates gource video (h.264) out of multiple repositories.
# Pass the repositories in command line arguments.
# Example:
# <this.sh> /path/to/repo1 /path/to/repo2
OUTFILE="gource.mp4"
set -x
@freretuc
freretuc / geoloc
Created December 4, 2011 14:14
geolocalisation javascript
if (!navigator.geolocation) {
// geolocalisation non disponible pour le navigateur...
alert("#failed : geolocalisation not aviable with your browser. Sorry.");
} else {
// on tente de geolocaliser la personne...
navigator.geolocation.getCurrentPosition(whereiam);
}
function whereiam(position) {
// données utiles :
@bergie
bergie / .gitignore
Created September 19, 2011 15:50
Node.js email handling examples
config.json
reading-image.png
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt