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 / premake4.lua
Created October 22, 2011 09:43 — forked from zao/premake4.lua
Horror, oh the horror! premake4.
solution "brigade"
configurations { "Debug", "Release" }
location "build"
defines {
"WIN32",
"_WIN32_WINNT=0x0600",
"_CRT_SECURE_NO_WARNINGS=1",
"_SCL_SECURE_NO_WARNINGS=1",
"_WINDOWS",
@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
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 / gitlab.md
Last active January 22, 2020 09:17 — forked from jhoughtelin/gitlab.sh
Git lab install on smartos

Gitlabs on Smartos

Note this script is not executable. Please read through and manually apply each command.

Install necessary packages

  pkgin up
  pkgin -y in \
        bash \
        coreutils \
        curl \

gcc47 \

@rem @echo off
@rem ---------
@rem Variables
@rem ---------
@rem Input/Ouput Root Directories
set "source_dir=C:\Users\Admin\Code\Git\quassel"
set "build_dir=C:\Users\Admin\Code\Git\quassel\build"
Follow these steps
============
1) Create a folder on local disk Eg: C:\Users\keerthip\Documents\Dropbox
2) Create a Drive Letter Mapping eg:(H:) to the folder path in windows with following command
subst H: C:\Users\keerthip\Documents\Dropbox
3) Install Dropbox desktop software in advanced Mode.
Select the new local drive H: and sync either selective folders or all folder to local drive ( which is original folder path)
4) Wait till content is fully synced from web account
5) Pause Syncing and Exit Dropbox
6) Delete local folder drive mapping with following command
@fire
fire / install.md
Last active August 29, 2015 14:12 — forked from surjikal/install.md
  1. Install JDK 1.8

  2. See if JAVA_HOME ENV variable is set to 1.8. If not, add this line in your ~/.bashrc:

    export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
    

    And apply the changes to your session:

source ~/.bashrc

@fire
fire / serve.go
Last active August 29, 2015 14:14 — forked from paulmach/serve.go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main
package main
import (
"fmt"
"net/http"
)
var urls = []string{
"http://pulsoconf.co/",
"http://golang.org/",
@fire
fire / README.md
Last active August 29, 2015 14:15 — forked from tonybruess/README.md

Upgrade e1000e drivers on Ubuntu

Simply run ./upgrade.sh.

Information

Make sure to run shutdown -r now after completing installation.

Also, use lshw -C network to verify the driver installation.

If the driver is still outdated after reboot, make sure /etc/modules contains e1000e.