Skip to content

Instantly share code, notes, and snippets.

View matagus's full-sized avatar
🐿️
I miss the old Github activity stream

Matías Agustín Méndez matagus

🐿️
I miss the old Github activity stream
View GitHub Profile
anonymous
anonymous / gist:2886040
Created June 7, 2012 01:47
Servidores de youtube
r1.ams03s07.c.youtube.com 74.125.15.6
r2.ams03s07.c.youtube.com 74.125.15.7
r3.ams03s07.c.youtube.com 74.125.15.8
r4.ams03s07.c.youtube.com 74.125.15.9
r5.ams03s07.c.youtube.com 74.125.15.10
r6.ams03s07.c.youtube.com 74.125.15.11
r7.ams03s07.c.youtube.com 74.125.15.12
r8.ams03s07.c.youtube.com 74.125.15.13
r9.ams03s07.c.youtube.com 74.125.15.14
r10.ams03s07.c.youtube.com 74.125.15.15
@jveldboom
jveldboom / json.lua
Last active October 9, 2015 06:38
Heka JSON Decoder
require "cjson"
local dt = require "date_time"
--[[
From trink in IRC - thanks!
Example use:
[HttpListenInput]
address = "0.0.0.0:8325"
@pazguille
pazguille / Inheritance.js
Created August 27, 2012 18:52
Inheritance Patterns
/**
* Helpers
*/
function clone(obj) {
var copy = {},
prop;
for (prop in obj) {
if (hasOwn(obj, prop)) {
copy[prop] = obj[prop];
@santiycr
santiycr / Se2_Sauce_proxy.py
Created September 12, 2012 21:29
Make Browsers running in the Sauce Cloud navigate through your own HTTP proxy
#!/usr/bin/env python
#-.- coding=utf8 -.-
import unittest
from selenium import webdriver
import os
from selenium.webdriver.common.proxy import Proxy
class Selenium2OnSauce(unittest.TestCase):
@Gozala
Gozala / Functional.md
Created September 14, 2012 21:39
List of good talks / posts outlinig benefits of functional over OOP
anonymous
anonymous / delete-local-branches
Created December 13, 2012 14:36
Oneliners for deleting old merged branches
git branch --merged origin/master | grep -v '\* master' | xargs -l1 git branch -d
from django.contrib.gis.db import models
from django.contrib.auth.models import UserManager, AbstractUser
class UserManager(UserManager, models.GeoManager):
pass
class User(AbstractUser):
objects = UserManager()
@polmuz
polmuz / README
Last active December 14, 2015 04:49
Update submodules automatically after checkout when HEAD changes
Update submodules automatically after checkout
----------------------------------------------
Put the file post-checkout in .git/hooks/
Make it executable
(chmod u+x .git/hooks/post-checkout)
Never update your submodules manually again (unless something goes horribly wrong)!
@janjongboom
janjongboom / gist:5500846
Created May 2, 2013 08:08
Flashing a GeeksPhone with a newer version of Firefox OS

Here are instructions on how to flash your Geeksphone.

Prerequisites

  1. First of all you'll need to have adb and fastboot, these are included in the Android SDK
  2. If your phone can be turned on, enable 'Remote debugging' (in Settings -> Device Information -> More information -> Debugging)
    • Now see if your device is listed when you type adb devices in the terminal
    • If so: run adb reboot bootloader
  3. If your phone is bricked, load into bootloader by pressing power and volume up
  • Verify that the phone is listed when running fastboot devices
@michaelhenry
michaelhenry / celerybeat
Last active December 17, 2015 18:19
Celery deployment script
#!/bin/bash
# =========================================================
# celerybeat - Starts the Celery periodic task scheduler.
# =========================================================
#
# :Usage: /etc/init.d/celerybeat {start|stop|force-reload|restart|try-restart|status}
# :Configuration file: /etc/default/celerybeat or /etc/default/celeryd
#
# See http://docs.celeryproject.org/en/latest/tutorials/daemonizing.html#generic-init-scripts