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
# | |
# Virtual Hosts | |
# | |
# If you want to maintain multiple domains/hostnames on your | |
# machine you can setup VirtualHost containers for them. Most configurations | |
# use only name-based virtual hosts so the server doesn't need to worry about | |
# IP addresses. This is indicated by the asterisks in the directives below. | |
# | |
# Please see the documentation at | |
# <URL:http://httpd.apache.org/docs/2.2/vhosts/> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css" rel="stylesheet" type="tex/css" /> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script> | |
assertArrayHasKey() | |
assertClassHasAttribute() | |
assertClassHasStaticAttribute() | |
assertContains() | |
assertContainsOnly() | |
assertContainsOnlyInstancesOf() | |
assertCount() | |
assertEmpty() | |
assertEqualXMLStructure() | |
assertEquals() |
#!/usr/bin/env bash | |
sudo cp -rR /etc/yum.repos.d/ /etc/yum.repos.d-backup/ | |
sudo ln -s /CCDNSandbox/Vagrant /vagrant | |
sudo chmod 755 /vagrant/shell/*.sh | |
sudo /vagrant/shell/os-detect.sh | |
sudo /vagrant/shell/initial-setup.sh | |
sudo /vagrant/shell/update-puppet.sh | |
sudo /vagrant/shell/librarian-puppet-vagrant.sh |
$(this).select2({ | |
tags: $(this).data('tag-license-table'), | |
tokenSeparators: [",", " "] | |
}) | |
// values go between braces, and have looking format | |
// i.e key: value | |
Here is a longer example with deeper nesting |
Edit ~/.zshrc and uncomment the following line
DISABLE_UNTRACKED_FILES_DIRTY="true"
add this to projects mounted over NFS
git config --add oh-my-zsh.hide-status 1
also, you could edit ~/.oh-my-zsh/plugins/gitfast/gitfast.plugin.zsh
but changes might potentially be lost in udpates
function git_prompt_info() {
server { listen 80; | |
server_name example.com; | |
access_log /var/log/example.com/nginx.access.log; | |
error_log /var/log/example.com/nginx.error.log; | |
root /var/www/apps/example.com/public; | |
charset utf-8; | |
location / { | |
rewrite ^ https://$host$request_uri? permanent; | |
} |
nano /etc/wpa_supplicant/wpa_supplicant.conf | |
ctrl_interface=/run/wpa_supplicant | |
update_config=1 | |
#https://wiki.archlinux.org/index.php/WPA_supplicant | |
#wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf | |
#wpa_cli | |
wpa_supplicant -B -i wlan0 -c <(wpa_passphrase SSID PASSPHRASE) |