Skip to content

Instantly share code, notes, and snippets.

@bucketzxm
bucketzxm / remap-capslock-to-control-win10.md
Created November 19, 2020 19:11 — forked from joshschmelzle/remap-capslock-to-control-win10.md
Remap Caps Lock to Control on Windows 10

Create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

or use PowerShell (run as Admin)

;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@bucketzxm
bucketzxm / tmux-cheatsheet.markdown
Created January 7, 2017 08:59 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@bucketzxm
bucketzxm / .gdbinit
Created July 21, 2016 09:00 — forked from skyscribe/.gdbinit
GDB init file to print STL containers and data members
#
# STL GDB evaluators/views/utilities - 1.03
#
# The new GDB commands:
# are entirely non instrumental
# do not depend on any "inline"(s) - e.g. size(), [], etc
# are extremely tolerant to debugger settings
#
# This file should be "included" in .gdbinit as following:
# source stl-views.gdb or just paste it into your .gdbinit file
@bucketzxm
bucketzxm / postgresql-embeded-sql.cpp
Created December 20, 2015 15:48
some example for postgresql embeded-sql
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define True 1
void db_connect()
{
EXEC SQL CONNECT TO db_test@localhost:5432 USER postgres USING password;
}