Skip to content

Instantly share code, notes, and snippets.

@jpmens
jpmens / ca-bundle.pem
Last active September 8, 2015 12:34 — forked from cunnie/ca-bundle.pem
*.sslip.io SSL key, certificate, and CA chain (ca-bundle)
-----BEGIN CERTIFICATE-----
MIIGCDCCA/CgAwIBAgIQKy5u6tl1NmwUim7bo3yMBzANBgkqhkiG9w0BAQwFADCB
hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNV
BAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTQwMjEy
MDAwMDAwWhcNMjkwMjExMjM1OTU5WjCBkDELMAkGA1UEBhMCR0IxGzAZBgNVBAgT
EkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR
Q09NT0RPIENBIExpbWl0ZWQxNjA0BgNVBAMTLUNPTU9ETyBSU0EgRG9tYWluIFZh
bGlkYXRpb24gU2VjdXJlIFNlcnZlciBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBAI7CAhnhoFmk6zg1jSz9AdDTScBkxwtiBUUWOqigwAwCfx3M28Sh
use Irssi;
use POSIX;
use JSON;
use vars qw($IRSSI);
%IRSSI = (
name => "awayforward",
license => "Public Domain",
);
/** \mainpage
*
* __NaCl__ (pronounced _salt_) is a new easy-to-use high-speed
* software library for network communication, encryption, decryption,
* signatures, etc. NaCl's goal is to provide all of the core
* operations needed to build higher-level cryptographic tools.
*
* __Sodium__ is a portable, cross-compilable, installable,
* packageable, API-compatible version of NaCl.
*
@jpmens
jpmens / morse.ino
Created December 12, 2013 14:21 — forked from andypiper/morse.ino
// Morse Code - USE MQTT!
// based on a project from 30 Arduino Projects for the Evil Genius
// thanks to Simon Monk
// Andy Piper @andypiper, Nov 2013
int ledPin = 12;
char* letters[] = {
".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", // A-I
porkrevenge(~/build/fpm) % git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
porkrevenge(~/build/fpm) % tail -2 ~/.gitconfig
[remote "origin"]
fetch = +refs/pull/*/head:refs/remotes/origin/pull/*
@jpmens
jpmens / MANIFEST.in
Last active February 24, 2024 20:15 — forked from karlp/MANIFEST.in
Including git version in setup.py files. (Requires at least _one_ tag in the repo) Normally used to make things like, "python setup.py sdist" give you a predictable name for files. Normally used with tags on the repo like 0.1 or 2.3.0 You should add RELEASE-VERSION to MANIFEST.in so that end users of the tarball can use this too.
include RELEASE-VERSION
include version.py
# Anything else you normally use
1-tr-18su-ka-8dow-56-oo9-13swx-r-k-ife-0nj-rnq-ihb-dd-p-1-0-z-a.info.
292fu2013-1-2-3-htt-4t3l60-zqn673-w9gp7kip0422wemrzsftm-htm-com.info.
aljumahiriyahalarabiyahallibiyahashshabiyahalishtirakiyahaluzma.info.
anderson-piedmont-spartanburg-greenville-easley-spine-pain-care.info.
associationfrancaisedesdirecteursdelaphotographiedelatelevision.info.
audio-player-zawqkerrhfoepdnmvbdkslahgjvklahjkfqqqojcgrtsksmcls.info.
ausencosandwellascentisaaxwaynegossruddswanheinercrimemellifont.info.
camp-the-lycian-way-camps-the-lycian-way-camping-lycian-way-map.info.
camp-the-lycian-way-turkey-camps-the-lycian-way-turkey-camp-map.info.
cassock-robe-cassock-robes-cassock-attire-apparel-garments-gown.info.
#!/usr/bin/python
from pylcdsysinfo import BackgroundColours, TextColours, TextAlignment, TextLines, LCDSysInfo
import mosquitto
import textwrap
import sys
from time import sleep
def on_message(mosq, obj, msg):
lines = textwrap.wrap(msg.payload, width=20)
CREATE EXTENSION IF NOT EXISTS plpython2u;
CREATE OR REPLACE FUNCTION redis_publish_trigger()
RETURNS trigger
AS $$
import json
db = SD.get('redis')
if not db:
import redis
db = redis.Redis()
@jpmens
jpmens / utf8.py
Created March 17, 2013 18:05 — forked from ralight/utf8.py
#!/usr/bin/python
# vim: set fileencoding=utf8 :
import mosquitto
import sys
reload(sys)
sys.setdefaultencoding('utf8')
def on_message(mosq, obj, msg):
print(msg.topic + " : " + msg.payload)