docker stop $(docker ps -a -q)
This file contains hidden or 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 | |
set -o errexit | |
# Author: David Underhill | |
# Script to permanently delete files/folders from your git repository. To use | |
# it, cd to your repository's root and then run the script with a list of paths | |
# you want to delete, e.g., git-delete-history path1 path2 | |
if [ $# -eq 0 ]; then | |
exit 0 |
This file contains hidden or 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
import os | |
from StringIO import StringIO | |
import json | |
import sys | |
import subprocess | |
import shutil | |
def getParent(rootid, id): | |
print "--> ", id |
This file contains hidden or 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
# services to handle doctrine extensions | |
# import it in config.yml | |
services: | |
# KernelRequest listener | |
# extension.listener: | |
# class: AppBundle\Listener\DoctrineExtensionListener | |
# calls: | |
# - [ setContainer, [ @service_container ] ] | |
# tags: | |
# # translatable sets locale after router processing |
This file contains hidden or 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/sh | |
apt-get purge lxc-docker* | |
apt-get purge docker.io* | |
apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo debian-jessie main" >> /etc/apt/sources.list.d/docker.list | |
apt-get install apt-transport-https -y | |
apt-get update | |
apt-get upgrade -y | |
apt-get dist-upgrade -y |
This file contains hidden or 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
# https://github.com/jimeh/git-aware-prompt | |
mkdir ~/.bash | |
cd ~/.bash | |
git clone git://github.com/jimeh/git-aware-prompt.git | |
# Add at the end of ".bashrc" file | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source $GITAWAREPROMPT/main.sh | |
export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " |
This file contains hidden or 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
[supervisord] | |
nodaemon=true | |
[inet_http_server] | |
port = 127.0.0.1:9001 | |
username = user | |
password = 123 | |
[program:sshd] | |
command=/usr/sbin/sshd -D |
I hereby claim:
- I am smalot on github.
- I am smalot (https://keybase.io/smalot) on keybase.
- I have a public key ASBJgURE4HpJ6ff7QUMvOVFPkHD_UuuXYVwhM8dxhT9HsAo
To claim this, I am signing this object:
OlderNewer