Skip to content

Instantly share code, notes, and snippets.

View fire's full-sized avatar

K. S. Ernest (iFire) Lee fire

View GitHub Profile
[====================== 100 % =====================]
[sort ispc]: [90322.421] million cycles
[====================== 100 % =====================]
[sort ispc + tasks]: [31999.193] million cycles
[====================== 100 % =====================]
[sort serial]: [30535.641] million cycles
(0.34x speedup from ISPC, 0.95x speedup from ISPC + tasks)
@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.

package main
import (
"fmt"
"net/http"
)
var urls = []string{
"http://pulsoconf.co/",
"http://golang.org/",
@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
@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

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
@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"
@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 \

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"