Skip to content

Instantly share code, notes, and snippets.

@wixo
wixo / capslock-softtab.markdown
Last active July 22, 2021 04:22
caps-lock to soft-tab

caps-lock to soft-tab

Well, some time ago I decided to use smart-tabs as my solution for the tabs vs spaces holy war. And more recently I decided to override the capslock in my macbook because, well, who uses caps-lock anymore? so I said: why not to override caps-lock to a fixed soft-tab (2 spaces), after some hours googling how to make something like this to work I came up with a hacky way to make it work with sublime text, I will share the links and steps if you want to get the same functionality

  1. First you need to disable the caps-lock key as showed here: (http://stackoverflow.com/a/8437594)
  2. In that same text they mention to install PCKeyboardHack, install it too, also we will need a complementary app named KeyRemap4MacBook they are from the same publisher
  3. Next, with PCKeyboardHack you will tick the Change Caps Lock and insert the 110 keycode ( PC Application Key
@plentz
plentz / nginx.conf
Last active April 19, 2025 04:46
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@paulirish
paulirish / data-markdown.user.js
Last active October 22, 2024 14:19
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.