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
// ==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++) {
@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
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?
version: "2"
services:
node:
build:
context: ./
dockerfile: docker/node/Dockerfile
volumes:
- ./client:/app/client
- ./yarn.lock:/app/yarn.lock
- node_modules:/app/node_modules
@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
@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
@joker1007
joker1007 / ginzarb_21.md
Last active April 14, 2021 06:41
Ginza.rb 21回の発表資料。rails_adminのつらみとオススメgem達。

rails_adminのつらみとオススメGemについて

rails_adminのつらみ

カスタマイズできるようで出来ない

レコード件数が一定以上になると使えない機能

  • ダッシュボード
  • 何も考えずに各モデルをカウントするのでレコード件数増えるとえらいことになる。
@wmakley
wmakley / install-ruby-1.8.7.sh
Last active October 7, 2021 09:41 — forked from silviorelli/gist:ad8e1d80bdc0245eb7e7
Install Ruby 1.8.7 on Mac OSX 10.12 Sierra with rbenv
#!/bin/sh
# The main issues with Ruby 1.8.7 are that it won't build with Clang,
# and the Net::HTTPS module won't work with modern versions of OpenSSL.
#
# This assumes you have already set up homebrew, and run: xcode-select --install
brew install homebrew/dupes/apple-gcc42
brew install libyaml libffi
brew install https://github.com/Homebrew/homebrew-versions/raw/586b7e9012a3ed1f9df6c43d0483c65549349289/openssl098.rb
export CC=/usr/local/bin/gcc-4.2
@kjlubick
kjlubick / LICENSE
Last active May 1, 2022 22:26
Exports a THREE.js scene mesh to STL, making it suitable for 3d printing
The MIT License
Copyright © 2010-2016 three.js authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@hail2u
hail2u / csslint-rules.md
Last active April 29, 2023 14:59
CSSLintのRulesの超訳

訳注

これは超訳です。

CSSLintは「なんでこんなルールなんだ…」とイラっとすることが多いですけど、それぞれにそれなりに理由があります。まぁ勿論無視するべきなルールとかもあります。例えば見出し要素の再定義禁止とかはHTML5に対するCSSなら無理な話です。そんなわけでどんな理由なのかを簡単に訳しました。無視するかどうかは自分で決めましょう!

この訳はCSSLintと同じライセンスで提供されます。

Possible Errors