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 | |
// Config | |
$forbiden_functions = array('escapeshellarg', 'escapeshellcmd', 'exec', 'link', 'passthru', 'pcntl_exec', 'popen', 'proc_close', 'proc_get_status', 'proc_nice', 'proc_open', 'proc_terminate', 'symlink', 'shell_exec','system'); | |
$must_functions = array( 'base64_decode', 'fpassthru', 'ini_set', 'php_uname'); | |
// Start | |
$disabled_functions = array_map("trim", explode(",",@ini_get("disable_functions"))); | |
$issues = array(); |
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 | |
/* | |
--------------------------- | |
Proxy Block Script by Gomah | |
--------------------------- | |
*/ | |
function check_proxy() | |
{ |
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
// Variables dc (http://nodejs.org/api/) | |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs"), | |
port = process.argv[2] || 1337, // Array ex -> http://nodejs.org/docs/latest/api/process.html#process_process_argv | |
mimeTypes = { | |
// Basic mimes | |
'asc' : 'text/plain', |
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
gconftool-2 --set /apps/gnome-terminal/profiles/Default/foreground_color --type string "#86799A" | |
gconftool-2 --set /apps/gnome-terminal/profiles/Default/background_color --type string "#1B1B23" | |
gconftool-2 --set /apps/gnome-terminal/profiles/Default/bold_color --type string "#A062EA" | |
gconftool-2 --set /apps/gnome-terminal/profiles/Default/palette --type string "#000000:#AF425B:#37A315:#AC5B41:#554D9A:#6C3BA1:#808080:#87799C:#5C3125:#FF6387:#28E51F:#F08061:#8579ED:#A05DEE:#EAEAEA:#BFA3FF" |
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
/** | |
* List of all ISO 3166-1 countries | |
* NOTE: https://www.iso.org/obp/ui/#search | |
*/ | |
export default [ | |
{ | |
name: 'Afghanistan', | |
code: 'AF', | |
}, |
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
const props = { | |
address: { | |
show: false, | |
}, | |
}; | |
const field = { | |
touch: 'address', | |
}; |
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
[user] | |
email = [email protected] | |
name = Gomah | |
[alias] | |
loggy = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' | |
prune = fetch --prune | |
stash-all = stash save --include-untracked | |
undo = reset --soft HEAD^ |
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
# CLIENT | |
[client] | |
port = 3306 | |
socket = /var/run/mysqld/mysqld.sock | |
# MYSQL SAFE | |
[mysqld_safe] | |
pid-file = /var/run/mysqld/mysqld.pid |
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
import tinify from 'tinify'; | |
import walk from 'walk'; | |
import path from 'path'; | |
tinify.key = ''; | |
const dir = path.join(__dirname, '../src/assets'); | |
const files = []; | |
const walker = walk.walk(dir, { followLinks: false }); |
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
const whitelist = ['chrome', 'crios', 'firefox', 'fxios', 'googlebot']; | |
const isSupportedBrowser = uas => { | |
if (uas && Array.isArray(uas) && uas.length > 0) { | |
return uas.some(ua => | |
whitelist.some(w => ua.value.toLowerCase().includes(w)) | |
); | |
} | |
return false; | |
}; |
OlderNewer