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 :
{ | |
"luckyBangUrl": "https://kagi.com/search?q=!+%q", | |
"siteFormat": "site:%d", | |
"orOperator": "OR", | |
"bangPrefix": "!", | |
"luckyBang": "!", | |
"siteBangSep": "@", | |
"superLuckyBangPrefix": "!!", | |
"multiBangDelim": ";", | |
"multiSiteBangDelim": ",", |
#!/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 |
import os | |
import time | |
import re | |
import subprocess | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler | |
def get_relative_path(path): | |
return os.path.relpath(path) |
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.