Skip to content

Instantly share code, notes, and snippets.

View XavierChanth's full-sized avatar

Xavier Chanthavong XavierChanth

View GitHub Profile
@XavierChanth
XavierChanth / download
Created January 13, 2024 10:45 — forked from evanrelf/download
Offline Advent of Code
#!/usr/bin/env bash
set -Eeuo pipefail
IFS=$'\n\t'
if [ "$#" -ne 1 ]; then
echo "usage: ./download <year>" >&2
exit 1
fi
@XavierChanth
XavierChanth / http hello world one-shot server
Last active October 2, 2023 20:32 — forked from kevn-xyz/ncws
Simple netcat based one shot http file server
#!/bin/bash
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Disposition: inline; filename=\"hello.txt\"\r\nContent-Length: 13\r\n\r\n"; echo \"Hello World\!\"; } | nc -l 8080

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example