Skip to content

Instantly share code, notes, and snippets.

@troglotit
troglotit / Turn CAPSLOCK to Ctrl.reg
Created August 15, 2021 02:15 — forked from krists/Turn CAPSLOCK to Ctrl.reg
Remap Caps-Lock key to Ctrl in Windows 7/8
Windows Registry Editor Version 5.00
[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
@troglotit
troglotit / config.el
Created November 7, 2020 23:02 — forked from rangeoshun/config.el
Typescript with CSS in JS (styled-components, Emotion), JSX and graphql highlight and major mode for Emacs Doom with `mmm-mode` for *.tsx
;; Assign typescript-mode to .tsx files
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-mode))
(require 'mmm-mode)
(setq mmm-global-mode t)
(setq mmm-submode-decoration-level 0) ;; Turn off background highlight
;; Add css mode for CSS in JS blocks
(mmm-add-classes
'((mmm-styled-mode
@troglotit
troglotit / get-gravatar-image.sh
Created November 24, 2015 21:39 — forked from egel/get-gravatar-image.sh
Download Gravatar image for an email address
SIZE=500
EMAIL="sajkoooo@gmail.com"
curl "http://www.gravatar.com/avatar/$(echo -n ${EMAIL} | md5sum | awk '{print $1}')?s=${SIZE}" > gravatar.png