Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
xrandr --output DP2 --left-of HDMI1 --rotate left
xsetroot -cursor_name left_ptr
xscreensaver -nosplash&
feh --bg-scale /home/seiya/Downloads/wallpaper.jpg --bg-scale /home/seiya/Downloads/wallpaper2.jpg &
exec ck-launch-session xmonad
@nuta
nuta / list
Created August 16, 2015 05:46
ffff8000001095d2 T _wait
ffff800000109405 T _call
ffff80000010a0bd T challoc
ffff800000109241 T close
ffff800000109211 T connect
ffff80000010a260 T register_server
ffff80000010a1d1 T connect_channels
ffff80000010910e T deleteHash
ffff80000010a2ae T discovery
ffff800000108f53 T initHash
@nuta
nuta / fat.c
Last active September 8, 2015 07:23
implementation of FAT32 (readonly)
#include "fat.h"
static int compare_filename(struct fat_entry *e, const char *name, const char *ext) {
return (!fat_strncmp((char *) e->name, (char *) name, fat_strlen(name)) &&
!fat_strncmp((char *) e->ext, (char *) ext, fat_strlen(ext)));
}
@nuta
nuta / example.sh
Created November 28, 2015 11:04
Filesize stat
set -v
./get_size.sh linux > linux.csv
./plot.py linux.csv
open linux.png
@nuta
nuta / test.sh
Created December 24, 2015 23:54
set -e
cd os/minios
#(sleep 9; echo '*** curl'; curl localhost:50080) &
#(sleep 11; echo '*** killing'; killall qemu-system-x86_64) &
[ -f qemu.pcap ] && rm qemu.pcap
reseasdk run --all-in-one CPREFIX=x86-elf- \
CFLAGS=-fdiagnostics-color=always HAL=x86 BUILTIN_APPS="core elf virtio"
tcpdump -r qemu.pcap -XX
#!/usr/bin/env zsh
set -e
REPOS_DIR=/var/lib/git
USERS=(nuta resea biscket)
clone(){
x=$1
[ "${x[1,5]}" != "https" ] && echo invalid url "$x" && exit 1
base=$(basename "$x" | sed -e 's/.git$//')
echo "==> $x"
- build: gcc, clang static analyzer
- test
- metrics: benchmark, test coverage, complexity, LoC
- hotspot
@nuta
nuta / gist:f9f8c3bcd939988c65f8
Created February 20, 2016 12:35
resea packages to build
- kernel
- x86
- posix_host
- cpp
- javascript
- virtio
- rtc
I, [2016-03-27T19:14:28.524519 #1665] INFO -- : Started PROPFIND "/calendar/" for 103.41.62.117 at 2016-03-27 19:14:28 +0900
I, [2016-03-27T19:14:29.448082 #1665] INFO -- : Processing by CalendarController#propfind as */*
I, [2016-03-27T19:14:29.450667 #1665] INFO -- : Parameters: {"calendar"=>"", "calendar_object"=>""}
D, [2016-03-27T19:14:29.732168 #1665] DEBUG -- : User Load (38.8ms) SELECT "users".* FROM "users" WHERE "users"."name" = $1 LIMIT 1 [["name", "seiya"]]
D, [2016-03-27T19:14:32.414299 #1665] DEBUG -- : Change Load (147.4ms) SELECT "changes".* FROM "changes" ORDER BY updated_at DESC LIMIT 1
D, [2016-03-27T19:14:32.426991 #1665] DEBUG -- : Calendar Load (1.2ms) SELECT "calendars".* FROM "calendars"
D, [2016-03-27T19:14:32.478830 #1665] DEBUG -- : Change Load (49.5ms) SELECT "changes".* FROM "changes" WHERE "changes"."calendar_id" = 3 ORDER BY updated_at DESC LI
MIT 1
D, [2016-03-27T19:14:32.528248 #1665] DEBUG -- : Change Load (47.1ms) SELECT "changes".* FROM "changes"
@nuta
nuta / Makefile
Created April 25, 2016 03:37
makefile for Resea (37188125783338e9bb8968227fd40345a03298ed)
.PHONY: _default
_default: default
# keep blank not to delete intermediate file (especially stub files)
.SECONDARY:
$(VERBOSE).SILENT:
#
# global config
#
export BUILTIN_APPS = ,kernel