Skip to content

Instantly share code, notes, and snippets.

View dhhdev's full-sized avatar

Daniel Hyldebrandt Hemmingsen dhhdev

View GitHub Profile
@dhhdev
dhhdev / live
Last active March 29, 2016 22:30
I wanted a simple way to repeat a command purely in Bash: /usr/local/bin/live
#!/bin/bash
# A simple script to "watch" a command in pure Bash.
help() {
echo "live is a simple bash script, that keeps looping a specified command, just like the well known watch command. But made in Bash."
echo
echo " Usage:"
echo " live [arguments...] command"
echo
echo " Arguments:"
@dhhdev
dhhdev / git-create.sh
Created March 13, 2016 02:55
Create a repository on remote server and start hacking!
#!/bin/bash
## Start repository on own Git Server and start hacking.
## Yes, it could be way better - detection of already made repository, etc.
## Usage: git-create.sh <reponame> "<description>"
## Never use slashes!
# Connection
HOST='git'
USER='git'
@dhhdev
dhhdev / sinkswitcher.sh
Last active November 28, 2015 01:25
Automaticly switch currently running sink-inputs to your default (selected fall-back) output device.
#!/bin/bash
# Dependencies: pulseaudio
# Optional: pavucontrol
# Automaticly switch currently running sink-inputs to your default sink.
# $ pactl set-default-sink
# Pavucontrol can be used to do this with a GUI.
# Special thanks goes to Steve Parker for helping me with refining the script.
@dhhdev
dhhdev / my-arch-install-cheat-sheet.md
Last active November 10, 2023 23:44
My Arch Installation Cheat Sheet, so I can remember it all.

Install Arch Linux

This is my personal setup almost every time I install Arch Linux. This is meant for me as being something I can quickly reference.

Change localkeys to my keyboard layout

In my case I have a Danish keyboard layout.