Skip to content

Instantly share code, notes, and snippets.

View leandropincini's full-sized avatar

Leandro Pincini leandropincini

  • São Paulo - SP - Brazil
View GitHub Profile
@joshschmelzle
joshschmelzle / remap-capslock-to-control-win10.md
Last active November 9, 2024 10:42
Remap Caps Lock to Control on Windows 10

Ways to remap caps lock to control on Windows 10

These methods in this gist worked for me on my U.S.-based keyboard layouts. I am unsure about other layouts. If you have problems, revert your changes; delete the registry key you created (and reboot).

Update: you should probably scroll down to approach 4 where I suggest using Microsoft PowerToys Keyboard Manager.

Approach 1. Manually through regedit

Navigate to and create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map.

@davidecavestro
davidecavestro / JiraIssueIterator.java
Last active May 10, 2019 17:55
An iterator providing paginated access to JIRA REST services issue search results, in order to simplify 'maxResults' management. Every element is an iterator on the results of a single REST service call, hence obtaining ondemand fetches.
public class JiraIssuesIterator implements java.util.Iterator<java.util.Iterator<Issue>>{
SearchRestClient searchClient
int pageSize
String jql
Set<String> fields
int startAt = 0
int consumedIssuesCounter = 0
int issueTotal
@DarrenN
DarrenN / .gitignore
Last active December 22, 2022 14:41 — forked from avescodes/Editing Clojure with Emacs
Emacs setup for Clojure
shibuya.el
dazza.el
elpa/
places
eshell/
.smex-items
ac-comphist.dat
projectile-bookmarks.eld
@ghoseb
ghoseb / ns-cheatsheet.clj
Last active November 7, 2024 19:26 — forked from alandipert/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
;;
;; NS CHEATSHEET
;;
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;;
;; * :import refers Java classes to the current namespace.
;;
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.