First you need the 'xsel' package.
$> pacman -S xsel
Then create aliases.
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
#!/usr/bin/env bash | |
set -au | |
# Check cellar dir | |
cellarDir=$(brew --prefix)/Cellar | |
if [ ! -d "$cellarDir" ]; then | |
echo "Not found. brew package path $cellarDir :(" | |
echo | |
exit 1 |
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems and boot from UEFI. | |
# Note this encrypted installation method, while perfectly correct and highly secure, CANNOT support encrypted /boot and | |
# also CANNOT be subsequently converted to support an encrypted /boot!!! A CLEAN INSTALL will be required! | |
# Therefore, if you want to have an encrypted /boot or will want an encrypted /boot system at some point in the future, | |
# please ONLY follow my encrypted /boot installation guide, which lives here: |
curl
to get the JSON response for the latest releasegrep
to find the line containing file URLcut
and tr
to extract the URLwget
to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
#!/usr/bin/env bash | |
echo ">>> Install Oh-My-ZSH" | |
sudo apt-get install -y zsh | |
wget http://install.ohmyz.sh -O - | zsh | |
#!/usr/bin/env bash | |
echo ">>> Install powerlevel10k theme" | |
git clone https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k |
This will pull in the docker images that are required to run OpenVPN:
OVPN_DATA="ovpn-data"
docker run --name $OVPN_DATA -v /etc/openvpn busybox
docker run --volumes-from $OVPN_DATA --rm kylemanna/openvpn ovpn_genconfig -u udp://your.host.domain:1194
# This needs to be added to your .bash_profile | |
## | |
# GIT Helpers | |
## | |
# Usage: git-blame <file> | |
git-blame() { | |
ruby ~/scripts/git-blame-colored $1 | less -R | |
} |
#!/bin/sh | |
# Configure homebrew permissions to allow multiple users on MAC OSX. | |
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
# allow admins to manage homebrew's local install directory | |
chgrp -R admin /usr/local | |
chmod -R g+w /usr/local | |
# allow admins to homebrew's local cache of formulae and source files | |
chgrp -R admin /Library/Caches/Homebrew |
Dockerfile
that is based on your production image and
simply install xdebug
into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \