Skip to content

Instantly share code, notes, and snippets.


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)

View .spacemacs
;; -*- 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
;; Base distribution to use. This is a layer contained in the directory
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
bucketzxm / .gdbinit
Created Jul 21, 2016 — forked from skyscribe/.gdbinit
GDB init file to print STL containers and data members
View .gdbinit
# 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 / postgresql-embeded-sql.cpp
Created Dec 20, 2015
some example for postgresql embeded-sql
View postgresql-embeded-sql.cpp
#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;