Skip to content

Instantly share code, notes, and snippets.

View sachin21's full-sized avatar
💭
Feel free to email to me.

Satoshi Ohmori sachin21

💭
Feel free to email to me.
View GitHub Profile
@aurels
aurels / gist:843967
Created February 25, 2011 15:45
stream system command output to STDOUT (ruby)
IO.popen('ant run') do |io|
while (line = io.gets) do
puts line
end
end
@adeonhy
adeonhy / notify_mining.sh
Created January 3, 2018 17:23
ETHマイニング状況をslackに投げるやつ
ETH_POOL_URL=https://ethermine.org/miners/XXXXXXX
SLACK_CH=XXXXXXX
wget $ETH_POOL_URL -O - 2>/dev/null \
| w3m -dump -cols 2000 -T 'text/html' \
| grep -E 'Unpaid Balance.*ETH' \
| slack-cli -d $SLACK_CH
version: "2"
services:
node:
build:
context: ./
dockerfile: docker/node/Dockerfile
volumes:
- ./client:/app/client
- ./yarn.lock:/app/yarn.lock
- node_modules:/app/node_modules
module RSpec
module Core
class Example
def run_with_retry(example_group_instance, reporter)
@retrying_count = 0
succeeded = run_without_retry(example_group_instance, reporter)
unless succeeded
return finish_without_retry(reporter) unless retry_needed?
@miya0001
miya0001 / wordpress.dict
Created November 12, 2011 13:27
wordpress .dict file for automatic word completion in vim
absint
activate_plugin
activate_plugins
activate_sitewide_plugin
add_action
add_blog_option
add_clean_index
add_comment_meta
add_comments_page
add_contextual_help
// ==UserScript==
// @name Disable GitHub toolbar hotkey
// @namespace https://wanko.cc
// @include https://github.com/*
// @version 1
// @grant none
// ==/UserScript==
(function() {
var nodes = document.querySelectorAll('.js-toolbar-item[data-toolbar-hotkey]'), i;
for (i = 0; i < nodes.length; i++) {