Skip to content

Instantly share code, notes, and snippets.

For manual SQLi testing
-----------------------
https://www.websec.ca/kb/sql_injection
https://www.netsparker.com/blog/web-security/sql-injection-cheat-sheet/
#!/bin/sh
# find <? with any whitespace
ack -o --nogroup --break --php "<\?\s" *
# find <?}
ack -o --nogroup --break --php "<\?}" *
# find <?echo
ack -o --nogroup --break --php "<\?echo" *
// // Enable WP_DEBUG mode
define('WP_DEBUG', true);
// // Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// // Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', true);
@ini_set('display_errors', 1);
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define('SCRIPT_DEBUG', false);
define('SAVEQUERIES', false);
@localhost8080
localhost8080 / 301 from http to https
Created July 13, 2015 08:22
301 from http to https
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@localhost8080
localhost8080 / pull all git projects
Last active November 4, 2016 12:39
pull all projects in ~/development
find ~/git/ -type d -name .git \
| xargs -n 1 dirname \
| sort \
| while read line; do echo $line && cd $line && git pull; done
@localhost8080
localhost8080 / mac keyboard linux
Created January 8, 2015 14:21
uk mac wired slim aluminium keyboard in linux with proper cmd key
setxkbmap -variant mac -layout gb -option altwin:ctrl_win
@localhost8080
localhost8080 / .desktop file
Created January 6, 2015 10:24
create .desktop shortcut in ubuntu with a gui
gnome-desktop-item-edit --create-new /usr/share/applications
@localhost8080
localhost8080 / wp_signatures
Created December 15, 2014 11:22 — forked from chapov/gist:c0d6fb5531d18a5d7782
wp_signatures
grep -r -i -F -l --exclude=*.{png,gz,zip,rar,tgz,gif,pdf,jpg,jpeg,wmv} 'FilesMan
46.32.226.132
$GLOBALS['mrufx31']
function pttna79
_YM82iAN
http://rx-onlinepharmacystore.com/
discount-rx-shop.com
cheap-med-store.com
DQplcnJvcl9yZXBvcnRpb
0f01b0379c078cb769fe70b5f51f5e8e
@localhost8080
localhost8080 / remove old kernels in centos
Created September 30, 2014 12:40
remove old kernels in centos
package-cleanup --oldkernels --count=1
@localhost8080
localhost8080 / utf-8 mysql convert table
Last active August 29, 2015 14:07
convert a table to utf-8
ALTER TABLE whatever CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci