most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
As configured in my dotfiles.
start new:
tmux
start new with session name:
Get boot2docker working with nfs instead of vboxsf.
Tested on:
- Boot2Docker-cli version: v1.6.0
Git commit: 9894ae9
- Boot2Docker-cli version: v1.6.2
Git commit: cb2c3bc
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 \
$ docker run --rm --volumes-from [DATA_CONTAINER_NAME] -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar [/path/to/the/data/to/backup]
$ docker run --rm --volumes-from [DATA_CONTAINER_NAME] -v $(pwd):/backup ubuntu bash -c "cd [/path/to/datadir] && tar xvf /backup/backup.tar --strip 1"
# https://www.snippetbucket.com/ | |
# ODOO ERP Django PHP Android AngularJS implementation and customization. | |
# Most Simple and Quick Way: | |
sudo su | |
cd /opt | |
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
mv wkhtmltox/bin/wkhtmlto* /usr/bin/ |
npm install -g node-icns nativefier | |
curl -o cat.png https://octodex.github.com/images/adventure-cat.png | |
nicns --in cat.png --out cat.icns | |
echo "console.log('whoa script injection')" > inject.js | |
nativefier --name "GitHub Gmail" --icon cat.icns --inject inject.js https://inbox.google.com | |
rm -rf /Applications/GitHub\ Gmail.app | |
mv GitHub\ Gmail-darwin-x64/GitHub\ Gmail.app /Applications/ | |
open /Applications/GitHub\ Gmail.app |
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:latest | |
# replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis