Skip to content

Instantly share code, notes, and snippets.

party 🥳

Jason Stallings octalmage

party 🥳
View GitHub Profile
webmaster128 /
Last active Nov 10, 2021
CosmWasm patch to be released on Wednesday, November 10th

A bug in wasmvm has been discovered.


This bug

  1. can potentially crash the node,
  2. can potentially cause consensus failures.

No code path is known to the author that can cause 1 or 2, but this does not guarantee such paths do not exist.

lispc /
Last active Jan 16, 2020
IOST multiple signature
set -eu
IWALLET_CMD='iwallet --chain_id 1020 -s' # single node dev chain
function clean_account() {
darraghoriordan / swhmac.groovy
Created Sep 19, 2017
Adding custom hmac auth to swagger ui
View swhmac.groovy
(function () {
$(function () {
/*I add the ui elements I need here. I thought it would be better put them in here at runtime rather than hard code them in the index.html in case the index.html from my version of swashbuckle is made obsolete in a future version of the package. */
var hmacAuthUi =
<div class="input"><label for="input_api_username">Api Username: </label><input placeholder="Api Username" id="input_api_username" name="input_api_username" type="text" size="20"></div>
' +
<div class="input"><label for="input_api_hmackey">Api Key: </label><input placeholder="ApiKey" id="input_api_hmackey" name="input_api_hmackey" type="text" size="20"></div>
ericclemmons /
Last active Nov 22, 2021
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

 <summary>Summary Goes Here</summary>
motionharvest / js
Created May 20, 2016
Robotjs Script for moving the mouse around in a circle depending on a given degree
View js
var Mathutils = {
//not so important
normalize: function ($value, $min, $max) {
return ($value - $min) / ($max - $min);
interpolate: function ($normValue, $min, $max) {
return $min + ($max - $min) * $normValue;
gaearon / slim-redux.js
Last active Nov 27, 2021
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
View slim-redux.js
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
View spamhipchat.applescript
delay 10
repeat 100 times
activate application "HipChat"
tell application "System Events" to keystroke "(parrot) (aussieparrot)"
tell application "System Events" to key code 76
delay 30
end repeat
slogsdon / Dockerfile
Last active Nov 6, 2019
Simple Wordpress cluster backed by MySQL and a Redis object cache, all behind HAProxy
View Dockerfile
# Basic setup to copy Wordpress files,
# expected to be at '.', into the image
FROM orchardup/php5
ADD . /code
View Disable

Disable Plugins

Quickly disable all plugins in WordPress.


This plugin needs to go into the wp-content/mu-plugins/ directory. Provided you have SSH access to the server where WordPress lives, you can do this:

cd $SITE_ROOT/wp-content/mu-plugins
lukehefson /
Created Nov 27, 2013
Completely uninstall GitHub for Mac
function remove_dir () {
rm -rf "$1_"
if [ -d "$1" ]
mv "$1" "$1_"