A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
The MIT License (MIT) | |
Copyright (c) James Dennes | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
This playbook has been removed as it is now very outdated. |
command! WPCodingStandards call WPCodingStandards() | |
function! WPCodingStandards() | |
" Space after opening paren | |
execute '%s/(\([^\t) ]\)/( \1/ge' | |
" Space before closing paren | |
execute '%s/\([^\t( ]\))/\1 )/ge' | |
" No spaces when casting types | |
execute '%s/(\s*\(array\|int\|object\|string\|float\)\s*)/(\1)/ge' |
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 \
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j SSHSCAN | |
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT | |
-A SSHSCAN -m recent --set --name SSH --rsource | |
-A SSHSCAN -m recent --update --seconds 3600 --hitcount 20 --name SSH --rsource -j LOG --log-prefix "Dropped SSH connection: " --log-level 6 | |
-A SSHSCAN -m recent --update --seconds 3600 --hitcount 20 --name SSH --rsource -j DROP |
Hi, I'm Lorna and I don't use a mouse. I have had RSI issues since a bad workstation setup at work in 2006. I've tried a number of extra hardware modifications but what works best for me is to use the keyboard and only the keyboard, so I'm in a good position and never reaching for anything else (except my coffee cup!). I rather unwisely took a job which required me to use a mac (I've been a linux user until now and also had the ability to choose my tools carefully) so here is my cheatsheet of the apps, tricks and keyboard shortcuts I'm using, mostly for my own reference. Since keyboard-only use is also great for productivity, you may also find some of these ideas useful, in which case at least something good has come of this :)
There's more detail on a few of these apps but here is a quick overview of the tools I've installed and found helpful
Tool | Link | Comments |
---|
# Displays the currently playing media at FIP radio | |
# http://www.fipradio.fr/player | |
# You may want to update the number at the end of the URL | |
# if you use a specific "style" channel instead of the | |
# generic (main) channel, which is 7. | |
import requests | |
import time | |
import subprocess |
src :
Let’s start by what you can do while typing. These keystrokes change only what happens on the input line (the line where you type stuff).
arrow left/right: move one character left or right.