This is my personal setup almost every time I install Arch Linux. This is meant for me as being something I can quickly reference.
In my case I have a Danish keyboard layout.
#!/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. |
#!/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' |
#!/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:" |
#!/bin/bash | |
# Save the file in /usr/local/bin/ and call it whatever you like. | |
# I simply call mine: compile | |
# Now I can compile a .c file with compile test.c command. | |
if [ -z "${1}" ]; then | |
echo "We can't take over the world, without compiling a file!" | |
else | |
if [ -z "${2}" ]; then |
#!/bin/bash | |
# | |
# ~/.tools/tmux.sh | |
# | |
# Author: Daniel H. Hemmingsen <[email protected]> | |
# Usage: tmux.sh session-name /path/to/start/from" | |
# | |
# Could make a simple check, with groups or something. | |
# To see if the students should get write access or not. |
#!/bin/bash | |
# | |
# ~/.tools/tmux-teacher.sh | |
# | |
# Author: Daniel H. Hemmingsen <[email protected]> | |
# Usage: tmux-teacher.sh session-name /path/to/start/from" | |
# | |
TEACHER_GROUP="teacher" |
# | |
# ~/.oh-my-zsh/custom/gcc.zsh | |
# | |
# gcc wrapper for compiling ansi | |
# Usage: compile_ansi [output][files] | |
compile_ansi() | |
{ | |
OUTPUT=$1 | |
shift |
#!/bin/sh | |
# Today, as day-of-year (1-366) | |
TODAY=$(date -j +"%j") | |
# Christmas day, in d-B-y format converted to days | |
CHRISTMAS=$(date -jf "%d-%B-%y" "25-DEC-16" +"%j") | |
echo "There are $(($CHRISTMAS - $TODAY)) days until Christmas." |
I hereby claim:
To claim this, I am signing this object: