Skip to content

Instantly share code, notes, and snippets.

Avatar

Hiroshi Shimo hshimo

View GitHub Profile
@hshimo
hshimo / keybase.md
Created Sep 12, 2019
keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am hshimo on github.
  • I am hshimo (https://keybase.io/hshimo) on keybase.
  • I have a public key ASDBMgt4TaotWM7aAkiaL5PVDFEvhmOVG9auILqPv0vwcwo

To claim this, I am signing this object:

@hshimo
hshimo / script.js QBHouse-mail-notification-for-no-waiting
View script.js
/**
* This is a code for Google App Script to see if there is a line for QBHouse at Kojimachi.
* main(): Access to qb house kojimachi homepage and check the number of people in line.
* Replace an email with yours.
* doGet(): This function is for publishing a web service as API (only one endpoint).
*/
function main() {
var url = 'http://www.qbhouse.co.jp/search/detail.php?id=475'; // QB HOUSE Kojimachi
var text = UrlFetchApp.fetch(url).getContentText('utf-8');
View cpp-ethereum_02.make
2016-07-23 16:59:30 +0900
make
/usr/local/Cellar/cmake/3.6.0_1/bin/cmake -H/tmp/cpp-ethereum-20160723-75649-1e7kds0 -B/tmp/cpp-ethereum-20160723-75649-1e7kds0 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.6.0_1/bin/cmake -E cmake_progress_start /tmp/cpp-ethereum-20160723-75649-1e7kds0/CMakeFiles /tmp/cpp-ethereum-20160723-75649-1e7kds0/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cpp-ethereum_BuildInfo.h.dir/build.make CMakeFiles/cpp-ethereum_BuildInfo.h.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f utils/secp256k1/CMakeFiles/secp256k1.dir/build.make utils/secp256k1/CMakeFiles/secp256k1.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f utils/libscrypt/CMakeFiles/scrypt.dir/build.make utils/libscrypt/CMakeFiles/scrypt.dir/depend
@hshimo
hshimo / gist:d3b74396164f6ec379db
Created Jan 18, 2015
Verify onename.com/hshimo
View gist:d3b74396164f6ec379db
Verifying that +hshimo is my openname (Bitcoin username). https://onename.com/hshimo
View my-brew-install.sh
#!/bin/sh
brew install lv
brew install wget
brew install zsh-completions
brew install mobile-shell
brew install emacs
# programming font Ricty
#brew tap sanemat/font
@hshimo
hshimo / getTimeFromUuidv1.js
Last active Dec 27, 2015
get time from uuid.v1 string
View getTimeFromUuidv1.js
/**
* extract time from uuid.v1 string
*
* originally from
* node-uuid/uuid.js at master · krassif/node-uuid
* https://github.com/krassif/node-uuid/blob/master/uuid.js
*
* @param buf buffer
* @param offset offset
* @returns {number} msec
@hshimo
hshimo / file0.txt
Last active Dec 20, 2015
簡単、自動! MySQL を AutoMySQLBackup + cron でバックアップ ref: http://qiita.com/hshimo/items/b993416e0ff645c0bd50
View file0.txt
#!/bin/sh
/usr/local/bin/automysqlbackup /etc/automysqlbackup/myserver.conf
chown root.root /var/backup/db* -R
find /var/backup/db* -type f -exec chmod 400 {} \;
find /var/backup/db* -type d -exec chmod 700 {} \;
View file0.txt
$result = $igo->wakati("すもももももももものうち");
print_r($result);