Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
#!/bin/bash | |
# Update the bt-tracker= line in aria2.conf | |
# Any bt-tracker= lines are removed and and a new one added at the bottom of the file | |
# Updates at: https://gist.github.com/HaleTom/fe873dc2f3c5bd14f7418efefc2b91a8 | |
# Inspiration: https://github.com/wuyuansushen/aria2c_TrackersList | |
set -euo pipefail | |
shopt -s failglob |
// Define the default fill and stroke colors | |
const defaultFill = "#dcfce7"; | |
const defaultStroke = "#bbf7d0"; | |
// Define the stroke width | |
const strokeWidth = 4; | |
/** | |
* Draws a sparkline SVG based on the given width, height and points | |
* @param {number} width - The width of the SVG element |
#include <stdio.h> | |
#include <stdint.h> | |
// Philips Sonicare NFC Head Password calculation by @atc1441 Video manual: https://www.youtube.com/watch?v=EPytrn8i8sc | |
uint16_t CRC16(uint16_t crc, uint8_t *buffer, int len) // Default CRC16 Algo | |
{ | |
while(len--) | |
{ | |
crc ^= *buffer++ << 8; | |
int bits = 0; | |
do |
Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
// I'm tired of extensions that automatically: | |
// - show welcome pages / walkthroughs | |
// - show release notes | |
// - send telemetry | |
// - recommend things | |
// | |
// This disables all of that stuff. | |
// If you have more config, leave a comment so I can add it!! | |
{ |
#!/usr/bin/env bash | |
############################################################################## | |
# | |
# Manual configuration: | |
# | |
readonly IS_TEST=false | |
readonly CRYPTNAME=cryptback | |
readonly SOURCE_DIR=/mnt/data | |
readonly BACKUP_DIR=/mnt/backup |
# This script automatically handles Syncthing conflicts on text files by applying a | |
# git three-way merge between the previously synced version and each divergent version. | |
# It depends on the watchdog package and git. | |
# For automatic dependency installation when running with ´uv run --script deconflicter.py´: | |
# /// script | |
# requires-python = ">=3.10" | |
# dependencies = [ | |
# "watchdog", |
For fun, I had ChatGPT take the free response section of the 2022 AP Computer Science A exam. (The exam also has a multiple-choice section, but the College Board doesn't publish this.) It scored 32/36.
contact me on my discord server will be updated soon!