This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onEdit(event) | |
{ | |
var status = new Array('納品待', '納品済', '無効'); | |
var color = new Array('#fffe99', '#ccfecc', '#b7b7b7'); | |
var keywordCol = 11; | |
var columnStart = 1; | |
var columnNum = 15; | |
var range = event.source.getActiveRange(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
doc = Nokogiri::HTML(open('http://status.aws.amazon.com/')) | |
doc.xpath('//td[@class="bb center top"]/a').each do |link| | |
puts 'http://status.aws.amazon.com/' + link.attribute('href').value | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
font-family: 'Noto Sans', sans-serif !important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s https://www.mizuhobank.co.jp/market/csv/m_quote.csv | tail -1 | cut -d ',' -f 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat unicode-escaped.json | ruby -ne 'puts $_.gsub(/\\u([\da-fA-F]{4})/) { [$1].pack("H*").unpack("n*").pack("U*") }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat user-list.json | jq -r '.members[] | select(.deleted==false) | "\(.id)\t\(.name)\t\(.real_name)"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://info.finance.yahoo.co.jp/fx/ | ruby -ne '$_.match(/<span id="USDJPY_top_bid">(.*?)<\/span>/){|s| puts s[1]}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm -i -v ~/.aws:/root/.aws amazon/aws-cli ec2 describe-reserved-instances-offerings \ | |
--profile [email protected] --instance-type m1.large \ | |
--offering-class standard \ | |
--product-description "Linux/UNIX" \ | |
--instance-tenancy default \ | |
--filters Name=marketplace,Values=true | jq -r '.ReservedInstancesOfferings[] | | |
[.OfferingClass, .ProductDescription, .InstanceType, .OfferingType, .FixedPrice, .Duration, .ReservedInstancesOfferingId] | @csv' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Google Drive内、特定のフォルダ以下のファイルとフォルダの共有権限を削除してアクセス制限する | |
var TARGET_FOLDERS = [ // ターゲットのフォルダリスト(URLの最後の文字列部分) | |
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // 権限削除したいフォルダ1 | |
'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy' // 権限削除したいフォルダ2 | |
]; | |
var me = Session.getActiveUser().getEmail(); // 自アカウントのメールアドレス | |
function main() { |
OlderNewer