This gist will explain how to setup DNS-over-TLS on your local computer.
To make it work, you need at least systemd version 237 or 242.
I'll use the version 242 in this gist.
| #!/bin/sh | |
| # | |
| # Launches files based on their mimetypes | |
| # Usage: launch [FILE...] | |
| # Dependencies: file | |
| case $(file --mime-type "$@" -bL) in | |
| # Check for the mimetype of your file (This is POSIX regex) | |
| video/* | audio/* | image/gif) | |
| # Launch using your favorite application |
| <script> | |
| let activeEffect | |
| class Dep { | |
| subscribers = new Set() | |
| depend() { | |
| if (activeEffect) this.subscribers.add(activeEffect) | |
| } | |
| notify() { | |
| this.subscribers.forEach((sub) => sub()) |
| # Run the last command as root | |
| sudo !! | |
| # Serve current directory tree at http://$HOSTNAME:8000/ | |
| python -m SimpleHTTPServer | |
| # Save a file you edited in vim without the needed permissions | |
| :w !sudo tee % | |
| # change to the previous working directory | |
| cd - | |
| # Runs previous command but replacing | |
| ^foo^bar |
Our goal, here, is threefold:
sudo pacman -S gdb
sudo pacman -S pwndbg
echo 'source /usr/share/pwndbg/gdbinit.py' >> ~/.gdbinitIf you are getting the following error "Cannot find Pwndbg virtualenv directory: /usr/share/pwndbg/.venv: please re-run setup.sh", do the following steps, otherwise ignore:
| #!/bin/bash | |
| ## Assumes ## | |
| # Working internet connection | |
| # Pre-installation work already done | |
| ## Instructions ## | |
| # After booting into Arch ISO, run: | |
| # curl -sL https://git.io/JexlX | /bin/bash | |
| # and follow the instructions on the script. |
| #!/usr/bin/env sh | |
| if test ! -d ./overlay; then | |
| read -p "No overlay found here. Want to create one? (y/N)" yn | |
| case $yn in | |
| [Yy]* ) install -d overlay/upperdir && install -d overlay/workdir && install -d overlay/mnt; break;; | |
| * ) exit;; | |
| esac | |
| fi |
| #!/usr/bin/env bash | |
| # Copyright © 2019,2020 rusty-snake | |
| # | |
| # Permission to use, copy, modify, and distribute this software for any | |
| # purpose with or without fee is hereby granted, provided that the above | |
| # copyright notice and this permission notice appear in all copies. | |
| # | |
| # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |