Skip to content

Instantly share code, notes, and snippets.

@sideshowbarker
sideshowbarker / gist:1999657
Created March 8, 2012 08:27
shell script for invoking command-line class for validator.nu
#!/bin/sh
CLASSPATH=dependencies/commons-codec-1.4/commons-codec-1.4.jar\
:dependencies/commons-httpclient-3.1/commons-httpclient-3.1.jar\
:dependencies/commons-logging-1.1.1/commons-logging-1.1.1.jar\
:dependencies/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar\
:dependencies/commons-logging-1.1.1/commons-logging-api-1.1.1.jar\
:dependencies/icu4j-charsets-4_4_2.jar:dependencies/icu4j-4_4_2.jar\
:dependencies/jetty-6.1.26/lib/servlet-api-2.5-20081211.jar\
:dependencies/apache-log4j-1.2.15/log4j-1.2.15.jar\
:dependencies/xerces-2_9_1/xercesImpl.jar\
@kozo2
kozo2 / docker-gentoo.sh
Created May 2, 2014 16:49
gentoo docker container (on ubuntu trusty64)
sudo su
apt-get install docker.io
cd
mkdir gentoo
cd gentoo
wget http://ftp.jaist.ac.jp/pub/Linux/Gentoo/releases/amd64/current-iso/stage3-amd64-20140403.tar.bz2
tar jxpf stage3-amd64-20140403.tar.bz2
tar -c . | docker.io import - gentoo
docker.io run -t -i gentoo /bin/bash
@jesselucas
jesselucas / changroup.go
Last active April 17, 2024 14:33
Simple solution for using a WaitGroup with select{}
package main
import (
"fmt"
"sync"
"time"
)
func main() {
// Create a wait group of any size
@mattn
mattn / fw.go
Created February 9, 2017 15:41
Remove Windows Firewall Rules which is generated by "go run"
package main
import (
"fmt"
"log"
"os"
"path/filepath"
"strings"
"github.com/go-ole/go-ole"
#!/bin/bash
CPUQuota=90
CPUWeight=50
MemoryMax=
EMERGE=$HOME/bin/autoemerge
props=
if [ -n "${CPUQuota}" ]; then
props+="-p CPUQuota=${CPUQuota}% "
@zr-tex8r
zr-tex8r / kana-mix-tate.tex
Created April 16, 2017 06:50
LaTeX:LuaLaTeXだとかな混植が簡単にできて最高だという件
% LuaLaTeX文書,UTF-8
% jlreqクラス・縦組の例
\documentclass[lualatex,tate,paper=a6,twocolumn]{jlreq}
\usepackage{luatexja-fontspec}
\setmainjfont[
YokoFeatures={JFM=jlreq}, %jlreqのJFMを
TateFeatures={JFM=jlreqv}, %維持する
AltFont={% 代替フォント設定
{Range="3040-"30FF, Font=IPAexMincho},
{Range={`☃,`⛄}, Font=SourceHanSans}},
@oznu
oznu / README.md
Last active November 22, 2023 19:49
QEMU + Ubuntu ARM aarch64

QEMU + Ubuntu ARM aarch64

These are the steps I used to get Ubuntu ARM aarch64 running with QEMU on OSX.

Get Ubuntu Image and QEMU EFI:

wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-arm64-uefi1.img
wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd
@voluntas
voluntas / ayame_labo.rst
Last active July 3, 2024 00:08
時雨堂 Ayame Labo 開発ログ

時雨堂 Ayame Labo 開発ログ

日時:2022-04-19
作:時雨堂
バージョン:2022.1
URL:https://ayame-labo.shiguredo.app/

このサービスに興味がある人はこの資料に Star をつけてもらえると嬉しいです。