Skip to content

Instantly share code, notes, and snippets.

View termnml's full-sized avatar
📡

Felix Marx termnml

📡
View GitHub Profile
@peterrus
peterrus / gnome3_keybind_backup.sh
Last active May 12, 2025 04:44
Backs up and restores gnome3 keybindings
#!/usr/bin/env bash
# Backs up and restores gnome3 keybindings
# Tested with Gnome 3.36.8
# by peterrus
set -e
mkdir -p gnome3-keybind-backup
@Icaruk
Icaruk / multipleGitProfiles.md
Last active May 2, 2025 03:11
How to have multiple profiles on git

Last update: 30-01-2024
Last view: 01-05-2025

Step 1

Go to your work folder, mine is located at: F:/Work/EnterpriseName/

And then create a .gitconfig-work with the following data:

@benpeoples
benpeoples / dmx.c
Created April 10, 2020 18:01
ESP32 DMX transmitting task
#define DMX1_IO (0)
#define DMX1_TX (16)
#define DMX1_RX (32)
#define BUF_SIZE (512)
uint8_t data[513]; // This is a global in this case
/*
So this is an incredibly simple transmit-only DMX task for ESP32 ESP-IDF V4
@Zeinok
Zeinok / wine-breeze-dark-theme.md
Last active April 12, 2025 07:27
Breeze Dark theme for Wine

Made possible with this reddit post.

Install

wine regedit wine-breeze-dark.reg

Uninstall (Reset Wine color scheme)

wine regedit wine-reset-theme.reg

@jdharmon
jdharmon / PSCommandCompletion.ps1
Last active November 28, 2023 21:07
PowerShell Kubectl & Helm Command Completion
# Setup
Install-Module -Name PSBashCompletions -Scope CurrentUser
$path = (mkdir (Join-Path (Split-Path -Parent $PROFILE) Completion)).FullName
((kubectl completion bash) -join "`n") | Set-Content -Encoding ASCII -NoNewline -Path $path/kubectl.sh
((helm completion bash) -join "`n") | Set-Content -Encoding ASCII -NoNewline -Path $path/helm.sh
# Profile
$completionPath = Join-Path (Split-Path -Parent $PROFILE) Completion
if (Test-Path $completionPath) {
Import-Module PSBashCompletions
@jdhao
jdhao / autocommands.vim
Last active July 29, 2022 17:18
My Neovim configurations for both terminal and gui (using nvim-qt). Repo: https://github.com/jdhao/nvim-config
"{ Auto commands
" Do not use smart case in command line mode,
" extracted from https://goo.gl/vCTYdK
augroup dynamic_smartcase
autocmd!
autocmd CmdLineEnter : set nosmartcase
autocmd CmdLineLeave : set smartcase
augroup END
" Set textwidth for text file types
@rivo
rivo / postgres.go
Last active July 7, 2024 14:28
A demo Go application (a PostgreSQL database browser) highlighting the use of the rivo/tview package. See https://github.com/rivo/tview/wiki/Postgres
package main
import (
"database/sql"
"fmt"
"net/url"
"os"
"reflect"
"regexp"
"strconv"
@aziascreations
aziascreations / termux-url-opener
Last active January 11, 2021 05:21
Termux URL opener script with youtube downloader
#!/bin/bash
clear
bold=$(tput bold)
normal=$(tput sgr0)
if [[ $1 =~ ^.*youtu.*$ ]]; then
echo "${bold}Youtube-dl${normal}"
echo "> ${1}"
@JamesTheBard
JamesTheBard / set_ntp_settings.yaml
Last active January 29, 2024 14:55
Configure NTP Client for `timedatectl` via `systemd-timesyncd`
# vim:ts=2:sts=2:sw=2:et
#===========================================================
# NTP Configuration Playbook
#===========================================================
# This script will remove the 'ntp' daemon from each server
# and properly configure the 'systemd-timesyncd' daemon so
# that 'timedatectl' uses a specific NTP server. Remember
# to create a 'timesyncd.conf' file that holds your config
# in the same directory as this ansible playbook before
# running.
@DavideMontersino
DavideMontersino / private-fork.md
Last active February 27, 2024 12:56
How to fork to a private gitlab instance

Theory:

your git repository can have more than one remote server; In this case we want to have two:

  1. one for our private repository on gitlab (will be the default one, called origin)
  2. one to be connected to the source repo on github, to be able to pull new changes (will be called upstream)

How to make a private fork from github to gitlab