Skip to content

Instantly share code, notes, and snippets.

View Apsu's full-sized avatar

Eve Apsu

  • Lambda Labs
  • Pittsburgh, PA
View GitHub Profile
@Apsu
Apsu / qvwmj.txt
Last active May 8, 2021 08:51
QVWMJ
q v w m j z f u x ;
i s r t g p n e a o
y c l d k b h ' , . /
q v w m j z f ' . x
i s r t g p n e a o
y c l d k b h u , ;
@Apsu
Apsu / v4.json
Created April 17, 2021 19:15
Planck v4
{"version":1,"notes":"","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"planck/rev6","keymap":"v4","layout":"LAYOUT_ortho_4x12","layers":[["KC_ESC","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_BSPC","KC_TAB","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_QUOT","KC_ENT","KC_LCTL","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_LEFT","KC_DOWN","KC_UP","KC_RGHT","MO(3)","KC_DEL","KC_INS","KC_LALT","KC_LGUI","KC_LSFT","KC_SPC","MO(2)","KC_HOME","KC_PGDN","KC_PGUP","KC_END"],["KC_ESC","KC_Q","KC_W","KC_F","KC_P","KC_B","KC_J","KC_L","KC_U","KC_Y","KC_QUOT","KC_BSPC","KC_TAB","KC_A","KC_R","KC_
@Apsu
Apsu / v3.json
Last active April 17, 2021 18:13
Planck v3
{"version":1,"notes":"","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"planck/rev6","keymap":"v3","layout":"LAYOUT_ortho_4x12","layers":[["KC_ESC","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_BSPC","KC_TAB","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_QUOT","KC_ENT","KC_LCTL","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_QUES","KC_EXLM","MO(3)","KC_DEL","KC_INS","KC_LALT","KC_LGUI","KC_LSFT","KC_SPC","MO(2)","KC_RALT","KC_RGUI","KC_APP","KC_RCTL"],["KC_ESC","KC_Q","KC_W","KC_F","KC_P","KC_B","KC_J","KC_L","KC_U","KC_Y","KC_QUOT","KC_BSPC","KC_TAB","KC_A","KC_R","KC
@Apsu
Apsu / apsu.json
Last active April 15, 2021 07:10
QMK keymap
{"version":1,"notes":"","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"planck/rev6","keymap":"planck_rev6_layout_ortho_4x12_mine","layout":"LAYOUT_ortho_4x12","layers":[["KC_ESC","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_BSPC","KC_TAB","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_ENT","KC_LCTL","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_QUOT","MO(3)","KC_INS","KC_DEL","KC_LGUI","KC_LALT","KC_LSFT","KC_SPC","MO(2)","KC_LEFT","KC_DOWN","KC_UP","KC_RGHT"],["KC_ESC","KC_Q","KC_W","KC_F","KC_P","KC_B","KC_J","KC_L","KC_U","KC_Y","KC_SCLN","KC_B
@Apsu
Apsu / apsu.json
Created April 14, 2021 17:25
Fancy Planck Rev6 Keymap
{"version":1,"notes":"","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"planck/rev6","keymap":"apsu","layout":"LAYOUT_ortho_4x12","layers":[["KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_BSPC","KC_ESC","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_LCTL","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_BSLS","KC_GRV","KC_LPRN","KC_RPRN","KC_LGUI","KC_LSFT","KC_LALT","LT(2,KC_ENT)","KC_SPC","KC_MINS","KC_EQL","KC_LBRC","KC_RBRC"],["KC_TAB","KC_Q","KC_W","KC_F","KC_P","KC_B","KC_J","KC_L","KC_U","KC_Y","KC_SCLN","KC_BSPC","KC_ESC","KC_
@Apsu
Apsu / 10-power.rules
Created August 23, 2012 05:38
power_supply udev rule
ACTION=="change", SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="[01]", RUN+="power %E{POWER_SUPPLY_ONLINE}"
@Apsu
Apsu / tncc.py
Created October 24, 2020 02:06
TNCC Python 2 Pulse Secure
#!/usr/bin/python2
# -*- coding: utf-8 -*-
import sys
import mechanize
import cookielib
import struct
import ssl
import base64
import collections
@Apsu
Apsu / warping.md
Last active March 26, 2020 06:40
Warping

Warping

Keep track of

  • Camera look direction
    • Use to calculate relative rotation to transform.rotation
  • Move direction
    • Use to calculate relative rotation to transform.forward

OnAnimatorIK

@Apsu
Apsu / HeadLook.cs
Created March 10, 2020 04:15
Unity HeadLook
using UnityEngine;
public class HeadLook : MonoBehaviour
{
[Header("Configs")]
[Range(0.0f, 1.0f)]
public float headLookWeight;
private Animator animator;
private Vector3 lookAtPosition;
@Apsu
Apsu / modaledit.json
Created March 4, 2020 21:06
ModalEdit Bindings
"modaledit.keybindings": {
"\n": [
"lineBreakInsert",
"cursorDown",
"cursorHome"
],
" ": "modaledit.enterInsert",
"y": "removeSecondaryCursors",
// Selection mode on/off
"s": "modaledit.toggleSelection",