Skip to content

Instantly share code, notes, and snippets.

Why does GitHub need statuses?

Alice wheresalice

Why does GitHub need statuses?
View GitHub Profile
aymericbeaumet /
Last active May 19, 2022
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to:{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
View rake.go
package cmd
import (
func init() {
shavenwarthog /
Created Nov 27, 2011 — forked from wheresalice/
Python DNS server with Redis backend
#!/usr/bin/env python
# A naive dns server with a Redis backend
# Set keys in Redis you want to be authoritative for (set
# Tip: Use Redis's ttl functions to have temporary names
# Currently only does A records, feel free to fix that
# Licensed under the PSF License
# Thanks to:
# Author: @Kaerast <>
cpatni / app.rb
Created Nov 21, 2011
unique calculation using redis
View app.rb
require 'sinatra'
require 'redis'
require 'json'
require 'date'
class String
def &(str)
result = ''
pirj / ability.rb
Created Jul 17, 2011
Padrino and CanCan
View ability.rb
# include this in app file
# this is for Role Based Access Controle, can be much shorter
class Ability
include CanCan::Ability
def initialize account
@abilities ||= {}
allow [:any, :manager, :manufacturer, :admin] do
Overbryd /
Created Jun 22, 2011
Hacking Club Mate "imatate"

Hacking Club Mate "imatate"

Read about the end result here

Join me when I start brewing my first batch of Club Mate. Inspired by a podcast from chaos radio express on the topic "Hackerbrausen" (Hacker's soda, listen here) I want to try this by myself.

So far I have bought all the necessary ingrediends and tools to get started. And with the help from Jan (@janl) I can even carbonate the end result :)

When? Where?

View random-maze.rb
class Map
def initialize width, height
@values ={{ nil } }
def [](x, y)
def []=(x, y, value)