This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Hide folder icons in bookmarks bar */ | |
toolbarbutton.bookmark-item[type="menu"] .toolbarbutton-icon { | |
display: none !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/sbin/nft -f | |
# based on | |
# https://wiki.nftables.org/wiki-nftables/index.php/Simple_ruleset_for_a_home_router | |
# https://www.ivpn.net/knowledgebase/linux/linux-how-do-i-prevent-vpn-leaks-using-nftables-and-openvpn/ | |
# reset | |
flush ruleset | |
# devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tqdm import tqdm | |
from glob import glob | |
from requests import post | |
from argparse import ArgumentParser | |
""" | |
requires | |
requests>=2.28.2 | |
tqdm>=4.64.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import sin, cos, sqrt, pi | |
PI2 = pi * 2 | |
spoke_count = 36 | |
cross_pattern = 2 | |
spoke_hole_diameter = 2 # in mm | |
DL = 89.8 # diameter of all the spoke holes in the left flange, measured centre to centre | |
LFO = 17.5 # distance from the lock nut to the centre of the left flange |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import time | |
from math import ceil | |
from json import loads | |
from PIL.Image import new as new_image | |
from PIL.Image import open as open_image | |
from PIL.ImageDraw import Draw | |
from PIL.ImageFont import truetype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @author William Santos | |
* | |
* Below is a 6 instruction assembly language simulator written in Javascript | |
* using only arrow functions and ternary operators. | |
* There is no point in an assembler here since the assembly program to be | |
* executed has to be composed as a recursive linked list of instructions | |
* - which are, of course, each constructed using explicit function calls. | |
* | |
* How it works: |