Skip to content

Instantly share code, notes, and snippets.

View hannahwhy's full-sized avatar

Hannah Yip hannahwhy

View GitHub Profile
@hannahwhy
hannahwhy / gist:fcbaa74fa2adaaf66b79afcde1c97034
Created December 23, 2016 09:36
MXE on MinGW-w64 5.0.0: packages I know work
- gcc
- `i686-w64-mingw32.shared`, `x86_64-w64-mingw32.shared`, `i686-w64-mingw32.static`, `x86_64-w64-mingw32.static`
- qt5
@hannahwhy
hannahwhy / gist:9c2a0f0ffa7a8db5075e58f711b5d3f0
Last active November 4, 2016 18:38
Switching pipelines to archivebot2 - https://git.io/vPFVm
# INSTRUCTIONS
First, stop your current pipelines. For new pipelines:
1. Install autossh. (Debian: apt install autossh)
archivebot2 is running on a DigitalOcean CoreOS droplet.
On DigitalOcean, CoreOS droplets will restart to apply OS updates.
To deal with these restarts, you'll need some way to bring the SSH->Redis
tunnel back up automatically. autossh is pretty good at that.
@hannahwhy
hannahwhy / firehose.sh
Last active August 29, 2015 14:19
ArchiveBot firehose view
#!/bin/sh
# assumes iocat (https://www.npmjs.com/package/iocat) is somewhere in PATH
iocat ws://dashboard.at.ninjawedding.org:4567/stream | grep -v '^>' | jq -r 'select(.url) | .job_data.ident + "\t" + (.response_code | tostring) + " " + .wget_code + " " + .url'
@hannahwhy
hannahwhy / d3.v3.min.js
Last active August 29, 2015 14:14
Tournament bracket rendering
!function(){function n(n,t){return t>n?-1:n>t?1:n>=t?0:0/0}function t(n){return null===n?0/0:+n}function e(n){return!isNaN(n)}function r(n){return{left:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)<0?r=i+1:u=i}return r},right:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)>0?u=i:r=i+1}return r}}}function u(n){return n.length}function i(n){for(var t=1;n*t%1;)t*=10;return t}function o(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function a(){this._=Object.create(null)}function c(n){return(n+="")===da||n[0]===ma?ma+n:n}function l(n){return(n+="")[0]===ma?n.slice(1):n}function s(n){return c(n)in this._}function f(n){return(n=c(n))in this._&&delete this._[n]}function h(){var n=[];for(var t in this._)n.push(l(t));return n}function g(){var n=0;for(var t in this._)++n;return n}function p(){for(var n in this._)return!1;return!0}function v(){this._=Object
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="ir_black">
<!-- This file was generated using vimColorsToQtC.pl. -->
<style name="SearchResult" foreground="#f6f3e8" />
<style name="LineNumber" foreground="#3d3d3d" />
<style name="DisabledCode" foreground="#3d3d3d" />
<style name="CurrentLineNumber" foreground="#ffff00" bold="true" />
<style name="Selection" background="#262d51" foreground="#f6f3e8" />
<style name="DillFileLine" background="#384048" foreground="#a0a8b0" />
<style name="DiffFileLine" background="#384048" foreground="#a0a8b0" />
#include <boost/intrusive/unordered_set.hpp>
#include <chrono>
#include <random>
#include <vector>
#include <iostream>
namespace bi = boost::intrusive;
struct Billboard : public bi::unordered_set_base_hook<>
{
require 'sinatra'
get '/proof*' do
status 200
'<html><body>Click it: <a href="proof/">Proof</a></body></html>'
end
diff --git a/doc/terse_options.rst b/doc/terse_options.rst
index 725ae72..b223979 100644
--- a/doc/terse_options.rst
+++ b/doc/terse_options.rst
@@ -35,6 +35,7 @@ Brief Option Overview
[--random-file FILE] [--edg-file FILE]
[--warc-file FILENAME] [--warc-append]
[--warc-header STRING] [--warc-max-size NUMBER]
+ [--move-warc-to DIR]
[--warc-cdx] [--warc-dedup FILE] [--no-warc-compression]
wpull_hook.callbacks.version = 2
(%i1) t: matrix([%t^3],[%t^2],[%t],[1])
;
[ 3 ]
[ %t ]
[ ]
[ 2 ]
(%o1) [ %t ]
[ ]
[ %t ]
[ ]