This file contains hidden or 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
| !Hue Lampe ein-/ausschalten | |
| !------------------------------ | |
| !__IP Adresse der Hue Bridge | |
| string ip_address = "192.168.2.172"; | |
| !__User ID in der Bridge | |
| string api_key="9YqN4igBFdRpXo8kw3lhzzNIzPXFFSoJSn6488bV"; | |
| !__Auswahl der Lampe | |
| string lamp ="1"; |
This file contains hidden or 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
| #!/bin/bash | |
| sp="/-\|" | |
| sc=0 | |
| spin() { | |
| printf "\b${sp:sc++:1}" | |
| ((sc==${#sp})) && sc=0 | |
| } | |
| endspin() { | |
| printf "\r" | |
| } |
This file contains hidden or 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
| # alias to edit commit messages without using rebase interactive | |
| # example: git reword commithash message | |
| reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f" | |
| # convert users public repos into private | |
| gh repo list --source --visibility public --limit 5000 --json nameWithOwner | jq -r '.[].nameWithOwner' | xargs -I % sh -c 'echo "Converting % to private..."; gh repo edit % --visibility private --accept-visibility-change-consequences' | |
| # convert users public repos into private (legacy gh-cli version) | |
| gh api user/repos --paginate | jq -r '.[] | select(.fork == false and .private == false) | .full_name' | xargs -I % sh -c 'echo "Converting % to private..."; gh repo edit % --visibility private --accept-visibility-change-consequences' |
This file contains hidden or 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
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: autosshd | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: autosshd initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |
This file contains hidden or 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
| ############################################################################## | |
| # History Configuration | |
| ############################################################################## | |
| HISTSIZE=5000 #How many lines of history to keep in memory | |
| HISTFILE=~/.zsh_history #Where to save history to disk | |
| SAVEHIST=5000 #Number of history entries to save to disk | |
| #HISTDUP=erase #Erase duplicates in the history file | |
| setopt appendhistory #Append history to the history file (no overwriting) | |
| setopt sharehistory #Share history across terminals | |
| setopt incappendhistory #Immediately append to the history file, not just when a term is killed |