Skip to content

Instantly share code, notes, and snippets.

View hougesen's full-sized avatar
⌨️
clickity clackity

Mads Hougesen hougesen

⌨️
clickity clackity
View GitHub Profile
@hougesen
hougesen / prettier-format-changed.sh
Last active December 1, 2023 14:12
Format changed files using Prettier
#!/bin/sh
FILES=""
for i in $(git diff --name-only); do
if [ "${#FILES}" -gt 0 ]; then
FILES="$FILES $i"
else
FILES=$i
fi
@hougesen
hougesen / build.sh
Created September 13, 2023 13:33
Script for installing the rio terminal emulator on Ubuntu with desktop icons
#!/bin/sh
build_rio() {
cargo build --release --no-default-features --features=wayland
}
install_terminfo() {
sudo tic -xe rio misc/rio.terminfo
}
@hougesen
hougesen / Dockerfile
Created May 16, 2023 09:26
Rust distrolesss aws lambda Dockerfile
# NOTE: binary name must be set to "bootstrap"
# Cargo.toml:
# [[bin]]
# name = "bootstrap"
# path = "src/main.rs"
ARG FUNCTION_DIR="/function"
FROM rust:1.69-buster as builder
@hougesen
hougesen / docker_wordpress.md
Last active August 26, 2020 11:10 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes