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
## Find adapter name | |
ip addr show | |
## Replace enp0s3 with adapter name | |
"/usr/bin/php56" "-S" "$(ip -f inet addr show enp0s3 | grep -Po 'inet \K[\d.]+'):8000" "-t" "public" "server.php" |
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 | |
/** | |
* Converts text to png | |
* | |
* @author Kevin Andrews <[email protected]> | |
*/ | |
class TextToPng | |
{ | |
protected $str = ''; |
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 | |
/** | |
* Stubs for IDE auto-completion | |
* do not require or include in your project. | |
* | |
*/ | |
//dmtx | |
class dmtx |
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 | |
require_once 'vendor/autoload.php'; | |
use GuzzleHttp\HandlerStack; | |
use GuzzleHttp\Handler\CurlHandler; | |
use GuzzleHttp\Client; | |
use Concat\Http\Middleware\Logger; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>RMG Shipping V2 REST Password Generator UTF-8</title> | |
<script type="text/javascript"> | |
/* | |
* [js-sha1]{@link https://github.com/emn178/js-sha1} |
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 | |
/** app/lib/Custom/Support/MailMandrillTransport.php */ | |
namespace Custom\Support; | |
use Illuminate\Mail\Transport\MandrillTransport; | |
use Swift_Mime_Message; | |
use GuzzleHttp\Client; |
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
<style type="text/css"> | |
* { | |
border: 1px solid #f00; | |
} | |
</style> |
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
sudo pacman -S --needed base-devel git wget | |
git clone https://aur.archlinux.org/package-query.git | |
cd package-query/ | |
makepkg -si | |
cd .. | |
git clone https://aur.archlinux.org/yaourt.git | |
cd yaourt/ |
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 | |
use Illuminate\Console\Command; | |
/** | |
* Run IDE generation through artisan when on the local environment. | |
* This should only be called by composer install/update. | |
* | |
* @author Kevin Andrews <[email protected]> | |
*/ |
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
#!/usr/bin/python | |
# macgen.py script to generate a MAC address for guests on Xen | |
# | |
import random | |
# | |
def randomMAC(): | |
mac = [ 0x00, 0x16, 0x3e, | |
random.randint(0x00, 0x7f), | |
random.randint(0x00, 0xff), | |
random.randint(0x00, 0xff) ] |