View homebrew-php54-phpini
--- /etc/php.ini 2014-02-27 16:15:52.000000000 -0500 | |
+++ /usr/local/etc/php/5.4/php.ini 2014-02-05 03:22:22.000000000 -0500 | |
@@ -1,7 +1,4 @@ | |
[PHP] | |
-zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so | |
-xdebug.remote_enable=On | |
-detect_unicode = off | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; |
View tokutest.php
#!/usr/bin/php | |
<?php | |
$db = array(); | |
$db['host'] = 'localhost'; | |
$db['user'] = 'root'; | |
$db['password'] = ''; | |
$db['database'] = 'toku'; | |
View barracuda.php
#!/usr/bin/php | |
<?php | |
$db = array(); | |
$db['host'] = 'localhost'; | |
$db['user'] = 'root'; | |
$db['password'] = ''; | |
$db['database'] = 'barracuda'; | |
View normananalyzer.js
var keyboards = []; | |
var text = ""; | |
//To create a keyboard: | |
//call the CreateKeyboard function, then pass the name, add a comma, | |
//lastly spam your first 10 keys for each row | |
//don't use the numbers row and don't use more than 10 keys per row | |
CreateKeyboard("qwerty", "qwertyuiopasdfghjkl;zxcvbnm,./"); | |
CreateKeyboard("colemak", "qwfpgjluy;arstdhneiozxcvbkm,./"); | |
CreateKeyboard("workman", "qdrwbjfup;ashtgyneoizxmcvkl,./"); |
View scan_drupal_nodes.php
<?php | |
$url_prefix = 'https://deekayen.net/node/'; | |
$low = 1400; | |
$high = 1450; | |
$output_file = '/Users/davidnorman/Sites/scan/scan.csv'; | |
/******************************************/ | |
$fp = fopen($output_file, 'w'); |
View spelling.php
<?php | |
// unset it just in case someone tried to set it from the URL with register_globals on | |
unset($suggestion_found); | |
session_start(); | |
define("NL", "\n"); | |
function check_textarea($message) { | |
return htmlspecialchars(stripslashes($message)); |
View trim_drupal_node_revisions.sql
DELETE FROM node_revisions WHERE vid IN ( | |
SELECT subquery.vid FROM ( | |
SELECT @row_num := IF(@prev_value=nr.nid,@row_num+1,1) AS RowNumber | |
,nr.nid | |
,nr.vid | |
,nr.timestamp | |
,@prev_value := nr.nid | |
FROM node_revisions nr, | |
(SELECT @row_num := 1) x, | |
(SELECT @prev_value := '') y |
View trim_drupal_node_revisions.sql
DELETE FROM node_revisions WHERE vid IN ( | |
SELECT subquery.vid FROM ( | |
SELECT @row_num := IF(@prev_value=nr.nid,@row_num+1,1) AS RowNumber | |
,nr.nid | |
,nr.vid | |
,nr.timestamp | |
,@prev_value := nr.nid | |
FROM node_revisions nr, | |
(SELECT @row_num := 1) x, | |
(SELECT @prev_value := '') y |
View wmic_count.php
<?php | |
$wmic = `wmic process get description`; | |
$total_svchost_running = substr_count($wmic, 'svchost.exe'); | |
echo 'Total svchost.exe processes: ' . $total_svchost_running; |
View find_kazy.sh
#!/bin/sh | |
# A hacky way to find a variant of the Kazy trojan virus. | |
# Maybe helpful if your Windows users had a Samba mount that got infected. | |
# See also: | |
# https://www.virustotal.com/en/file/25eaf33c12a669cd9ab6fc4f55fecc085704a4ee5f015ffb8bfdb1495a009f5a/analysis/1417196359/ | |
find / -type f -iname '*.exe' -exec grep -R "lKTGM$S" {} \; | |
find / -type f -iname '*.exe' -exec grep -R "yUXWncK" {} \; |
OlderNewer