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/perl | |
use warnings; | |
use strict; | |
my $create_table = 0; | |
sub key { | |
my ($unique,$key,$name,$cols) = @_; | |
$name = "`$name`" if defined $name; | |
return " $unique$key $name (" . join(',', map { |
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 perl | |
# rssfs.pl | |
use strict; | |
use warnings; | |
use Date::Parse; | |
use Fuse; | |
use HTML::FormatText::WithLinks; |
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
// | |
// first OpenVG program | |
// Anthony Starks (ajstarks@gmail.com) | |
// | |
// | |
package main | |
import ( | |
"fmt" | |
"github.com/ajstarks/openvg" |
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/python | |
import os | |
import sys | |
import time | |
from datetime import datetime,timedelta | |
import subprocess | |
from github import Github | |
PROXY = "http://192.168.1.101:7071" | |
USER_TOKEN = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" |
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/perl | |
# Start this on a server someplace with tcpbench | |
# Start tcpbench -s on a machine that is the remote IP you are connecting the the web from | |
# Browse to the page. | |
use Mojolicious::Lite; | |
use Mojo::IOLoop; | |
use Mojo::IOLoop::Stream; | |
# Template with browser-side code | |
get '/' => sub { |
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
use warnings; | |
use Getopt::Std; | |
getopt('xytGgwsf',\%opts); | |
# pcm file = $opts{f} | |
# samples per pixel x | |
$xscale = $opts{x} // 1200; |
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/sh -xe | |
# Generate QR code for WIFI network | |
test -z "$1" && echo -n "ssid: " && read ssid || ssid=$1 | |
test -z "$2" && echo -n "password: " && read pass || pass=$2 | |
qrencode -o /tmp/qr-${ssid}.png "WIFI:S:$ssid;T:WPA;P:$pass;" ; qiv -m /tmp/qr-${ssid}.png |
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
# sg_raw -r 525 /dev/sg2 f0 04 00 00 00 00 00 00 00 00 00 01 | |
>>> transport error: Host_status=0x03 [DID_TIME_OUT] | |
Driver_status=0x00 [DRIVER_OK, SUGGEST_OK] | |
SCSI Status: Good | |
Received 525 bytes of data: | |
00 02 00 43 30 4b 40 02 c0 17 22 22 30 4b 38 02 c0 ..C0K@...""0K8.. | |
10 1a 22 22 30 4b 30 02 c0 1d 22 22 30 4b 29 02 c0 .""0K0...""0K).. |
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 perl | |
# ./mojo_and_mqtt.pl daemon | |
use Mojolicious::Lite; | |
use EV; | |
use AnyEvent; | |
use AnyEvent::MQTT; | |
my $mqtt = AnyEvent::MQTT->new; |
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 python | |
#Connecting to: 08:7C:BE:8F:3C:FB, address type: public | |
#Service <uuid=Generic Attribute handleStart=12 handleEnd=15> : | |
# Characteristic <Service Changed>, hnd=0xd, supports READ INDICATE | |
# -> '\x01\x00\xff\xff' | |
#Service <uuid=Generic Access handleStart=1 handleEnd=11> : | |
# Characteristic <Device Name>, hnd=0x2, supports READ WRITE | |
# -> 'Quintic BLE' | |
# Characteristic <Appearance>, hnd=0x4, supports READ |