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/bin/env bash | |
# List of usernames. MUST BE ALL LOWERCASE! | |
users=( | |
visakanv | |
eigenrobot | |
patio11 | |
daniellefong | |
thezvi | |
richdecibels |
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
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 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
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)) |
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
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 |
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/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 |
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
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): |
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
# 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 |
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
#!/bin/bash | |
# Original post: | |
# https://gist.github.com/matthewjberger/7dd7e079f282f8138a9dc3b045ebefa0?permalink_comment_id=4005789#gistcomment-4005789 | |
declare -a fonts=( | |
BitstreamVeraSansMono | |
CodeNewRoman | |
DroidSansMono | |
FiraCode |