Skip to content

Instantly share code, notes, and snippets.

View uchan-nos's full-sized avatar

Kota UCHIDA uchan-nos

View GitHub Profile
182: Thu Jun 8 09:19:36 DST 2017: OK
kernel/cgroup/cgroup.c:439:13: warning: 'cgroup_get' defined but not used [-Wunused-function]
static void cgroup_get(struct cgroup *cgrp)
^
183: Thu Jun 8 09:24:55 DST 2017: OK
kernel/cgroup/cgroup.c:439:13: warning: 'cgroup_get' defined but not used [-Wunused-function]
static void cgroup_get(struct cgroup *cgrp)
^
184: Thu Jun 8 09:30:40 DST 2017: OK
kernel/cgroup/cgroup.c:439:13: warning: 'cgroup_get' defined but not used [-Wunused-function]
uchan@uchan-lavie:~/workspace/github.com/HariboteOS/harib27f/haribote$ make
../../z_tools/make -r ipl09.bin
make[1]: ディレクトリ '/home/uchan/workspace/github.com/HariboteOS/harib27f/haribote' に入ります
../../z_tools/nask ipl09.nas ipl09.bin ipl09.lst
make[1]: ../../z_tools/nask: コマンドが見つかりませんでした
Makefile:34: ターゲット 'ipl09.bin' のレシピで失敗しました
make[1]: *** [ipl09.bin] エラー 127
make[1]: ディレクトリ '/home/uchan/workspace/github.com/HariboteOS/harib27f/haribote' から出ます
Makefile:28: ターゲット 'default' のレシピで失敗しました
make: *** [default] エラー 2
void f() {
if (finfo != 0) {
/* ファイルが見つかった場合 */
appsiz = finfo->size;
p = file_loadfile2(finfo->clustno, &appsiz, fat);
if (appsiz >= 36 && strncmp(p + 4, "Hari", 4) == 0 && *p == 0x00) {
segsiz = *((int *) (p + 0x0000));
esp = *((int *) (p + 0x000c));
datsiz = *((int *) (p + 0x0010));
dathrb = *((int *) (p + 0x0014));
$ dig www.iij.ad.jp. AAAA
; <<>> DiG 9.9.5-11ubuntu1.3-Ubuntu <<>> www.iij.ad.jp. AAAA
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33579
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
@uchan-nos
uchan-nos / rpn.go
Created November 22, 2015 02:08
Reverse Polish Notation Calculator in Golang. (naive implementation)
package main
import (
"fmt"
"strconv"
"unicode"
"unicode/utf8"
)
func skipSpaces(s []byte) []byte {
@uchan-nos
uchan-nos / webapp.py
Last active August 29, 2015 14:27
web application for socat command.
#!/usr/bin/python3
import json
import re
from socket import gethostname
from subprocess import check_output
MEM_INFO_PATTERN = re.compile('^([^ ]+): *([0-9]+) ?([A-Za-z]+)?$')
#!/usr/bin/python34
import codecs
import mistune
md_text = '''\
this is markdown.
```
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/time.h>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/ioctl.h>