Skip to content

Instantly share code, notes, and snippets.

View abremhol's full-sized avatar

Adam Bremholm abremhol

  • Göteborg, Sweden
View GitHub Profile
@abremhol
abremhol / archinstall.md
Created December 11, 2019 07:00 — forked from xtrymind/archinstall.md
Windows 10 and Arch Linux dual boot with UEFI

Arch Linux installation (Windows 10 dual boot)

Before

  1. Disable Windows Fast-Startup
  2. Disable Secure Boot

Partitioning

@abremhol
abremhol / smart-caps-lock.md
Last active April 25, 2020 15:23 — forked from tanyuan/smart-caps-lock.md
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

  • Send Escape if you tap Caps Lock alone.
  • Send Control if you press Caps Lock with another key.

For both Vim and Emacs world.

GNU/Linux

Step 1. Install XCAPE

@abremhol
abremhol / CapsLockCtrlEscape.ahk
Last active August 21, 2020 12:13 — forked from sedm0784/CapsLockCtrlEscape.ahk
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own and Ctrl when used in combination with another key, à la Steve Losh. Adapted from one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281). (Plus contribs from @randy909 & @mmikeww.)
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}

Adding multiple ssh accounts

*Add config in .ssh folder *Add different domains with the different corresponding keys ssh.azure, github.com etc. *Can also autoadd into ssh agent

@abremhol
abremhol / dns-sync.sh
Created October 8, 2020 13:34 — forked from matthiassb/dns-sync.sh
Init.d script for keeping WSL resolv.conf in-sync with Windows
#! /bin/bash
### BEGIN INIT INFO
# Provides: dns-sync
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Synchronizes /etc/resolv.conf in WLS with Windows DNS - Matthias Brooks
### END INIT INFO
@abremhol
abremhol / gist:984c42637fab9cfe36cccefad66ba6f8
Created December 18, 2022 07:00
Fix open ssl azure credential provider ubuntu 22
https://stackoverflow.com/questions/72001969/ubuntu-22-04-jetbrains-rider-cannot-run-integration-tests
sed -i 's/openssl_conf = openssl_init/#openssl_conf = openssl_init/g' /etc/ssl/openssl.cnf
""" Map leader to space ---------------------
let mapleader=" "
""" Plugins --------------------------------
set surround
set commentary
set NERDTree
set quickscope
""" Plugin settings -------------------------