This is a document for managing LetsEncrypt certificates on AWS using AWS Certificate Manager and configuring on CloudFront using the AWS CLI.
Follow the instructions to set up the certbot
and aws
commands on your local machine:
This is a document for managing LetsEncrypt certificates on AWS using AWS Certificate Manager and configuring on CloudFront using the AWS CLI.
Follow the instructions to set up the certbot
and aws
commands on your local machine:
This is a simple way of importing MySQL database in Docker.
In you Dockerfile you must have a shared folder. Shared folder is a directory in your host machine that is mounted to Docker instance.
Put the exported sql file in the shared folder.
Login to your Docker instance via docker exec -it DOCKER_CONTAINER_ID bin/bash
.
Login to MySQL via mysql -u USERNAME -p
.
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |
#!/bin/bash | |
# | |
# Bash script to setup headless Selenium (uses Xvfb and Chrome) | |
# (Tested on Ubuntu 12.04) trying on ubuntu server 14.04 | |
# Add Google Chrome's repo to sources.list | |
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee -a /etc/apt/sources.list | |
# Install Google's public key used for signing packages (e.g. Chrome) | |
# (Source: http://www.google.com/linuxrepositories/) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
require 'formula' | |
class LibusbDevel < Formula | |
url 'https://github.com/OpenNI/OpenNI/blob/4dbf64bc45b880bfda6aa6bb2a30d1ddd03a8c65/Platform/Linux/Build/Prerequisites/libusb-1.0.8-osx.tar.bz2?raw=true' | |
homepage 'http://www.libusb.org/' | |
md5 '8ad20ec24b7612caf75a059a03f21dd8' | |
depends_on "automake" => :build | |
depends_on "libtool" => :build |
#!/bin/sh | |
#.git/hooks/pre-commit | |
patterns=("TODO" "binding.pry" "selenium") | |
status=0 | |
for pattern in ${patterns[*]} | |
do | |
matches=`git-diff-index -p -M --cached HEAD -- | grep '^+' | grep -i "$pattern"` | |
matches_count=`git-diff-index -p -M --cached HEAD -- | grep '^+' | grep -i "$pattern" | wc -l` |