-
update-ref- update a branch (or other reference) to point to a specific commit sha
-
symbolic-ref- update a reference (usually HEAD) to point to another reference (like a branch)
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 | |
| set -eo pipefail | |
| ref="$1" | |
| fname="$2" | |
| if [[ -z "$fname" || "$ref" == "-h" || "$ref" == "--help" ]] ; then | |
| echo "git diff for SOPS encrypted file" | |
| echo "use: git-sops-diff <commit> <path>" | |
| echo "compares working tree file to version in specified commit" | |
| exit 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
| #-------------------------------------------------------------------------- | |
| # | |
| # kubetmp - create temporary kubeconfig for bash session | |
| # | |
| # - to be sourced at start of interactive shell | |
| # | |
| #-------------------------------------------------------------------------- | |
| # Copyright 2021,2026 Michal Belica <https://beli.sk> | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
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
| # AV1 | |
| ffmpeg -i infile.mkv -c:v libaom-av1 -crf 25 -movflags +faststart -g 300 -an outfile.mp4 | |
| # HEVC | |
| ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -i infile.mkv -vf hwupload=extra_hw_frames=64,format=qsv -c:v hevc_qsv -preset veryslow -global_quality 25 -g 300 -movflags +faststart outfile.mp4 |
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
| # /etc/modules-load.d/v4l2loopback-load.conf | |
| v4l2loopback |
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 python | |
| import sys | |
| from base64 import b64decode, b32encode | |
| from urllib.parse import urlparse, parse_qs | |
| uri = urlparse(sys.argv[1]) | |
| q = parse_qs(uri.query) | |
| data_b64 = q['data'][0] | |
| data = b64decode(data_b64) | |
| secret = data[4:].split(b'\x12', 1)[0] |
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
| # /etc/bash/bashrc.d/git-prompt.sh | |
| . /usr/share/git/git-prompt.sh | |
| export GIT_PS1_SHOWDIRTYSTATE=1 | |
| if ${use_color} ; then | |
| PS1=`echo "$PS1" | sed -r 's| \\\\\\$|\\\[\\\\033[01;31m\\\]$(__git_ps1)\\\[\\\\033[01;34m\\\] \\\\$|'` | |
| else | |
| PS1=`echo "$PS1" | sed -r 's| \\\\\\$|$(__git_ps1) \\\\$|'` | |
| 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
| set editing-mode vi | |
| set show-mode-in-prompt on | |
| set vi-ins-mode-string "+" | |
| set vi-cmd-mode-string ":" | |
| $if mode=vi | |
| set keymap vi-command | |
| # these are for vi-command mode | |
| Control-l: clear-screen |
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
| [Desktop Entry] | |
| Name=Irexec daemon | |
| Comment=Handle IR command server | |
| Exec=/usr/bin/irexec | |
| Icon=applications-system | |
| Terminal=false | |
| Type=Application | |
| Categories=AudioVideo;Application;X-Fedora-Extra |
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
| # Disable Gnome Keyring SSH agent in Ubuntu | |
| # To allow using ssh-agent from OpenSSH, mainly because | |
| # gnome-keyring does not like EC-type SSH keys | |
| # as regular user (for which to disable): | |
| systemctl --user mask gnome-keyring-ssh.service | |
| pam-auth-update | |
| # and disable "GNOME Keyring Daemon..." | |
| # which probably also disables automatic keyring unlocking on login |
NewerOlder