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/bash | |
### EDIT THESE LINES ONLY | |
RAID_NAME="md0" | |
# devices seperated by spaces i.e. "a b c d..." between "(" and ")" | |
RAID_DRIVES=(b c) | |
# this should be changed to match above line | |
blockdev --setra 16384 /dev/sd[bc] | |
SPEED_MIN=50000 | |
SPEED_MAX=200000 | |
### DO NOT EDIT THE LINES BELOW |
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) ] |
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
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
<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
<?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
<!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 | |
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
<?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 | |
/** | |
* Converts text to png | |
* | |
* @author Kevin Andrews <[email protected]> | |
*/ | |
class TextToPng | |
{ | |
protected $str = ''; |