Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄
Why does GitHub need statuses?

Alice wheresalice

🦄
Why does GitHub need statuses?
View GitHub Profile
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active May 19, 2022
[Recipe] Delete all your likes/favorites from Twitter
View delete-likes-from-twitter.md

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: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
View rake.go
package cmd
import (
"github.com/docker/go-connections/nat"
"github.com/skybet/cali"
)
func init() {
@shavenwarthog
shavenwarthog / redisdns.py
Created Nov 27, 2011 — forked from wheresalice/redisdns.py
Python DNS server with Redis backend
View redisdns.py
#!/usr/bin/env python
# A naive dns server with a Redis backend
# Set keys in Redis you want to be authoritative for (set google.com. 127.0.0.1)
# 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: http://code.activestate.com/recipes/491264-mini-fake-dns-server/
# Author: @Kaerast <alice@kaerast.info>
@cpatni
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 = ''
result.force_encoding("BINARY")
@pirj
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
Overbryd / hacking-club-mate-imatate.md
Created Jun 22, 2011
Hacking Club Mate "imatate"
View hacking-club-mate-imatate.md

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 = Array.new(width){ Array.new(height){ nil } }
end
def [](x, y)
@values[x][y]
end
def []=(x, y, value)