Skip to content

Instantly share code, notes, and snippets.

---
:date: '2020-03-20'
:data:
- - Van Horn, Texas
- https://www.google.com/maps/@30.8153608,-104.7534251,3a,40.9y,153.38h,85.22t/data=!3m6!1e1!3m4!1sCr4HUuOZy0VQm0F4yUXkqQ!2e0!7i13312!8i6656
- - Chernobyl
- https://www.google.com/maps/@51.4065867,30.0578883,2a,75y,334.32h,85.43t/data=!3m6!1e1!3m4!1satrFki5QB3R5d6ycTY_ZoQ!2e0!7i13312!8i6656
- - Museu Coleção Berardo, Lisabon
- https://www.google.com/maps/@38.6952517,-9.2091074,2a,75y,75.37h,88.05t/data=!3m7!1e1!3m5!1sZCo-agKPo4YoOkfhgdB43A!2e0!6s%2F%2Fgeo1.ggpht.com%2Fcbk%3Fpanoid%3DZCo-agKPo4YoOkfhgdB43A%26output%3Dthumbnail%26cb_client%3Dmaps_sv.tactile.gps%26thumb%3D2%26w%3D203%26h%3D100%26yaw%3D105.11702%26pitch%3D0%26thumbfov%3D100!7i13312!8i6656
- - Galleria d'Arte Moderna - Milano
alias gita="git add"
alias gitb="git branch"
alias gitc="git commit"
alias gitc-partial='git commit -p'
alias gitd="git diff"
alias gitdpm="git diff production/master..master/master"
alias gitl="git log"
alias gitm="git merge"
alias gitmmm="git merge master/master"
alias gits="git svn"
@gorenje
gorenje / Store Motion Description.md
Last active September 29, 2016 18:30
Store motion animated gif

Start screencapture in terminal, a single character will trigger a screencapture:

function _start_screencapture
{
    for n in `seq -f %03g 0 100` ; do
        if read -n 1 ; then
            screencapture -t png ~/Desktop/capture-${n}.png
            echo "Taken " ${n}
        fi
    done
@gorenje
gorenje / Impossible Mission Cheat Codes.md
Last active March 14, 2017 17:41
Impossible Mission cheat codes

Cheat notes for Impossible Mission - (Javascript version)

Start by creating a new tab and opening the console - i.e. "inspect element", then load mission impossible

Then in the console you can do a number of things:

  • Give yourself 1000 Snoozes
>>> game.snoozes = 1000
require 'rubygems'
require 'fileutils'
#require 'active_record'
#require 'sqlite3'
#require 'readline'
require 'ostruct'
#require 'ruby-prof'
require 'optparse'
require 'hpricot'
require 'addressable/uri'
@gorenje
gorenje / temp.md
Last active August 29, 2015 14:24

Woogas Office Weather - Wow!

At Wooga, we're very conscious about our work environment and the happiness of everyone working here. So when some Woogas moved to 3rd floor in winter and began to feel tired and complain of headaches, we knew something was not right.

After a bit of research, we came up with the idea that perhaps the air could a little to sticky. So we decided to start measuring the CO2 levels.

@gorenje
gorenje / timer.ino
Last active December 24, 2015 20:09
// -*- c -*-
#define MINUTES(x) x * 60L * 1000L
#define HOURS(x) x * MINUTES(60L)
/*
* Pin 10 is the light
* Pin 9 is the pump
*/
#define PUMP_PIN 9
parse_git_branch ()
{
ref=$(git symbolic-ref HEAD 2> /dev/null) || return;
local a="";
lb=${ref#refs/heads/};
local ro=$(git config --get branch.${lb}.remote || echo "origin");
local rb=$(git config --get branch.${lb}.merge);
rb=${rb#refs/heads/};
local ab=;
if [ "" != "${rb}" ]; then
## leave running
while [ 1 ] ; do curl -v "http://mops-eccrine.herokuapp.com/?campaign=FUABRpingdom&network=pingdom" 2>&1 >/dev/null | awk '/Trying/ { printf $3; } /[<] HTTP\/1.1/ { print $3 " " $4; }'; done | tee -a results.txt
## then
sort results.txt | uniq -c | grep -v "0 0"