Skip to content

Instantly share code, notes, and snippets.

View KalenAnson's full-sized avatar
🏞️
Building.

Kalen KalenAnson

🏞️
Building.
View GitHub Profile
@KalenAnson
KalenAnson / finding-uid-of-lxc-containers.md
Created April 25, 2024 15:43 — forked from nottrobin/finding-uid-of-lxc-containers.md
Find the user IDs of LXC containers, for either Snap or Deb installs

First we need to find the user ID of the container's user.

LXD might be installed in one of two ways. You can tell which, by running:

$ which lxc
/usr/bin/lxc  # This means it's installed as a deb
# OR
/snap/bin/lxc  # This means it's installed as a snap
@KalenAnson
KalenAnson / .xinitrc_awesome
Last active September 23, 2021 23:26
Awesome window manager .xinitrc
#!/bin/bash
# ø
# Place this file in the following location:
# $HOME/.xinitrc
# Disable bell
xset -b
# Disable all Power Saving Stuff
xset -dpms

Keybase proof

I hereby claim:

  • I am kalenanson on github.
  • I am kalen (https://keybase.io/kalen) on keybase.
  • I have a public key ASBvOeqkz2HclsW-jWw8FsG77EWgWz3tNdTIHBJkaFS50go

To claim this, I am signing this object:

@KalenAnson
KalenAnson / key.mp
Last active February 16, 2018 15:42
Caps Lock to Control - Linux (See comments for usage waaay down at the bottom)
keymaps 0-127
keycode 1 = Escape
alt keycode 1 = Meta_Escape
shift alt keycode 1 = Meta_Escape
altgr alt keycode 1 = Meta_Escape
shift altgr alt keycode 1 = Meta_Escape
control alt keycode 1 = Meta_Escape
shift control alt keycode 1 = Meta_Escape
altgr control alt keycode 1 = Meta_Escape
shift altgr control alt keycode 1 = Meta_Escape
################################################################################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
################################################################################
# ø
################################################################################
@KalenAnson
KalenAnson / .aliases
Last active August 7, 2017 19:07
OSX Dot Files
# Change to dev directory
alias dev="cd ~/Development"
@KalenAnson
KalenAnson / snippets.cson
Last active April 12, 2017 20:46
Atom snippets
# ø snippets
'.text.html.php':
'Classify':
'prefix': '..'
'body': '->'
'.source.c':
'Classify':
'prefix': '..'
'body': '->'
'*':
@KalenAnson
KalenAnson / lagrange.js
Created September 28, 2016 19:12 — forked from maccesch/lagrange.js
Lagrange Polynomial Interpolation. Example: http://jsfiddle.net/maccesch/jgU3Y/
/**
* At least two points are needed to interpolate something.
* @class Lagrange polynomial interpolation.
* The computed interpolation polynomial will be reffered to as L(x).
* @example
* var l = new Lagrange(0, 0, 1, 1);
* var index = l.addPoint(0.5, 0.8);
* console.log(l.valueOf(0.1));
*
* l.changePoint(index, 0.5, 0.1);

Keybase proof

I hereby claim:

  • I am kalenanson on github.
  • I am kalen (https://keybase.io/kalen) on keybase.
  • I have a public key ASCZCQ-3YBeAFiB0gTxUuYL56wdDWavjg4jopR8egA5Gkgo

To claim this, I am signing this object:

@KalenAnson
KalenAnson / xboxdrv.cfg
Created June 29, 2016 12:46
XBOXDRV Config
# xboxdrv config file
[xboxdrv]
ui-clear = true
[ui-axismap]
X1 = ABS_X
Y1 = ABS_Y
X2 = ABS_RX
Y2 = ABS_RY