I hereby claim:
- I am PHLAK on github.
- I am ChrisKankiewicz (https://keybase.io/ChrisKankiewicz) on keybase.
- I have a public key whose fingerprint is 7C25 1D83 939B 1898 6DD6 7F0A E008 E594 373D 7E9D
To claim this, I am signing this object:
! Set key codes | |
keycode 37 = Control_L | |
keycode 105 = Control_R | |
keycode 64 = Super_L | |
keycode 108 = Super_R | |
keycode 133 = Alt_L | |
keycode 134 = Alt_R | |
keycode 191 = Print | |
! Clear key modifier mappings |
#!/bin/bash | |
DAYS=5 | |
# Calculate the threshold value | |
THRESHOLD=$(($DAYS * 24 * 60 * 60)) | |
# Set current time | |
TIMESTAMP=$(date +%s) |
#!/usr/bin/php -q | |
<?php | |
// Disable errors | |
error_reporting(0); | |
foreach ($argv as $user) { | |
if ($user !== $argv[0]) { |
<?php | |
/** | |
* Example PHP singleton class for reference. | |
* For the record, singletons are evil: | |
* http://stackoverflow.com/a/138012/27025 | |
*/ | |
class Singleton { | |
/** |
<?php | |
// Read file contents to string | |
$doc = file_get_contents('secret-doc.txt'); | |
// Run the regex on the string | |
preg_match_all('/\(?[0-9]{3}\)?[- ]?[0-9]{3}[-\ ]?[0-9]{4}/', $doc, $matches); | |
// Print out an array of matches | |
print_r($matches); die(); |
<?php | |
function doSomeShit($foo, $bar, $baz) { | |
// Do some shit... | |
} | |
$function = new ReflectionFunction('doSomeShit'); | |
foreach ($function->getParameters() as $parameter) { |
server { | |
root /var/www/example; | |
server_name example.com www.example.com; | |
location / { | |
index index.php index.html index.htm; | |
try_files $uri $uri/ /index.php; | |
} |
#!/bin/bash | |
## Set the url | |
if [[ "$1" == "google" ]]; then | |
URL="ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js" | |
elif [[ "$1" == "jquery" ]]; then | |
URL="code.jquery.com/jquery-2.0.3.min.js" |
#!/bin/bash | |
## Script start time | |
START=$(date +%s) | |
## Total run time | |
DURRATION=$((60 * 60 * 24)) | |
## Total running time | |
UPTIME=$(($(date +%s) - $START)) |
I hereby claim:
To claim this, I am signing this object: