follow this guide https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
or
ssh-keygen
eval $(ssh-agent)
ssh-add ~/.ssh/
follow this guide https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
or
ssh-keygen
eval $(ssh-agent)
ssh-add ~/.ssh/
#!/bin/bash | |
find . -name "*.php" -exec grep "base64" '{}' \; -print &> b64-detections.txt | |
find . -name "*.php" -exec grep "eval" '{}' \; -print &> eval-detections.txt |
#!/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 |
//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; | |
} | |
}); |
#!/bin/bash | |
# variables | |
LOGFILE="/var/log/nginx/access.log" | |
LOGFILE_GZ="/var/log/nginx/access.log.*" | |
RESPONSE_CODE="200" | |
# functions | |
filters(){ | |
grep $RESPONSE_CODE \ |
// 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 |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
# ------------------------------------------------------------------------------------------ | |
# | |
# CUSTOM SETUP | |
# | |
# ------------------------------------------------------------------------------------------ | |
# MAINTENANCE-PAGE REDIRECT | |
#<IfModule mod_rewrite.c> | |
# RewriteEngine on | |
# RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000 |
#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
By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk. This process is outlined at the Nginx ngx_http_fastcgi_module page document page.
Since disk is slow and memory is fast the aim is to get as many FastCGI responses passing through memory only. On the flip side we don't want to set an excessively large buffer as they are created and sized on a per request basis (i.e. it's not shared memory).