Skip to content

Instantly share code, notes, and snippets.

View getsueineko's full-sized avatar
🏀

Tom Emv getsueineko

🏀
View GitHub Profile
@getsueineko
getsueineko / README.md
Created August 9, 2023 10:46 — forked from MatthiasLohr/README.md
Beelink GTR5 + Proxmox + Windows Guest VM

Beelink GTR5 + Proxmox VE + Windows Guest using the Vega8 Graphics Card

Prerequisites

Hardware

  • Current BIOS version: 5.19
  • 1TB Kingston NVMe SSD (shipped with the device, used for system)
  • 1TB Samsung 860 EVO 2.5" SATA SSD (bought additionally, for Windows 10)
  • Installation images for Proxmox VE, Windows 10 (e.g. using Ventoy)
@getsueineko
getsueineko / gist:518b9ec585d44d22f5ad9316f21afe53
Created March 16, 2023 14:00 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@getsueineko
getsueineko / README.md
Created July 5, 2022 14:08 — forked from montmanu/README.md
Processing kubectl YAML Output with yq
# Fix DNS (for Linux)
sudo dpkg-reconfigure resolvconf
# Find execute command
which openconnect
/usr/sbin/openconnect
# Allow members of group sudo to execute openconnect without passwd
sudo visudo
Add the follow string
@getsueineko
getsueineko / ffmpeg.md
Created January 16, 2022 14:15 — forked from whizkydee/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

#!/usr/bin/env zsh
# Quick config my zsh
# set -Eeuo pipefail
# Fix for Linux TTY
if [[ "$OSTYPE" == "linux"* ]]; then
sed -i 's/ZSH_THEME="robbyrussell"/if [ "$TERM" = "linux" ]; then\n\ ZSH_THEME="clean"\nelse\n\ ZSH_THEME="robbyrussell"\nfi/' ~/.zshrc
echo -e "\nif [ \"\$TERM\" = \"linux\" ]; then\n ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=3'\nelse\n ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=245'\nfi\n" >> ~/.zshrc
fi
#!/usr/bin/env bash
# Quick setup my zsh
# set -Eeuo pipefail
# MultiOS block
if [[ $(cat /etc/os-release | grep ID_LIKE) == *"debian"* ]]; then
echo -e "\nDebian-based system\n"
sudo apt update
sudo apt install git zsh fzf thefuck wget -y
@getsueineko
getsueineko / gist:1f0d281137f27828b2b3bc17f2dd7c56
Created October 29, 2021 11:17
Fix visible borders in VirtualBox seamless mode (GNOME)
# ~/.config/gtk-3.0/gtk.css
decoration, decoration:backdrop {
border-radius: 0;
border-width: 0;
box-shadow: none;
margin: 1px;
}
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@getsueineko
getsueineko / mongodb_pass_reset.md
Created September 24, 2021 06:39 — forked from shivampip/mongodb_pass_reset.md
MongoDB shell admin password reset
  • open mongod.conf
cd /etc/mongod.conf
  • Comment security
#security:
#  authroization: "enabled"