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
| """ | |
| BOSH Client | |
| ----------- | |
| Quite simple BOSH client used by Django-XMPPAuth | |
| For now, it only supports the DIGEST-MD5 authentication method. | |
| """ | |
| import httplib, sys, random |
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/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # This is how I used it: | |
| # $ cat ~/.bash_history | bash-history-to-zsh-history >> ~/.zsh_history | |
| import sys | |
| def main(): |
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/ruby | |
| =begin | |
| Usage: rtftomarkdown.rb FILENAME.rtf | |
| Uses textutil, available on Mac only (installed by default) | |
| Outputs to STDOUT | |
| Notes: | |
| Links are replaced with Markdown references (duplicate links combined). |
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 | |
| import mosquitto | |
| import textwrap | |
| def on_message(mosq, obj, msg): | |
| for s in textwrap.wrap(msg.payload, width=32): | |
| print(s) | |
| mqttc = mosquitto.Mosquitto() |
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
| while (<>) | |
| { | |
| chomp; | |
| $line = $_; | |
| while (length($line) > 32) | |
| { | |
| $bit = substr($line,0,32); | |
| $space = rindex($bit," "); | |
| if ($space == -1) |
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
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger ([email protected]) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
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
| import java.io.*; | |
| import java.nio.file.*; | |
| import java.security.*; | |
| import java.security.cert.*; | |
| import javax.net.ssl.*; | |
| import org.bouncycastle.jce.provider.*; | |
| import org.bouncycastle.openssl.*; | |
| public class SslUtil |
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
| # http://stedolan.github.com/jq/ | |
| $ brew install jq | |
| $ curl https://api.github.com/repos/rails/rails/commits | jq '.[].sha' | |
| "abb38feac84da59f6686d9abcce61d2a9a64efa9" | |
| "61425f2c6d14fe7151b09ffe5a5353924582e5b0" | |
| "03ef833b804fe17ff834ac957a300d45bbb24fab" | |
| "ce60672342f8da447d24d25f8c0f2049fc81c0c8" | |
| "e492c446d520e8941624564b157b297cfd0aeaa9" | |
| "bba8fc4294ca7f7d90c3e64e7fea059b17caef5c" |
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 | |
| # | |
| # MangroveMike | |
| # | |
| # Read the local MQTT channels and publish to my COSM channels | |
| # | |
| # | |
| # Based upon great code from: | |
| # Andy Piper |
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/php | |
| <?php | |
| date_default_timezone_set('UTC'); | |
| /** | |
| * oAuth settings from http://dev.netatmo.com/dev/listapps | |
| */ | |
| define('APP_ID', ''); | |
| define('APP_SECRET', ''); | |
| define('USERNAME', ''); | |
| define('PASSWORD', ''); |