Skip to content

Instantly share code, notes, and snippets.

@arkki
arkki / gist:5b5851de1210393269df91e14992afab
Last active November 20, 2023 13:30
macos remap key § to `
# Swap § to ` (what I use for tmux modifier and terminal shortcuts)
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035},{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064}]}'
# To swap back
hidutil property --set '{"UserKeyMapping":[]}'
@arkki
arkki / .gitignore
Created September 12, 2023 08:20 — forked from salcode/.gitignore
.gitignore file for a general web project - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore
# Bare Minimum Git
# https://salferrarello.com/starter-gitignore-file/
# ver 20221125
#
# From the root of your project run
# curl -O https://gist.github.com/salcode/10017553/raw/.gitignore
# to download this file
#
@arkki
arkki / aem-fiddle-query.jsp
Created May 24, 2018 07:09
AEM Fiddle SQL2 Query
<%@include file="/libs/foundation/global.jsp"%>
<sling:defineObjects />
<%@page session="false" contentType="text/html; charset=utf-8"
pageEncoding="UTF-8"
import="org.apache.sling.api.resource.*,
java.util.*,
javax.jcr.*,
com.day.cq.search.*,
com.day.cq.wcm.api.*,

Keybase proof

I hereby claim:

  • I am arkki on github.
  • I am arkki (https://keybase.io/arkki) on keybase.
  • I have a public key whose fingerprint is FB24 78B1 AFCE ACC0 EC15 9BC8 EAF9 5EA6 E343 6481

To claim this, I am signing this object:

@arkki
arkki / tmux.md
Created October 27, 2016 09:49 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@arkki
arkki / launchTerminal.scpt
Created June 10, 2016 02:18
Iterm2 (build 3.0.0) launch new tab with Applescript to given dir
on run dir
tell application "iTerm"
activate
if (count of windows) = 0 then
set theWindow to (create window with default profile)
set theSession to current session of theWindow
else
set theWindow to current window
tell current window
set theTab to create tab with default profile