Skip to content

Instantly share code, notes, and snippets.

View danguita's full-sized avatar

David Anguita danguita

View GitHub Profile
@danguita
danguita / myweechat.md
Created January 29, 2017 13:47 — forked from pascalpoitras/config.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf

@danguita
danguita / docker-machine-ssh-tunneling.md
Last active June 26, 2020 16:43
Docker Machine SSH tunneling

As described on the Docker Machine SSH reference, the docker-machine CLI invokes the standard OpenSSH client so we can use the common SSH tunneling syntax here. The following command will forward port 3000 from the default machine to localhost on your host computer's loopback interface. Using 0.0.0.0 as bind_address will make it bind to all interfaces:

$ docker-machine ssh default -L 0.0.0.0:3000:localhost:3000

So, the container running at machine's port 3000 can be reached through localhost:3000 or any of your interfaces' IP (i.e. 192.168.1.10:3000). That'd be useful to access your containerized services from other devices in your LAN.

@danguita

@danguita
danguita / calendar.lotr
Created July 25, 2015 11:23
/usr/share/calendar/calendar.lotr
/*
* Lord Of The Rings
*
* $FreeBSD: src/usr.bin/calendar/calendars/calendar.lotr,v 1.2 2003/10/09 00:31:48 grog Exp $
*/
#ifndef _calendar_lotr_
#define _calendar_lotr_
01/05 Fellowship enters Moria
You need a passphrase to unlock the secret key for
user: "keybase.io/danguita <danguita@keybase.io>"
4096-bit RSA key, ID B230171421E2D6FE, created 2014-10-08
Please publicly post the following Gist, and name it keybase.md:
### Keybase proof
I hereby claim:
@danguita
danguita / osx-development-setup.md
Last active June 2, 2016 13:37
Set up your shiny OSX for development
# this can be any application server, not just Unicorn/Rainbows!
upstream redmine_unicorn {
# fail_timeout=0 means we always retry an upstream even if it failed
# to return a good HTTP response (in case the Unicorn master nukes a
# single worker for timing out).
# for UNIX domain socket setups:
server unix:/home/service/shared/socket/redmine/unicorn.sock fail_timeout=0;
# for TCP setups, point these to your backend servers
@danguita
danguita / redmine-unicorn-apache
Last active February 5, 2016 21:23
Apache VirtualHost config with Unicorn workers proxy
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
ServerName redmine.yourdomain.com
DocumentRoot /home/service/apps/redmine/public
RewriteEngine On
<Proxy balancer://unicornservers>
@danguita
danguita / microsoft-ie-ova-images
Created February 24, 2013 17:11
Microsoft IE OVA images for VirtualBox (OSX)
# Microsoft IE OVA images from http://www.modern.ie/en-us/virtualization-tools
# VirtualBox for Mac:
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE6_WinXP.ova.zip
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE7_Vista.ova.zip
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_Win7.zip
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE9_Win7.zip
http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8.ova.zip