Instantly share code, notes, and snippets.


This Gist contains some scripts for Tinc, in order to configure the routing tables for a remote subnet on Windows (ie. if a remote system wants to expose an entire subnet over the VPN). Tinc does not configure the routing tables by default, which is why these scripts are needed. See the mailing list thread here:

Place the files in the Tinc network directory (eg. C:\Program Files\Tinc\netname\) and change $interface in functions.ps1 to match the name of the Tinc interface configured in tinc.conf

View CaltrainData.js
* Generated by scripts/shuttle/update_caltrain.php
* @providesModule CaltrainData
* @flow
* @nolint
* @generated SignedSource<<6cea6867bed0b62ab67bcb5e8774217a>>
module.exports = {
View gist:8bd89b7997274066b71caa5c8d5ce1e4
%F{cyan}%T% %F{white}%n%F{magenta}@%F{white}%m $fg_bold[green]${PWD/$HOME/~}%b%F{064} $(_dotfiles_scm_info)
%{$fg_bold[yellow]%}%% %{$reset_color%}'
View gist:d12f9170db16f36183127657c16d61fd
# Handle requests for files that could be screenshots.
# Try files before passing to ASP.NET
location ~ "^/\d{4}/\d{2}/.+\.(png|jpg|jpeg|gif|mp4)$" {
alias /var/www/;
try_files$uri$uri @aspnet;
View gist:d84b39e8a260ee2a7d627751d015181b
# Without Language
/ /en/ 302 Language=en
/ /en/ 302 Language=en-us
/ /en/ 302 Language=en-au
/ /en/ 302 Language=en-nz
/ /en/ 302 Language=en-za
/ /en/ 302 Language=en-bz
/ /en/ 302 Language=en-tt
/ /fr/ 302 Language=fr
/ /fr/ 302 Language=fr-be
View gist:a4efd1d55ef37239e0fde397b62153bf
javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart
at org.kohsuke.stapler.Stapler.tryInvoke(
at org.kohsuke.stapler.Stapler.invoke(
at org.kohsuke.stapler.MetaClass$3.doDispatch(
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(
at org.kohsuke.stapler.Stapler.tryInvoke(
at org.kohsuke.stapler.Stapler.invoke(
at org.kohsuke.stapler.MetaClass$5.doDispatch(
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(
at org.kohsuke.stapler.Stapler.tryInvoke(
View gist:a47a1ca02e708fb016ecaaade982a3ba
Geekbench 4.0.1 Tryout :
Geekbench 4 is in tryout mode.
Geekbench 4 requires an active Internet connection when in tryout mode, and
automatically uploads test results to the Geekbench Browser. Other features
are unavailable in tryout mode.
Buy a Geekbench 4 license to enable offline use and remove the limitations of
tryout mode.
View blah.js
var first = new sourceMap.SourceMapConsumer(input);
var generator = new sourceMap.SourceMapGenerator({
file: first.file,
first.eachMapping(function(mapping) {
generated: {
column: mapping.generatedColumn,
View gist:d2fdd07df075f5e5353b
40: if (!hold) run(param);
^^^^^^^^^^ function call
40: if (!hold) run(param);
^^^^^ array literal. This type is incompatible with
19: function run(code /*: string*/) /*: any*/ {
^^^^^^ string
62: run(param, index);
View gist:bdcfd57b9915bade7d2a
Process: Atom [19842]
Path: /Applications/
Identifier: com.github.atom
Version: 1.1.0 (1.1.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Atom [19842]
User ID: 215897963
Date/Time: 2015-11-02 11:32:50.249 -0800