Skip to content

Instantly share code, notes, and snippets.

View eminence's full-sized avatar
🏠
Distracted. Ping me again if I've forgotten about you

Andrew Chin eminence

🏠
Distracted. Ping me again if I've forgotten about you
  • Providence, RI
  • 21:56 (UTC -04:00)
View GitHub Profile
@eminence
eminence / 001.md
Last active March 26, 2021 05:05
Runtime errors from async rust

Using tokio 1.0 with a library that requires something older than 1.0

Dependencies:

[dependencies]
tokio-tungstenite = "0.12.0"
tokio = { version = "1", features = ["rt", "full"] }
Ben Rudiak-Gould
unread,
Aug 13, 2001, 2:38:30 PM
to
I'm writing a utility which needs to support a third-party file format
which happens to use the PKWARE Data Compression Library for
compression. After discovering that no one knows how to decompress
this library's compressed format, I decided to try reverse-engineering
it. It turned out not to be too difficult.
A complete description of the format is below, for the edification of
#!/bin/sh
## https://gist.github.com/eminence/85961d47244a140fde89314837d0db0a
set -e
PWD=`pwd`
DD=$PWD/downloads/ # Download Directory
function download {
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: Test API
description: Test API
version: "1.0.0"
paths:
#include <stdio.h>
#include <memory.h>
#include <string.h>
#include <stdbool.h>
struct BITS8_TYPE{
unsigned b0:1;
unsigned b1:1;
unsigned b2:1;
unsigned b3:1;

Keybase proof

I hereby claim:

  • I am eminence on github.
  • I am achin (https://keybase.io/achin) on keybase.
  • I have a public key whose fingerprint is A460 06B3 6BE4 14D5 15F4 2A47 EE9F F867 6BD6 42B1

To claim this, I am signing this object:

@eminence
eminence / README.rst
Created December 19, 2012 22:58
SMoshS -- start mosh via an SMS!

SMoshS - Stop/stop mosh via SMS!

This script allows you to start/stop mosh via text messages (SMS)! It connects to the SMS network via the excellent Twilio. After you buy a phone number from Twilio, any calls or SMSs will be POSTd to the URL of your choice. This script provides a webserver that will respond to those Twilio POSTs, so simply start it up, enter the correct URL into the Twilio control panel, and you're off!