Skip to content

Instantly share code, notes, and snippets.


Arno Moonen itavero

View GitHub Profile
rowan-m / gist:1026918
Created Jun 15, 2011 — forked from jedi4ever/gist:898114
update jenkins Updatecenter from CLI
View gist:1026918
$ java -jar jenkins-cli.jar -s http://localhost:9000 install-plugin findbugs
findbugs is neither a valid file, URL, nor a plugin artifact name in the update center
No update center data is retrieved yet from:
findbugs looks like a short plugin name. Did you mean 'null'?
# Specifying a full URL works!
$ java -jar jenkins-cli.jar -s http://localhost:9020 install-plugin
# Get the update center ourself
fnando / dev.conf
Created Jul 23, 2011
Nginx configuration for SSH tunnel
View dev.conf
upstream tunnel {
server {
listen 80;
location / {
proxy_set_header X-Real-IP $remote_addr;
gdamjan /
Last active Jun 24, 2022
Setup for an easy to use, simple reverse http tunnels with nginx and ssh. It's that simple there's no authentication at all. The end result, a single ssh command invocation gives you a public url for your web app hosted on your laptop.


A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.

Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).


fuzzmz /
Created May 16, 2013
Change accurev workspace location on disk

How to change the location of an AccuRev workspace on disk

Let's say that you moved your workspace from the folder in which you initially created it and now want to make AccuRev aware of the new location for the files.

In order to change the location of a workspace the following command must be used:

accurev chws -w foo_workspace -l .


wangkuiyi / pre-commit-clang-format
Last active Aug 19, 2021
Git pre-commit hook that invokes clang-format to reformat C/C++/Objective-C source code.
View pre-commit-clang-format
# git pre-commit hook that runs an clang-format stylecheck.
# Features:
# - abort commit when commit does not comply with the style guidelines
# - create a patch of the proposed style changes
# modifications for clang-format by
# This file is part of a set of unofficial pre-commit hooks available
# at github.
mondain / public-stun-list.txt
Created Feb 15, 2016
Public STUN server list
View public-stun-list.txt
popcorn245 /
Last active Mar 7, 2022
XY Color Conversion


#Conversion between RGB and xy in the CIE 1931 colorspace for hue The conversion between RGB and xy in the CIE 1931 colorspace is not something Philips invented, but we have an optimized conversion for our different light types, like hue bulbs and LivingColors. It is important to differentiate between the various light types, because they do not all support the same color gamut. For example, the hue bulbs are very good at showing nice whites, while the LivingColors are generally a bit better at colors, like green and cyan.

mlocati / win10colors.cmd
Last active Jun 20, 2022
ANSI Colors in standard Windows 10 shell
View win10colors.cmd
@echo off
call :setESC
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m
dapperfu / ZZexample
Last active May 21, 2022
Enable mdns on a FreeNAS/BSD jail.
View ZZexample
freenas2# jls
JID IP Address Hostname Path
5 - etherpad /mnt/basin/jails/etherpad
freenas2# ./ 5
Updating FreeBSD repository catalogue...
[etherpad] Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
[etherpad] Fetching packagesite.txz: 100% 6 MiB 5.9MB/s 00:01

Generating Authy passwords on other authenticators

There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the