Skip to content

Instantly share code, notes, and snippets.

View taruta811's full-sized avatar

Toshiki Tsuchiya taruta811

View GitHub Profile
root@R4:~# trace-cmd record -p function_graph -g input_action_end_dx4
plugin 'function_graph'
Hit Ctrl^C to stop recording
^CCPU0 data recorded at offset=0x4b5000
4096 bytes in size
root@R4:~# trace-cmd report
cpus=1
<idle>-0 [000] 4724.772017: funcgraph_entry: | input_action_end_dx4() {
<idle>-0 [000] 4724.772043: funcgraph_entry: | decap_and_validate() {
<idle>-0 [000] 4724.772043: funcgraph_entry: | get_srh() {
@taruta811
taruta811 / env.sh
Last active February 22, 2019 02:04
End.DX4
#!/bin/bash
##
# ping client1(192.168.1.100) to client2(192.168.2.100)
#
# eth0 eth0 eth1 eth1 eth0 eth0
# (client1) ----------- (sr1) ----------- (sr2) ---------- (client2)
# 192.168.1.100/24 192.168.2.100/24
##
* HDD
Disk Test 42.67
Sequential 77.46
Uncached Write 89.79 55.13 MB/sec [4K blocks]
Uncached Write 75.85 42.91 MB/sec [256K blocks]
Uncached Read 70.84 20.73 MB/sec [4K blocks]
Uncached Read 75.75 38.07 MB/sec [256K blocks]
Random 29.45
Uncached Write 10.52 1.11 MB/sec [4K blocks]
Uncached Write 70.13 22.45 MB/sec [256K blocks]
異世界=>35
世界=>35
こと=>32
主人公=>19
物語=>19
ゲーム=>18
彼=>18
魔法=>13
事=>13
一=>13
#!/usr/bin/env python
# vim: fileencoding=utf-8
from BeautifulSoup import BeautifulSoup
import re
import urllib
import urllib2
import unicodedata
from collections import *
#!/usr/bin/env python
# coding:utf-8
import fractions
a,b,n = map(int,raw_input().split())
turn = 0
while n>=0:
if turn==0:
n-=fractions.gcd(a,n)
else:
n-=fractions.gcd(b,n)
#!/usr/bin/env python
# coding:utf-8
import itertools
import sys
n,k = map(int,raw_input().split())
a = map(int,raw_input().split())
q = input()
qs = []
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>