Skip to content

Instantly share code, notes, and snippets.

View fire's full-sized avatar

K. S. Ernest (iFire) Lee fire

View GitHub Profile
@fire
fire / 0_reuse_code.js
Created May 27, 2014 23:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@fire
fire / gist:a8b02906404230f4052e
Last active August 29, 2015 14:01
Setup computer for work
@fire
fire / gist:d3f49137a939df987937
Created June 7, 2014 09:00
Run groove basin limited to one cpu to not crash computer
sudo su - groove
cd groovebasin
tmux 

taskset -c 0 npm start

@fire
fire / gist:42167f13d394069e7954
Last active August 29, 2015 14:02
Prores workflow

#How do I export prores videos from Adobe Premiere?

C:\ffmpeg\ffmpeg-20140608-git-d4be3a8-win64-shared\bin\ffmpeg -i AloneTogether.avs -r 23.976 -vcodec prores -profile 3 AloneTogether.1280x540.prores422.mov# Prores workflow

Importing prores into Adobe Premiere works fine.

Source

Download Debugmode FrameServer

git clone https://github.com/jystic/network-info.git
curl https://gist.githubusercontent.com/fire/5a5236653f4ad5099321/raw/db7518eef55a37ed57811716811c553fec701ac9/network-info.patch > network-info.patch
patch network-info/cbits/network-unix.c network-info.patch
mkdir test
cd test/
cabal sandbox init
cabal sandbox add-source ../network-info
cabal install git-annex --bindir=$HOME/bin -f"-assistant -webapp -webdav -pairing -xmpp -dns"
@fire
fire / gist:dce3576b5631b807070e
Last active June 5, 2023 04:59
HOWTO install Ubuntu to a Native ZFS Root Filesystem

These instructions are for Ubuntu. The procedure for Debian, Mint, or other distributions in the DEB family is similar but not identical.

System Requirements

  • 64-bit Ubuntu Live CD. (Not the alternate installer, and not the 32-bit installer!)
  • AMD64 or EM64T compatible computer. (ie: x86-64)
  • 8GB disk storage available.
  • 2GB memory minimum.

Computers that have less than 2GB of memory run ZFS slowly. 4GB of memory is recommended for normal performance in basic workloads. 16GB of memory is the recommended minimum for deduplication. Enabling deduplication is a permanent change that cannot be easily reverted.

@fire
fire / gist:66958e3c3d48c16779e8
Created June 27, 2014 21:00
dasjoe's zfs install
zpool create -f -o ashift=12 -O atime=off -O canmount=off -O compression=lz4 -O mountpoint=/ -R /mnt -O normalization=formD rpool mirror /dev/sda /dev/sdb
zpool export rpool
## 4 HDDs
# for disk in a b c d; do parted -s /dev/sd$disk mkpart GRUB2 48s 2047s; parted -s /dev/sd$disk set 2 bios_grub on; done
# 2 HDDs
for disk in a b; do parted -s /dev/sd$disk mkpart GRUB2 48s 2047s; parted -s /dev/sd$disk set 2 bios_grub on; done
zpool import -d /dev/disk/by-id -R /mnt rpool
@fire
fire / groovebasin.conf
Created June 28, 2014 22:21
Groovebasin upstart script
#!upstart
# using upstart http://upstart.ubuntu.com/getting-started.html and node forever https://github.com/nodejitsu/forever/
# to run server
# redhat has additional sudo restrictions, you must comment out 'Default requiretty' from /etc/sudoers
#startup monitoring script derived from http://stackoverflow.com/questions/11084279/node-js-setup-for-easy-deployment-and-updating
description "node.js groovebasin server"
author "fire"
env PROGRAM_NAME="nodejs"
env FULL_PATH="/home/groove/groovebasin/"
@fire
fire / 01-elementaryos-zfs.md
Last active May 5, 2022 09:46
Install Elementary Freya on ZFS root

Experimental 2015-04-25

# Create a usb disk with Elementary OS and Startup Disk Creator
# Boot it
sudo -i
apt-add-repository --yes ppa:zfs-native/stable
apt-get update
apt-get install --yes spl-dkms zfs-dkms ubuntu-zfs    

setup zfs

Sat, 28 Jun 2014 20:42:02 -0700
<iFire> How do you adjust the quality of the stream and the output format?
<andrewrk> iFire, it's hard coded at the moment
<iFire> I want to change the hard code
<andrewrk> lib/player.js line 290
<andrewrk> this.grooveEncoder.bitRate = 256 * 1000;
<andrewrk> do you want to make it something other than mp3?
<iFire> yeah
<andrewrk> which?
<iFire> andrewrk: I want to see if I can output alac