Skip to content

Instantly share code, notes, and snippets.

View wodka's full-sized avatar

Michael Schramm wodka

  • GmbH
  • Vienna
View GitHub Profile
npearce /
Last active June 5, 2024 20:07
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See:

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
# Install Oh My Zsh
sh -c "$(curl -fsSL"
# Install Homebrew
/bin/bash -c "$(curl -fsSL"
# Install Homebrew packages
brew install git
brew install java
brew install mackup
BretFisher /
Last active May 23, 2024 22:25
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info:

ziadoz /
Last active April 20, 2024 10:18
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# Versions
#!/usr/bin/env bash
# Original Source:
## Usage: heroku_env_copy [options] SOURCE TARGET
## NOTE: This script will only output the command, you should run it yourself.
## Options:
## -h, --help Display this message.
clops / deploy.php
Last active August 1, 2022 11:41
GIT P4T Console Deploy
* GIT Merge Helper
* Installation:
* 1. Download / Clone this GIST into some directory
* 2. chmod a+x deploy.php
* 3. Add an alias into .bash_profile with a full path to the deploy.php script, mine is:
* alias deploy="~/dev/3ac9cd6c42a66ba65101/deploy.php"
pfleidi / pre-push
Last active August 29, 2015 14:03
Automatically make an animated GIF of yourself and upload it to a specified slack channel.
FILE_PATH="$(ls ~/.lolcommits/${PWD##*/}/$(git rev-parse HEAD | cut -c1-11).*)"
if [ "$?" -ne "0" ] || [ ! -f $FILE_PATH ]; then
lolcommits --capture --animate=1 --delay=4
FILE_PATH="$(ls ~/.lolcommits/${PWD##*/}/$(git rev-parse HEAD | cut -c1-11).*)"
GITHUB_REPO="$(git remote -v | grep origin | head -1 | sed 's/.*git@github\.com:\(.*\/.*\)\.git.*/\1/')"
# taken from
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl