Skip to content

Instantly share code, notes, and snippets.

View takumin's full-sized avatar

Takumi Takahashi takumin

View GitHub Profile
package main
import (
"context"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
@takumin
takumin / jetson-kernel-build.sh
Last active October 17, 2017 10:50
Jetson TX1/2 Linux Kernel Build
#!/bin/sh
set -e
################################################################################
# Variables
################################################################################
# NVIDIA Linux For Tegra Source URL
: ${SOURCE_URL:="https://developer.nvidia.com/embedded/dlc/l4t-sources-24-2-1"}
@takumin
takumin / jetson-debootstrap.sh
Last active June 1, 2017 15:12
Jetson TX1/2 Ubuntu Debootstrap
#!/bin/sh
#
# Debootstrap Root FileSystem for NVIDIA Jetson TX1
#
# Certified Version: L4T R24.2.1
# Require Package: Jetson TX1 64-bit Driver Package
#
# Step by Step
#
# 1. Connect USB Drive or SATA SSD/HDD
#!/bin/sh
set -e
VERSION=3.9.1
WORK_DIR=/tmp/llvm
DOWN_DIR=$WORK_DIR/down
SRC_DIR=$WORK_DIR/src
BUILD_DIR=$WORK_DIR/build
# Maintainer: Thomas Krug <[email protected]>
# Contributor: Thomas Krug <[email protected]>
pkgname=pulseview
pkgver=0.3.0
pkgrel=1
pkgdesc="A Qt based logic analyzer GUI for sigrok."
arch=('i686' 'x86_64')
url="http://sigrok.org/wiki/Main_Page"
license=('GPL3')
package main
import (
"log"
"net/http"
"regexp"
"strconv"
"time"
"github.com/PuerkitoBio/goquery"
@takumin
takumin / patch-2.5.4-w32.diff
Created August 23, 2015 03:49
GNU Patch 2.5.4 for W32 Dos Version.
diff --git backupfile.c backupfile.c
index 7f4da17..029bd7a 100644
--- backupfile.c
+++ backupfile.c
@@ -65,8 +65,10 @@ char *malloc ();
#endif
#ifndef HAVE_DECL_GETENV
+#ifndef WIN32
char *getenv ();
#!/bin/sh
#
# Run Script
# wget -qO - "https://git.io/vUGQt" | sudo sh
# Edit Script
# wget -q --content-disposition "https://git.io/vUGQt"
#
set -e
{
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "freebsd64-101rc1",
"boot_wait": "15s",
"hard_drive_interface": "sata",
"disk_size": 4096,
"guest_os_type": "FreeBSD_64",
"iso_checksum": "694b7415a0ec11b34374f51682358fed",
{
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "debian32-wheezy",
"boot_wait": "5s",
"hard_drive_interface": "sata",
"disk_size": 4096,
"guest_os_type": "Debian",
"iso_checksum": "528e1a7315da1bbf50bd4d187880a519",