Skip to content

Instantly share code, notes, and snippets.

View sinux-l5d's full-sized avatar

Simon Leonard sinux-l5d

  • Chambéry, France
  • 01:47 (UTC +02:00)
  • LinkedIn in/simon-l5d
View GitHub Profile
@sinux-l5d
sinux-l5d / play.sh
Last active June 15, 2024 22:15
Zellij setup for rustlings exercises
#!/usr/bin/env bash
zellij action new-tab --layout rustlings_layout.kdl
@sinux-l5d
sinux-l5d / website_downloader.sh
Created January 3, 2024 20:39
download every file of a no-js-required website
#!/usr/bin/env bash
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --domains "$1" --no-parent "https://$1"
@sinux-l5d
sinux-l5d / commit
Last active February 26, 2023 15:30
Commit helper for conventional commits with gum
#!/bin/sh
if ! command -v gum >/dev/null 2>&1; then
echo "gum is not installed"
exit 1
fi
TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert" "ci")
SCOPE=$(gum input --placeholder "scope")
@sinux-l5d
sinux-l5d / README.md
Last active January 4, 2023 10:27
AWS CloudFormation template for on-demand general-purpose VPC (t2.micro, ports: 22, 80, 443)
  1. First copy the template to vpc.yaml to make changes (UserData ?)
  2. Check template with aws cloudformation validate-template --template-body file://vpc.yaml
  3. Run script with parameters you want: ./launch.sh BaseName=SOMETHING KeyName=PROD_KEY
@sinux-l5d
sinux-l5d / 00-keyboard.conf
Created October 22, 2021 23:03
Xorg config for Dauthdaert
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "fr"
Option "XkbModel" "tm2030USB"
EndSection
@sinux-l5d
sinux-l5d / create_chrootjail.sh
Last active September 22, 2020 10:09 — forked from schnell18/create_chrootjail.sh
Script to automate the creation of chroot to run apache+php+mysql
#!/bin/bash
# script to automate the creation of chroot jail
# w/ minimal executables to run apache+php+mysql
CHROOT=/var/jail
DEB_CACHE=/tmp/jail_cache
if [ "$(whoami)" != "root" ]; then
echo "Script must be run as user: root"
exit 1