Skip to content

Instantly share code, notes, and snippets.

@popurax
popurax / markdown.css
Last active January 9, 2018 08:39
vscodeで使うmarkdown.css
/* 背景を白に */
body {
background-color: white;
}
/* 文字を黒っぽく */
.vscode-dark {
color: rgb(30, 30, 30);
}
@popurax
popurax / p3x2 1673.2Hs
Created December 13, 2017 14:46
zcash-mining
~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
// ==UserScript==
// @name hypothesis
// @namespace http://www.test.co.jp
// @version 0.1
// @description hypothesis bookmarkret run of all sites.
// @match *
// @copyright 2014+, I
// ==/UserScript==
javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();
@popurax
popurax / c4.4xlarge
Last active October 3, 2017 12:34
xmr-stak-cpu
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
NUMA node(s): 1
@popurax
popurax / xmr-stak-cpu
Created October 2, 2017 15:12
m4_16xlarge
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 64
On-line CPU(s) list: 0-63
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 2
NUMA node(s): 2
■■■■■ lscpu ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 36
On-line CPU(s) list: 0-35
Thread(s) per core: 2
Core(s) per socket: 9
Socket(s): 2
NUMA node(s): 2
@popurax
popurax / all.md
Last active April 27, 2017 07:51
書きなぐって覚えるJava言語

##サル以下の自分から見たJavaの概要

1995年にSumMicrosystemが開発したJava言語。オラクルに食われた。 C++言語から構造化プログラミングを、Smalltalkからはオブジェクト指向を混ぜてコードを書くことができる。 2017年になってもプログラミングのランキングみたいなので1位をキープしている。業務系では飛びぬけて使われている。 でもGoやらRustやらのモダンな言語に世代が移りそう。 Javaを学ぶ前にCをやっていたけれど、構造化はCから来ていることを今知った Javaはいろいろ真似て作ってきた

CPU、OSの環境の違いを無視

@popurax
popurax / Transcend-16GB(9173BA)
Created March 12, 2017 19:25
自分が持ってるストレージのベンチマーク
-----------------------------------------------------------------------
CrystalDiskMark 5.2.1 x64 (C) 2007-2017 hiyohiyo
Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes
Sequential Read (Q= 32,T= 1) : 20.080 MB/s
Sequential Write (Q= 32,T= 1) : 10.615 MB/s
Random Read 4KiB (Q= 32,T= 1) : 3.844 MB/s [ 938.5 IOPS]
@popurax
popurax / c3_8xlarge
Last active February 1, 2018 14:44
AWS EC2 xmr-stak-cpu Mining
■■■ lscpu ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 32 ( 2cpu * 4core * 2thread )
On-line CPU(s) list: 0-31
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 2
@popurax
popurax / HOGErand.sh
Created February 28, 2017 11:18
ターミナルにHOGE乱舞
while true ; do echo -ne "\033[$[$RANDOM%10]A\033[$[$RANDOM%10]B\033[$[$RANDOM%10]C\033[$[$RANDOM%10]D\033[$[$RANDOM%9];$[$RANDOM%7+40];$[$RANDOM%7+90]m HOGE"; sleep 0.0001; done