This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$quine = "PD9waHAKCiRxdWluZSA9ICIqIjsKCmVjaG8gc3RyX3JlcGxhY2UoY2hyKDQyKSwgJHF1aW5lLCBiYXNlNjRfZGVjb2RlKCRxdWluZSkpOw=="; | |
echo str_replace(chr(42), $quine, base64_decode($quine)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getLongestCommonSubstring($first, $second) | |
{ | |
$longestCommonSubstringIndexInFirst = 0; | |
$table = array(); | |
$largestFound = 0; | |
$firstLength = strlen($first); | |
$secondLength = strlen($second); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -q -u $USER:$JIRAPASSWORD "https://$JIRADOMAIN/activity?maxResults=1300&streams=user+IS+$USER&os_authType=basic" | grep 'Logged' | grep -o '[0-9][0-9.]*' | awk '{s+=$1} END {print s}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = new Node('a'); | |
$b = new Node('b'); | |
$c = new Node('c'); | |
$d = new Node('d'); | |
$e = new Node('e'); | |
$a->dependsOn($b); | |
$a->dependsOn($d); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nelmio_security: | |
# don't use signed cookies | |
# don't use encrypted cookies | |
# prevent framing of the entire site | |
clickjacking: | |
paths: | |
'^/.*': DENY | |
# prevent redirections outside the website's domain | |
external_redirects: | |
abort: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am relaxnow on github. | |
* I am relaxnow (https://keybase.io/relaxnow) on keybase. | |
* I have a public key whose fingerprint is 7715 2D20 ECFC 090A CEA4 EFBD 8F90 6A44 FF9D C71C | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Bit of code you can run in your developer toolbar or on https://jsfiddle.net . | |
* | |
* Fill in the characteristics of your own 'public file' solution and acceptance criteria. | |
*/ | |
(function(){ | |
'use strict'; | |
// dec=10,hex=16,[A-Z0-9]=36, etc. | |
var CHARACTER_COMBINATIONS = 16, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LC_CTYPE=UTF-8; pbpaste | (echo '<?php ' && cat) | /usr/local/bin/pygmentize -l php -f rtf -O style=monokai,fontface=Monaco | sed 's/\\\\f0/\\\\f0\\\\fs72/g' | pbcopy -Prefer rtf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/local/bin/php53-bin/php /tmp/json_decode.php | |
count: 1090 | |
peak memory usage: 6 MiB | |
time: 13.12ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert('xss'); |
OlderNewer