#Quick Guide
sudo atsutil databases -remove
atsutil server -shutdown
atsutil server -ping
#Extended Guide from http://doc.extensis.com/Font-Management-in-OSX-Best-Practices-Guide.pdf
#Quick Guide
sudo atsutil databases -remove
atsutil server -shutdown
atsutil server -ping
#Extended Guide from http://doc.extensis.com/Font-Management-in-OSX-Best-Practices-Guide.pdf
# ------------------------------------------------------------------------------------------ | |
# | |
# CUSTOM SETUP | |
# | |
# ------------------------------------------------------------------------------------------ | |
# MAINTENANCE-PAGE REDIRECT | |
#<IfModule mod_rewrite.c> | |
# RewriteEngine on | |
# RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000 |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
// 99% done by @rauri rochford | |
// http://js1k.com/2012-love/demo/1071 | |
// i just rAF'd it. | |
// demo at http://bl.ocks.org/1823634 | |
e = [];// trails |
#!/bin/bash | |
# variables | |
LOGFILE="/var/log/nginx/access.log" | |
LOGFILE_GZ="/var/log/nginx/access.log.*" | |
RESPONSE_CODE="200" | |
# functions | |
filters(){ | |
grep $RESPONSE_CODE \ |
//http://epsiloncool.ru/programmirovanie/preventing-multiple-submits-in-contact-form-7 | |
jQuery(document).on('click', '.wpcf7-submit', function(e){ | |
if( jQuery('.ajax-loader').hasClass('is-active') ) { | |
e.preventDefault(); | |
return false; | |
} | |
}); |
#!/usr/bin/env php | |
<?php | |
/** | |
* Extract a section of an apache or icecast log file between two dates | |
* Assumes that log lines are in chronological order | |
* Start and end dates can be in any format that strtotime can handle | |
* Reads from stdin, outputs to stdout, stats to stderr | |
* @author Marcus Bointon <[email protected]> | |
* @link https://gist.github.com/3749394 | |
* Example usage. Report the range of dates in a log file |
#!/bin/bash | |
find . -name "*.php" -exec grep "base64" '{}' \; -print &> b64-detections.txt | |
find . -name "*.php" -exec grep "eval" '{}' \; -print &> eval-detections.txt |
follow this guide https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
or
ssh-keygen
eval $(ssh-agent)
ssh-add ~/.ssh/