Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains hidden or 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
@echo off | |
echo Content-Type: text/plain | |
echo. | |
dir |
This file contains hidden or 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
<h3>Ctrl+c Ctrl+v disabled</h3> | |
<textarea class="no-copy-paste"></textarea> | |
<br><br> | |
<h3>Ctrl+c Ctrl+v allowed</h3> | |
<textarea></textarea> |
This file contains hidden or 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
function heidiDecode(hex) { | |
var str = ''; | |
var shift = parseInt(hex.substr(-1)); | |
hex = hex.substr(0, hex.length - 1); | |
for (var i = 0; i < hex.length; i += 2) | |
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift); | |
return str; | |
} | |
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393')); |
This file contains hidden or 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 | |
protected function search($array, $key, $value) | |
{ | |
$results = array(); | |
if (is_array($array)) | |
{ | |
if (isset($array[$key]) && $array[$key] == $value) | |
$results[] = $array; |
This file contains hidden or 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
#!/bin/env sh | |
lines=$(tput lines) | |
cols=$(tput cols) | |
awkscript=' | |
{ | |
letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()" | |
lines=$1 |
This file contains hidden or 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 print_r_color($object, $die = false){ | |
# insert span tags | |
$output = ''; | |
$output = '<span class="die_value">'. $output; | |
$output = str_replace('[', '<span class="die_key">[\'', print_r($object,TRUE)); | |
$output = str_replace(']', '\']</span>', $output); | |
$output = str_replace('=> ', '=> <span class="die_value">', $output); |
This file contains hidden or 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 | |
/** | |
* Interactively prompts for input without echoing to the terminal. | |
* Requires a bash shell or Windows and won't work with | |
* safe_mode settings (Uses `shell_exec`) | |
*/ | |
function prompt_silent($prompt = "Enter Password:") { | |
if (preg_match('/^win/i', PHP_OS)) { | |
$vbscript = sys_get_temp_dir() . 'prompt_password.vbs'; | |
file_put_contents( |
This file contains hidden or 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
source /etc/apache2/envvars | |
/usr/sbin/apache2ctl -S |
This file contains hidden or 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
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | grep -v "ls" | grep -v "cd" | grep -v "exit" | column -c3 -s " " -t | sort -nr | nl | head -n10 |