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 | |
$cache = memcache_connect('127.0.0.1', 11211); | |
$cached = memcache_get($cache, 'flair'); | |
if ($cached == false) { | |
$account_info = self::reddit_info(); | |
$login = self::reddit_api('login', $account_info); | |
$after = ''; | |
$complete = 0; |
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 | |
class ImageController { | |
protected function selectRandom() | |
{ | |
if (Cache::has('sloths')) | |
{ | |
$sloths = Cache::get('sloths'); | |
if (count($sloths) > 1) return $sloths; | |
else | |
{ |
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 | |
#!/usr/bin/php | |
include('ganon.php'); | |
include("config.php"); | |
include("Snoopy.class.php"); | |
include("Googl.class.php"); | |
require("TimeDiff.class.php"); | |
# Constants | |
define('MAX_MATCHES', 6); |
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
# hhvm --mode daemon -vServer.Type=fastcgi -vServer.Port=9001 --config /etc/hhvm.hdf | |
PidFile = /var/run/hhvm.pid | |
ServerVariables { | |
ENVIRONMENT = DEVELOPMENT | |
} | |
Log { | |
UseLogFile = 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
{ | |
// Plugin settings | |
// Turn the debug output on/off | |
"show_debug": true, | |
// Which file types (file extensions), do you want the plugin to | |
// execute for | |
"extensions_to_execute": ["php"], |
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
#siteTable_t3_22trqo a.author[href$="/swired"]:after, | |
#siteTable_t3_22trqo a.author[href$="/MdK-"]:after, | |
#siteTable_t3_22trqo a.author[href$="/Bladeofevilsbane"]:after, | |
#siteTable_t3_22trqo a.author[href$="/Anuxinamoon"]:after, | |
#siteTable_t3_22trqo a.author[href$="/OniLolz"]:after, | |
#siteTable_t3_22trqo a.author[href$="/Zaphk"]:after, | |
#siteTable_t3_22trqo a.author[href$="/prophet9"]:after, | |
#siteTable_t3_22trqo a.author[href$="/hopgood"]:after, | |
#siteTable_t3_22trqo a.author[href$="/cottonwings"]:after, | |
#siteTable_t3_22trqo a.author[href$="/AHelenek"]:after, |
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
[ | |
{ "keys": ["ctrl+v"], "command": "paste_and_indent" }, | |
{ "keys": ["ctrl+space"], "command": "toggle_side_bar" }, | |
{ "keys": ["ctrl+shift+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, | |
{ "keys": ["ctrl+b"], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"} }, | |
] |
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
server { | |
listen *:80; | |
server_name mark.dev; | |
root /home/mark/dev/src/public; | |
index index.php; | |
location / { | |
# rewrite URL to remove trailing forward slash / | |
rewrite ^/(.*)/$ /$1 permanent; |
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 | |
// Current - non-standard code standard we use | |
public function positions() | |
{ | |
$resumes = $this->resumes(false, true); | |
foreach ($resumes as $resume) { | |
$data = json_decode($resume['data']); | |
if (isset($data->employment->entries) && count($data->employment->entries) > 0) { |
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
uname -a >> systeminfo.txt && lscpu | grep -e Architecture: -e ^CPU\(s\): -e Vendor >> systeminfo.txt && sudo lspci -k | grep VGA -A 3 >> systeminfo.txt && lspci | grep Audio >> systeminfo.txt && cat /proc/meminfo | grep MemTotal >> systeminfo.txt | cat systeminfo.txt | |
OlderNewer