Skip to content

Instantly share code, notes, and snippets.

@bsima
bsima / intervals-workout-skill.md
Created March 7, 2026 19:08
A skill doc for creating workouts using intervals.icu plain text format

This document describes the specific format used by Intervals.icu. Follow these detailed rules and examples to ensure the output is valid and easy to use.


General Formatting Rules

  1. Time Format:

    1. Use h for hours, m for minutes, and s for seconds.
@caracolmzd
caracolmzd / gen-pass.sh
Last active February 5, 2021 02:48
generate a strong password without string delimiters in it
#!/usr/bin/env bash
# generate a strong password without shell special characters
# defaults to 32 characters, overridden to a number passed as first arg
# uses xclip to copy to clipboard
# uses zenity to alert to desktop (from gnome-run-prompt)
gen_pass_length=32
if [ $# -eq 1 ]; then
gen_pass_length="$1"
@mpochron
mpochron / jail.local
Last active November 1, 2021 00:19
Maltrial - integration with Fail2ban
; /etc/fail2ban/jail.local
[maltrail-iptables]
enabled = true
filter = maltrail
bantime = 31536000
action = iptables-allports[name=MALTRAIL, protocol=all]
;action = vesta[name=MALTRAIL]
echo "logpath = /var/log/maltrail/$(ls -1t /var/log/maltrail | grep -E '^[^error.log]' | head -1)"
maxretry = 1
@chrisjhoughton
chrisjhoughton / proxy.apache.conf
Last active January 11, 2026 10:12
Sample Nginx reverse proxy to Apache set up for Wordpress.
<VirtualHost *:{PORT}>
ServerName www.yourdomain.com
ServerAdmin mail@domain.com
DocumentRoot /var/www/yourdir/
<Directory /var/www/yourdir>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
$('.example-countries .typeahead').typeahead({
name: 'countries',
prefetch: '../data/countries.json',
limit: 10
});