Skip to content

Instantly share code, notes, and snippets.

View sksat's full-sized avatar
💭
🛰️

sksat sksat

💭
🛰️
View GitHub Profile
@sksat
sksat / persistent.hpp
Created May 9, 2017 08:17
C++でmksrcを使わずにKHPCを使う方法(手抜き)
#ifndef PERSISTENT_HPP_
#define PERSISTENT_HPP_
extern "C" {
#include "khpc0.h"
void persistent_default(){
persistent_grp(256, "p-vars.pbd", "p-vars_%x.pbd", "(local)");
return;
}
@sksat
sksat / memo.txt
Created May 15, 2017 11:24
LinuxでのOSECPU-VMのビルド
ちょっと躓いたのでメモ(主にblike関係)
まずはOSECPU-VMのリポジトリをclone
```
git clone https://github.com/osecpu/osecpu-vm-rev2.git
```
あと、描画用のライブラリのblikeもcloneしてくる
@sksat
sksat / main.md
Last active October 27, 2017 14:17
HerokuでRedmine

日本語の情報乱立しすぎていてわけわからんかったのでうまくいったやつだけまとめておく

基本は公式の仰せのままに.

準備

まずはRedmineのrepoをcloneしてくる

$ git clone https://github.com/redmine/redmine.git
$ cd redmine
@sksat
sksat / build-cross-gcc-freebsd9.sh
Last active February 1, 2018 05:01
freebsd9向けのクロスコンパイラのビルド
#!/bin/bash
mkdir build
cd build
wget ftp://ftp.gnu.org/gnu/binutils/binutils-2.29.tar.gz
tar zxvf binutils-2.29.tar.gz
cd binutils-2.29
./configure --enable-libssp --enable-gold --enable-ld --target=x86_64-pc-freebsd7 --prefix=/usr/cross-freebsd
make
@sksat
sksat / fuxsocy.py
Created June 2, 2018 09:21
joke program
import os, sys, time
def prog_bar(length=23):
for i in range(length):
sys.stdout.write('#'*i + '\r')
sys.stdout.flush()
time.sleep(0.05)
sys.stdout.write('#'*length + '\t\t' + "COMPLETE\n")
def task(msg, wait=1):
@sksat
sksat / dl_grib2.sh
Last active July 18, 2019 06:32
統計風データ処理
#!/bin/bash
# sample url: http://database.rish.kyoto-u.ac.jp/arch/jmadata/data/gpv/original/2017/08/10/Z__C_RJTD_20170810060000_MSM_GPV_Rjp_L-pall_FH00-15_grib2.bin
url_base="http://database.rish.kyoto-u.ac.jp/arch/jmadata/data/gpv/original/"
fname_1="Z__C_RJTD_"
fname_2=_"MSM_GPV_Rjp_L-pall_FH00-15_grib2.bin"
year=2017
month=8
@sksat
sksat / index.html
Created December 17, 2019 08:39
第17回伊豆大島共同打上実験 地図
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GSI Tiles on Leaflet</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
@sksat
sksat / 20191020_01.eng
Created December 24, 2019 10:35
20191020燃焼試験データ
LARKSPUR-XP.300 0.0 0.0 0.0 0.303 0.303 CORE
0.0 41.08228714
0.0005 49.24299857
0.001 56.31184286
0.0015 63.47709
0.002 71.08034143
0.0025 79.32069
0.003 88.18556143
0.0035 96.89744571
0.004 105.5338843
@sksat
sksat / ubench-3600.log
Last active May 5, 2020 09:31
Ryzen 5 3600 benchmark
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
Version 5.1.3 Based on the Byte Magazine Unix Benchmark
Multi-CPU version Version 5 revisions by Ian Smith,
@sksat
sksat / ubench-3700x.log
Last active May 21, 2020 05:51
Ryzen 7 3700X benchmark
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
Version 5.1.3 Based on the Byte Magazine Unix Benchmark
Multi-CPU version Version 5 revisions by Ian Smith,