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 / 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);
@KalenAnson
KalenAnson / build-tmux-debian.sh
Last active August 29, 2015 14:23 — forked from niun/build-tmux-debian.sh
Build TMUX 1.9a on Debian Wheezy
#!/bin/bash
wget "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
tar -xf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
make verify
make install
# temporarily disable Varnish
# to make it easier to test changes
Header add Cache-Control "max-age=1"
RewriteEngine On
# Existing files and directories remain accessible
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.* - [L]

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software