This is an example readme file to include as a 'gist module' in a git repository
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
┌─[✗]─[jlroberts@Jeffreys-Mac-Pro-3]─[~/Projects/Shred/Laravel] | |
└──╼ composer require guzzle/guzzle | |
Using version ^3.9 for guzzle/guzzle | |
./composer.json has been updated | |
Loading composer repositories with package information | |
Updating dependencies (including require-dev) | |
Your requirements could not be resolved to an installable set of packages. | |
Problem 1 | |
- Conclusion: don't install guzzle/guzzle v3.9.3 |
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
from requests import get | |
from requests.exceptions import RequestException | |
from contextlib import closing | |
from bs4 import BeautifulSoup | |
from urllib.request import urlopen | |
import urllib.request | |
import ssl | |
def simple_get(url): | |
""" |
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
public function receive() | |
{ | |
// https://developer.authorize.net/api/reference/features/webhooks.html#Event_Types_and_Payloads | |
} | |
public function createWebHook() | |
{ | |
$omh_webhook_api_endpoint = 'https://{yourserver.com}/webhooks/receive'; | |
$json = ' |
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 | |
/** | |
* Created by PhpStorm. | |
* User: jlroberts | |
* Date: 10/18/14 | |
* Time: 12:42 PM | |
*/ | |
define('JLR_ROOT', '/vagrant/web'); | |
$siteName = "Jeff's Site"; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.0"> | |
<Document> | |
<Placemark> | |
<name>2014-03-05T09:56:58.630Z</name> | |
<Point><coordinates>169.8222,-14.7347,0</coordinates></Point> | |
</Placemark> | |
<Placemark> | |
<name>2014-03-02T20:11:22.640Z</name> | |
<Point><coordinates>127.3354,27.4052,0</coordinates></Point> |
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
[ /jlr/sites/legophp.com/framework ] | |
[ jlroberts@iMac ] $ git remote set-url --add --push origin ssh://[email protected]/jeffreylroberts/legophp-com-framework.git | |
[ /jlr/sites/legophp.com/framework ] | |
[ jlroberts@iMac ] $ git remote set-url --add --push origin [email protected]:LegoPHP/LegoPHP.git | |
[ /jlr/sites/legophp.com/framework ] | |
[ jlroberts@iMac ] $ git remote -v | |
github [email protected]:LegoPHP/LegoPHP.git (fetch) | |
github [email protected]:LegoPHP/LegoPHP.git (push) | |
origin ssh://[email protected]/jeffreylroberts/legophp-com-framework.git (fetch) | |
origin ssh://[email protected]/jeffreylroberts/legophp-com-framework.git (push) |
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
'Twas the night before Christmas, when all through the racks | |
Not a server was alerting, not even Compaqs. | |
The backups were written to tapes with care | |
In hopes that later the data would be there. | |
The machines were nestled all snug in their sleds | |
Whilst visions of vengeance danced in their heads; | |
And oncall in his three-wolf and I in my rack. | |
Had just settled down for some syn and some ack. |
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
#!/usr/bin/env bash | |
# repository | |
cd /tmp | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -Uvh epel-release-6-8.noarch.rpm | |
# system update | |
yum -y update | |
yum -y groupinstall "Development Tools" | |
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick |
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
#get root access | |
$su - | |
$ cd /tmp | |
#Remove old Ruby | |
$ yum remove ruby | |
# Install dependencies | |
$ yum groupinstall "Development Tools" | |
$ yum install zlib zlib-devel |
NewerOlder