Skip to content

Instantly share code, notes, and snippets.

View hiAndrewQuinn's full-sized avatar
🏠
Working from home

Andrew Quinn hiAndrewQuinn

🏠
Working from home
View GitHub Profile
@hiAndrewQuinn
hiAndrewQuinn / main.py
Created February 18, 2024 08:34
vector-of-pairs.py
class CustomList:
def __init__(self):
self.data = []
def store(self, first, second):
self.data.append((first, second))
def print(self, lookup):
def print_iter(lookup, dots=0):
print(".." * dots + str(lookup))
@hiAndrewQuinn
hiAndrewQuinn / hashdrops.csv
Last active October 22, 2023 14:43
My hash drops
Timestamp MD5 SHA-1 SHA-512
2023-10-22T15:11:50+03:00 04340cf1c0c93dc05954f1650918661f b3477ba5c2792d9ae240f2b384288982c3b63353 1e935b3cd224ca66d250cd94888f3a067b551ef79f64fa57b296d24c8e258edab281833e633ef20367e7079709f88f23c9c7782be9527dcd603a3a48edcf91fa
2023-10-22T17:41:47+03:00 84238dfc8092e5d9c0dac8ef93371a07 4a3ce8ee11e091dd7923f4d8c6e5b5e41ec7c047 d06b93c883f8126a04589937a884032df031b05518eed9d433efb6447834df2596aebd500d69b8283e5702d988ed49655ae654c1683c7a4ae58bfa6b92f2b73a
@hiAndrewQuinn
hiAndrewQuinn / next-5-years.fish
Created August 27, 2023 08:52
Create YYYY/MM/DD folders for the next 5 years.
#!/usr/bin/env fish
# Define the source and destination directories
set source_dir ~/Documents
set dest_root ~/Documents
# Loop through each file in the source directory
for file in $source_dir/*
if test -f $file
# Get the creation date of the file
@hiAndrewQuinn
hiAndrewQuinn / did-the-sun-rise.py
Created August 10, 2023 15:10
Check 1000 random points on Earth to determine whether the Sun rose on August 9, 2023.
import time
import requests
import random
API_URL = "https://api.sunrise-sunset.org/json?lat={}&lng={}&date=2023-08-09"
# Change this if you wish to test a different set of points.
random.seed(12345)
def get_sunrise_data(lat, lng):
# recompile vim with clipboard support
sudo apt-get update
sudo apt-get install build-essential libncurses-dev libgtk2.0-dev libatk1.0-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python3-dev ruby-dev lua5.1 liblua5.1-dev libperl-dev git
git clone https://github.com/vim/vim.git
cd vim/src
./configure --with-features=huge --enable-gui=auto --enable-python3interp --with-python3-config-dir=/usr/lib/python3.9/config-3.9-x86_64-linux-gnu --enable-rubyinterp --enable-luainterp --enable-perlinterp --enable-cscope --prefix=/usr/local --with-x --enable-gnome-check --with-compiledby=YourName --with-clipboar
@hiAndrewQuinn
hiAndrewQuinn / install-nerd-fonts.sh
Last active January 29, 2023 15:52
@donovan's Nerd Fonts install script
#!/bin/bash
# Original post:
# https://gist.github.com/matthewjberger/7dd7e079f282f8138a9dc3b045ebefa0?permalink_comment_id=4005789#gistcomment-4005789
declare -a fonts=(
BitstreamVeraSansMono
CodeNewRoman
DroidSansMono
FiraCode