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
| #!/usr/bin/env bash | |
| # Script assumes the following: | |
| # - streamlink is installed: `pip3 install streamlink` | |
| # - gotify will be used to send push notifications (modify it yourself if you need another CLI push utility) | |
| # Edit these variables | |
| channel_id='' | |
| channel_title='My Youtube Channel' |
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
| #!/usr/bin/env bash | |
| if limactl list | grep -q docker | |
| then | |
| echo 'lima docker vm exists' | |
| else | |
| echo 'lima docker vm does not exist -- creating now' | |
| limactl start --name=docker template://docker --tty=false | |
| fi |
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
| #!/usr/bin/env bash | |
| if uname | grep -i linux | |
| then | |
| status=`xset -q | grep 'DPMS is' | awk '{ print $3 }'` | |
| if [ $status == 'Enabled' ] | |
| then | |
| xset -dpms && \ | |
| notify-send 'Screen suspend is disabled.' | |
| else | |
| xset +dpms && \ |
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
| #!/usr/bin/env bash | |
| rofi -combi-modi window,drun,ssh -theme nord -font "arial 10" -show combi -show-icons |
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
| - id: gitleaks-docker | |
| name: Detect hardcoded secrets | |
| description: Detect hardcoded secrets using Gitleaks | |
| entry: heywoodlh/gitleaks protect --verbose --redact --no-git | |
| language: docker_image |
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
| flan-scan () { | |
| if [[ -z "$@" ]] || [[ $1 == '--help' ]] | |
| then | |
| printf 'flan-scan "192.168.0.0/24 192.168.1.0/24"\n' | |
| else | |
| mkdir -p ~/tmp/flan_scan/reports | |
| mkdir -p ~/tmp/flan_scan/xml_files | |
| if [ -e ~/tmp/flan_scan/flan-ips.txt ] |
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
| imports: | |
| base16-shell: dotfiles/config/base16-shell | |
| choose-file-manager: home/bin/ | |
| choose-launcher: home/bin/ | |
| choose-buku: home/bin/ | |
| vultr-sh: home/bin | |
| journal: home/bin | |
| log: home/bin |
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
| imports: | |
| base16-shell: dotfiles/config/base16-shell | |
| choose-file-manager: home/bin/ | |
| choose-launcher: home/bin/ | |
| choose-buku: home/bin/ | |
| vim-airline: dotfiles/vim/bundle/airline | |
| vim-airline-themes: dotfiles/vim/bundle/airline-themes | |
| vim-auto-pairs: dotfiles/vim/bundle/auto-pairs |
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
| pass-insert-otp () { | |
| if [ -z $1 ] | |
| then | |
| echo "Usage: pass-insert-otp example.com/testing" | |
| error="True" | |
| else | |
| error="False" | |
| entry="$1" | |
| fi | |
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
| #!/usr/bin/env bash | |
| working_dir="$(pwd)" | |
| ## Exit if dependences are not installed | |
| missing_deps="" | |
| command -v gh > /dev/null || missing_deps+="gh " | |
| command -v git > /dev/null || missing_deps+="git " | |
| command -v ssh > /dev/null || missing_deps+="openssh " | |
| command -v gitleaks > /dev/null || missing_deps+="gitleaks " |