Skip to content

Instantly share code, notes, and snippets.

View itsthejoker's full-sized avatar
We have a status now?

Joe Kaufeld itsthejoker

We have a status now?
View GitHub Profile
@itsthejoker
itsthejoker / filters, working as of 24-08-14
Created August 14, 2024 17:52
Twitter filters for uBlock Origin
! Discover more / More Tweets - Conversation view suggestions
twitter.com,x.com##[aria-label="Timeline: Conversation"] :is([data-testid="cellInnerDiv"]:has(h2:not(:only-child)), [data-testid="cellInnerDiv"]:has(h2:not(:only-child))~div)
twitter.com,x.com##[aria-label="Get Verified"]
twitter.com,x.com##[aria-label="Subscribe to Premium"]
twitter.com,x.com##[aria-label="Verified Orgs"]
! Live spaces
twitter.com,x.com##[data-testid="sidebarColumn"] [data-testid="placementTracking"]:last-child:upward(1)
! Sidebar - Topics to follow
twitter.com,x.com##[data-testid="sidebarColumn"] [href="/i/topics/picker/home"]:upward(section)
@itsthejoker
itsthejoker / dadjoke.py
Created March 13, 2021 21:36
Random dadjoke from fatherhood.gov
#!/usr/bin/env python
# source: 'https://gist.github.com/itsthejoker/33c390748fd8d4184ca81d421b69f9e6'
from urllib import request
import json
import random
resp = request.urlopen("https://fatherhood.gov/jsonapi/node/dad_jokes")
joke = random.choice(json.loads(resp.read()).get('data')).get('attributes')
if joke:
#!/bin/bash
#
# Script Name: fish_setup.sh
#
# Author: https://github.com/itsthejoker
# Date : July 29, 2018
#
# Description: Installs, activates, and configures the fish shell as default for the server.
# This is what I like to use on my servers, so feel free to make your own based
# on mine if you like what you see.
@itsthejoker
itsthejoker / keybase.md
Created February 15, 2018 21:47
keybase.md

Keybase proof

I hereby claim:

  • I am itsthejoker on github.
  • I am itsthejoker (https://keybase.io/itsthejoker) on keybase.
  • I have a public key ASBfiPbbH_waozxVoFlNXr0iqwxtGk6DQ7DCLmpR2cXV1Qo

To claim this, I am signing this object:

@itsthejoker
itsthejoker / beautify_str.py
Created March 3, 2017 20:04
A miniature Python package to truly make your strings something special.
import string
def flip_char(char):
if char in string.ascii_lowercase:
return string.ascii_uppercase[string.lowercase.find(char)]
else:
return string.ascii_lowercase[string.uppercase.find(char)]
def beautify_string(old_string):
new_beautiful_string = []
####################################
# ISO8601 time strings + UTC offsets
####################################
from time import strftime
from time import gmtime
from datetime import datetime
@staticmethod
def local_datetime(utc_offset=True):
import errno
import os
import signal
import unittest
import time
class graceful_interrupt_handler(object):
'''
Usage:
@itsthejoker
itsthejoker / lists.py
Created August 7, 2013 05:37
Geez, be a poop about it, will ya?
#!/usr/bin/python
# This is a lists module of different types of data to be called for a
# brute-forcing attack.
lowercase_chars = list("abcdefghijklmnopqrstuvwxyz")
uppercase_chars = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
number_chars = list("0123456789")
symbol_chars = list("!@#$%^&*()`~-_=+\\;[]{};:\",.<>/?\'")
homoglyph_sym_chars = list("!ǃ!״″"$$%%&&''(﹝()﹞)*⁎*+\
+,‚,- ‐ 䐠- ᅠ ㅤ. ٠ ۔ ܁܂․‧。.。/ ̸⁄∕╱⫻⫽/ノ0OoΟοОоՕРᠠOo\