Skip to content

Instantly share code, notes, and snippets.

@navigaid
navigaid / server.go
Created December 13, 2017 11:21
Golang CORS Proxy Server (Example)
package main
import (
"net/http"
"encoding/json"
"github.com/unrolled/render"
)
const (
GITHUB_API_REPOS string = "https://api.github.com/users/wpioneer/repos"
@navigaid
navigaid / LinusTalk200705Transcript.wiki
Created December 10, 2017 07:46 — forked from dukeofgaming/LinusTalk200705Transcript.wiki
Linus google tech talk transcript

This is transcript of Tech Talk: Linus Torvalds on Git at Google on YouTube.


Andrew:

Thank you, for coming everybody, some of you probably already have heard of Linus Torvalds, those of you who haven't, you are the people with Macintoshes on your laps.

@navigaid
navigaid / chromebook-nix.sh
Created December 8, 2017 17:29 — forked from puffnfresh/chromebook-nix.sh
Installation script for Nix on ChromeOS
#!/bin/sh
sudo mount -o remount,exec /tmp
if [ -x /usr/local/nixstrap/proot-x86_64 ] && [ -h ~/.nix-profile ]; then
echo "Launching shell with nix-* tools!"
exec /usr/local/nixstrap/proot-x86_64 -b /usr/local/nixstrap/nix-1.8-x86_64-linux:/nix bash --init-file ~/.nix-profile/etc/profile.d/nix.sh
fi
set -e
@navigaid
navigaid / android
Created December 8, 2017 17:25 — forked from zhaostu/android
Android-x86 and Chromium OS grub2 entries.
menuentry "Android-x86" {
savedefault
set root='(hd0,3)'
linux /android-4.0-RC2/kernel quiet root=/dev/ram0 androidboot.hardware=asus_laptop acpi_sleep=s3_bios,s3_mode SRC=/android-4.0-RC2
initrd /android-4.0-RC2/initrd.img
}
@navigaid
navigaid / cros2usb
Last active February 10, 2023 00:53
A script to install Chrome OS recovery image for Pixelbook to USB stick.
#!/bin/bash
# repo: https://gist.github.com/libredot/4b7c36d7682a9fdbc00e682ea2936eaa
# author: libredot@gmail.com
set -ex
if [[ ! -b ${1} ]]; then
echo "Usage: ${0} /dev/sdx"
exit 1
fi