Skip to content

Instantly share code, notes, and snippets.

View Thyrst's full-sized avatar

Daniel Melo Thyrst

View GitHub Profile
0xfbd6aa5500a3ccd2a8311c8f2b1827ed314481d7
0x15ca18d689442e684ba2490b4df8a8ebdf4b010a
0x33df66d9387788073bf4389d3e5efe29a30c89b9
0x74a209c88e78c1967007e3c5e38d18dcfa6eb318
0x1d842fa7b6e657ec7aa31af4d1c0d6bcd2336dfe
0x78bf491b1f54cacdc1c48dfccbc2583550eb2be8
0x95e061055af19123283de260dc323055730dc1be
0x40fd0cca4b060a9df317beec7a97a1777aeec173
0xe15ecfc8d69d291a756df25b26ba57d3253ecf4f
0xd3f2931c36eb043c8e3f0b2c7485004cb0b0e875
const forenames = ["Edna", "Randle", "Optimus", "Norman", "The", "Maximus", "Legolas", "Wednesday", "Inspector", "Inigo", "Hal", "Groot", "Gromit", "Ethan", "Red", "Walker", "Corporal", "Bane", "Woody",
"Withnail", "Roy", "Martin", "Samwise", "William", "Lisbeth", "Frank", "Donnie", "Captain", "Lord", "Tony", "Marge", "Neo", "Harry", "Sméagol", "Hans", "George", "Wolverine", "Bilbo", "King", "Ace", "Sarah",
"Katniss", "Jack", "Axel", "Amélie", "Vito", "Shaun", "Obi-Wan", "Luke", "Lester", "Rick", "Tommy", "Anton", "Amy", "Lou", "Keyser", "Ferris", "Yoda", "Walter", "Rocky", "Atticus", "Mal Reynolds", "Jules",
"Peter", "Gandalf", "Snake", "Forrest", "Patrick", "Ash", "Daniel", "Travis", "Hannibal", "Doc", "Loki", "Gustave", "Ron", "Aragorn", "Iron", "Marty", "Michael", "Darth", "Tyler", "John", "Ellen", "Han",
"James", "Indiana", "Svatopluk", "Karel Jaromír", "Karel Havlíček", "Bohumil", "Alois", "Václav Kliment", "Jan Amos", "Arnošt", "Karel Hynek", "Jan", "František", "Ladislav Mikeš", "Eduard", "Karel",
@Thyrst
Thyrst / unfollow.js
Last active March 21, 2023 20:47 — forked from JamieMason/unfollow.js.md
Unfollow everyone who doesn't follow back on twitter.com
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// https://gist.github.com/JamieMason/7580315
//
// 1. Go to https://twitter.com/YOUR_USER_NAME/following
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
//
// Last Updated: 21 March 2023
(() => {
const followButtonQuery = '[data-testid$="-unfollow"]';

Keybase proof

I hereby claim:

  • I am thyrst on github.
  • I am thyrst (https://keybase.io/thyrst) on keybase.
  • I have a public key ASAOnZVEDs-mmqtTyZxHbO8MStipDmcX4mDA3wCMJ79ExAo

To claim this, I am signing this object:

@Thyrst
Thyrst / diff_mixin.py
Created May 1, 2020 12:17
Mixin for watching field changes on Django models
class DiffMixin:
"""
Mixin for watching field changes
Loads default/original attributes defined in the `watched_fields` list into the `originals` dict.
Then we can check if a field has changed with the `has_field_changed` method.
We can also get the original value of a field directly from the `originals` dict.
Attributes:
watched_fields (list): Class attribute with fields watched for changes.
#!/usr/bin/env python
#
# Based on https://www.youtube.com/watch?v=cpwSGsb-rTs
#
# changed to refute counterclaim by MindYourDecisions:
# - https://www.youtube.com/watch?v=go3xtDdsNQM
#
# more discussion about the riddle here:
# - https://www.reddit.com/r/math/comments/48vzz8/why_tededs_frog_riddle_is_wrong/
#
@Thyrst
Thyrst / gist:10591074
Last active August 29, 2015 13:59
Variace bez rekurze
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# 04:21 < RemoteFox~> the fuck
# 04:22 < RemoteFox~> jsem ted stravil az nezdrave moc casu snahou napsat bruteforce bez pouziti rekurze
# 04:26 < RemoteFox~> (resp. program, ktery vypise kombinace)
# 04:26 < RemoteFox~> ciste jen pomoci nekolika do sebe zanorenych smycek
#
import sys
@Thyrst
Thyrst / buzerbot.pl
Created March 21, 2014 20:02
BuzerBot
#!/usr/bin/perl
use IO::Socket;
use IO::Socket::SSL;
use strict;
$|++;
our $server = shift() || die "Missing arguments!\n";
our $port = shift() || die "Missing port!\n";
our $channels = shift() || die "Missing channels! (without \#)\n";
our $nick ="BuzerBot";