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
# based on the import script by icebreaker, which is based on mojombo's | |
# https://github.com/mojombo/jekyll/blob/master/lib/jekyll/migrators/wordpress.rb | |
# https://gist.github.com/303570 | |
# edited to rewrite image URLs to use my CloudFront URL | |
require 'rubygems' | |
require 'sequel' | |
require 'fileutils' | |
# $ export DB=my_wpdb |
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
#!/bin/bash | |
# Simple script to ping and then atftp a firmware image | |
# Works on my machine and an ASUS WL-500g series router | |
# Usage: ./ping_atftp 192.168.1.1 openwrt-brcm47xx-squashfs.trx | |
EXPECTED_ARGS=2 | |
if [ $# -ne $EXPECTED_ARGS ]; then | |
echo "Usage: `basename $0` ip-addr firmware-image" | |
exit 1; | |
fi |
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" standalone="no"?> | |
<!DOCTYPE isopackager SYSTEM "genericpackager.dtd"> | |
<!-- NETS Single Message field descriptions for GenericPackager --> | |
<isopackager> | |
<isofield | |
id="0" | |
length="4" | |
name="MESSAGE TYPE INDICATOR" |
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
#!/bin/bash | |
# Crontab | |
# # m h dom mon dow command | |
# */1 * * * * /home/raspberrypi/SPIII-Current-Cost.sh | |
function update { | |
data=`curl -s --request GET --header "X-ApiKey: <api-key>" \ | |
http://api.cosm.com/v2/feeds/<feed-id>.csv | awk -F "\"*,\"*" '{print "el-"$1":"$3}' | tr '\n' ','` |
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
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d @json.txt https://pay.jumio.com/api/netverify/v1/performNetverify |
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
[ 0.000000] Initializing cgroup subsys cpuset | |
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Linux version 3.5.0-17-generic (buildd@allspice) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) ) #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 (Ubuntu 3.5.0-17.28-generic 3.5.5) | |
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.5.0-17-generic root=UUID=b4054db7-5b94-4218-a01d-9938f4255bf6 ro quiet splash | |
[ 0.000000] KERNEL supported cpus: | |
[ 0.000000] Intel GenuineIntel | |
[ 0.000000] AMD AuthenticAMD | |
[ 0.000000] Centaur CentaurHauls | |
[ 0.000000] e820: BIOS-provided physical RAM map: | |
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable |
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
processor : 0 | |
vendor_id : AuthenticAMD | |
cpu family : 17 | |
model : 3 | |
model name : AMD Athlon(tm) X2 Dual-Core QL-64 | |
stepping : 1 | |
microcode : 0x2000032 | |
cpu MHz : 1050.000 | |
cache size : 512 KB | |
physical id : 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
<?xml version="1.0" encoding="UTF-8"?> | |
<ThreeDSecure> | |
<Message id="999"> | |
<VEReq> | |
<version>1.0.2</version> | |
<pan>4444333322221111</pan> | |
<Merchant> | |
<acqBIN>411111</acqBIN> | |
<merID>99000001</merID> | |
<password>99000001</password> |
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"?> | |
<ThreeDSecure> | |
<Message id="999"> | |
<CRReq> | |
<version>1.0.1</version> | |
<pan>4444333322221111</pan> | |
<Merchant> | |
<acqBIN>411111</acqBIN> | |
<merID>99000001</merID> | |
<!--<password>99000001</password>--> |
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
source :rubygems | |
gem 'rack-contrib' | |
gem 'thin' | |
gem 'rack-ssl-enforcer' |
OlderNewer