Last update: 30-01-2024
Last view: 01-05-2025
Go to your work folder, mine is located at:
F:/Work/EnterpriseName/
And then create a .gitconfig-work
with the following data:
#!/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 |
#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 |
Made possible with this reddit post.
wine regedit wine-breeze-dark.reg
wine regedit wine-reset-theme.reg
# 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 |
"{ 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 |
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"net/url" | |
"os" | |
"reflect" | |
"regexp" | |
"strconv" |
#!/bin/bash | |
clear | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
if [[ $1 =~ ^.*youtu.*$ ]]; then | |
echo "${bold}Youtube-dl${normal}" | |
echo "> ${1}" | |
# 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. |
Theory:
your git repository can have more than one remote server; In this case we want to have two:
origin
)upstream
)How to make a private fork from github to gitlab