Skip to content

Instantly share code, notes, and snippets.

Coding with Rust

Stephen Blum stephenlb

Coding with Rust
Block or report user

Report or block stephenlb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
parasyte /
Created Jun 4, 2019
Nginx bug fixes 1.11.2 ~ 1.6.0

1.11.3 (26 Jul 2016)

*) Bugfix: socket leak when using HTTP/2.

1.11.5 (11 Oct 2016)

*) Bugfix: in the $realip_remote_addr variable.

ajb413 / index.js
Created May 1, 2018
audio lext test
View index.js
var AWS = require('aws-sdk');
accessKeyId: "__id__",
secretAccessKey: "__secret__",
var lexruntime = new AWS.LexRuntime({region: 'us-east-1'});
stephenlb / blocks-message-copy.js
Last active Feb 7, 2017
PubNub Message Copy - - Copy a Message between PubNub Keys 🎉
View blocks-message-copy.js
export default (request) => {
const xhr = require('xhr')
const pub_key = 'demo' // YOUR 2nd PUBLISH KEY
const sub_key = 'demo' // YOUR 2nd SUBSCRIBE KEY
const chncopy = request.channels[0]
const msgcopy = JSON.stringify(request.message)
const url = "" + [
pub_key, sub_key, 0, chncopy, 0, msgcopy
erichiggins /
Last active Apr 26, 2019
Efficiently page over a Query to fetch all entities from the Google App Engine Datastore.
Functions are provided for both the DB and NDB Datastore APIs.
def db_fetch_all(query, limit=100, cursor=None):
stephenlb /
Last active Feb 6, 2019
DIY How to make your own HD Animated GIF Generator

HD Animated GIF Generator

You can make your own HD animated GIF generator.
Follow along with these commands to get started.

HD Animated GIF Generator

git clone git://
cd ffmpeg
stephenlb /
Last active Jul 10, 2019
Bash and Shell Command PubNub Subscribe in One Line - Basic TCP Subscribe Calls
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## URL Variables
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Demo Stream
while true; do (printf 'GET HTTP/1.1\r\nHost: pubnub\r\n\r\n'; sleep 5) | nc 80; done
krhoyt / pubnub.ino
Created Dec 2, 2014
Spark Core to PubNub
View pubnub.ino
// Libraries
#include <math.h>
// Literals
// Constants
// Thermistor computation
const float ANALOG_STEPS = 4095.0;
const float B_THERM = 3977.0;
stephenlb / calculate-payload-size.js
Last active Jan 2, 2016
Calculating a PubNub Message Payload Size. This is necessary to prevent yourself from getting a "Message Too Large" gateway response.
View calculate-payload-size.js
// Calculating a PubNub Message Payload Size.
function calculate_payload_size( channel, message ) {
return encodeURIComponent( channel + JSON.stringify(message) ).length + 97;
stephenlb /
Last active Jan 1, 2016
NEW UPDATE: <-- PubNub Access Manager (PAM) Python Full Library for Granting and Revoking Access in Real-Time on the PubNub Real-Time Network.
import pam
## PubNub Access Manager (PAM)
manager = pam.access(
## Grant User Access
stephenlb /
Last active Oct 3, 2016
PubNub History API V2

PubNub History API V2

URL Parameters:
start     (time token): Beginning of a timeline slice (exclusive)
You can’t perform that action at this time.