I hereby claim:
- I am derak-kilgo on github.
- I am derak (https://keybase.io/derak) on keybase.
- I have a public key ASCWPamiL3ZKgx9LtL9AHPnU7x5ULNBZy8gHyqB8R1QVego
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# Solution based on https://stackoverflow.com/a/11988455/119829 | |
# Thank you balanv. | |
# | |
base_domain=test.example.com; | |
command -v telnet >/dev/null 2>&1 || { echo >&2 "I require telnet but it's not installed. Aborting."; exit 1; } |
<?php | |
$file = __DIR__ . DIRECTORY_SEPARATOR . 'post2log.txt'; | |
$post = $_POST; | |
if(!empty($post)){ | |
$post['timestamp'] = date('r'); | |
file_put_contents($file,print_r($post,true),FILE_APPEND); | |
http_response_code(202); | |
print_r($post); | |
}else{ | |
http_response_code(405); |
-- These are mostly MySQL Specific commands. | |
-- probe your query log settings. This will show you if its on or not and where its going (db or file) | |
SHOW VARIABLES LIKE 'general%' | |
; | |
-- saves the query log to a table in mysql. This is usually easier to get to. | |
SET GLOBAL log_output = 'table' | |
; |
<?php | |
/** | |
* Class RD_Text_Extraction | |
* | |
* Example usage: | |
* | |
* $response = RD_Text_Extraction::convert_to_text($path_to_valid_file); | |
* | |
* For PDF text extraction, this class requires the Smalot\PdfParser\Parser class. |
/* | |
* http://www.myersdaily.org/joseph/javascript/md5-text.html | |
*/ | |
(function (global) { | |
var md5cycle = function (x, k) { | |
var a = x[0], | |
b = x[1], | |
c = x[2], | |
d = x[3]; |
<?php | |
/* | |
* Bootstrap this outside of normal wordpress plugin | |
* won't load theme support functionality | |
*/ | |
define( 'WP_USE_THEMES', false ); | |
require( './wp-load.php' ); | |
/* | |
* Need to know the ID for your user. | |
* #1 is usually an admin. Don't put this on a live site. |
I hereby claim:
To claim this, I am signing this object:
#Often the test system is using a subset of our live data. We don't include media in those copies. | |
#In QA; Rewrite missing images to the live server. | |
RewriteEngine On | |
#RewriteBase / #Use this if your placing this in a .htaccess file. | |
RewriteCond %{REQUEST_URI} \.(jpe?g|bmp|png)$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ https://somelivedomain.test/$1 [L,R=302] |
body { background: #404040; color: #e6e6e6; } | |
a { color: #949494; } | |
a:link, a:visited { color: #949494; } | |
a:hover, a:active, a:focus { color: #c7c7c7; } | |
hr { border-bottom: 1px solid #424242; border-top: 1px solid #404040; } |