This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mit diesen Widgets für die zsh kann man pacman Befehle | |
# "on the fly" ändern. Wenn man z.B. "pacman -Si weechat" ausgeführt hat, | |
# und möchte nun weechat installieren, muss man nur in der History zurück | |
# gehen und Meta-i drücken. Damit ändert sich der Befehl zu "pacman -S weechat". | |
# Konfiguration der Keybindings und Komandos | |
pacman_bindings=("^[i" "S" # Meta-i → install | |
"^[f" "Ss" # Meta-f → search | |
"^[r" "Rs" # Meta-r → remove | |
"^[p" "Si" # Meta-p → info / properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Handle the start/stop/restart and reload of daemons uniformly. | |
# It's able to handle multiple daemons. | |
start restart stop reload(){ | |
local daemonPath distro cmd | |
if [[ $# -le 0 ]]; then | |
echo "Usage: start [restart, stop, reload] DAEMON [DAEMON ...]" | |
return 1 | |
fi | |
distro=$(cat /etc/issue) | |
case $distro in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- The source code in this file is an adapated version of the chat example in the Yesod Book. See | |
-- http://www.yesodweb.com/book/wiki-chat-example | |
{-# LANGUAGE OverloadedStrings, TypeFamilies, QuasiQuotes, | |
TemplateHaskell, FlexibleInstances, MultiParamTypeClasses, | |
FlexibleContexts | |
#-} | |
module Chat where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.aux | |
*.glo | |
*.idx | |
*.log | |
*.toc | |
*.ist | |
*.acn | |
*.acr | |
*.alg | |
*.bbl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
EPISODE=$1 | |
NUMBER=$2 | |
i=0 | |
while | |
echo $i | |
URL="https://www.peppercarrot.com/0_sources/$EPISODE/hi-res/de_Pepper-and-Carrot_by-David-Revoy_E${NUMBER}P${(l:2::0:)i}.jpg" | |
STATUSCODE=$(curl --silent --remote-name --write-out "%{http_code}" $URL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
let | |
cfg = config.services.homepage; | |
dmn-check-server = | |
pkgs.fetchurl { | |
url = "https://repo1.maven.org/maven2/de/redsix/dmn-check-server/1.2.4/dmn-check-server-1.2.4-jar-with-dependencies.jar"; | |
sha256 = "0rnak9gnf5vr1h8pkzkgd0fnrv10mrkbir1qccrrz42z7vzc3wdb"; |