This file contains 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
#!/bin/sh | |
# | |
#################################### | |
# iTunes Command Line Control v1.1 | |
# written by David Schlosnagle | |
# created 2001.11.08 | |
# @edited Mateusz Gachowski | |
# modified 2017.12.25 | |
# @edited miyataka | |
#################################### |
This file contains 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
import sys | |
import os | |
from keyhac import * | |
import ckit | |
def configure(keymap): | |
not_change_target = [ | |
"com.googlecode.iterm2", | |
"com.apple.Terminal", |
This file contains 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
source 'https://rubygems.org' | |
gem 'mechanize' | |
gem 'csv' |
This file contains 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
i = gets.chomp | |
prev = '' | |
result = '' | |
i.split('').each do |k| | |
if k == prev | |
result = 'Bad' | |
break | |
else | |
result = 'Good' | |
end |
This file contains 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
2.3.3 |
This file contains 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
source 'https://rubygems.org' | |
gem 'benchmark-ips' | |
gem 'fcm' | |
gem 'andpush' | |
gem 'fcmpush' | |
gem 'google-api-fcm' | |
gem 'firebase_cloud_messenger' |
This file contains 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
# requirement | |
# - peco command `brew install peco` | |
## docker-sh | |
function docker-sh() { | |
CONTAINER_ID=$(docker ps | sed -e '1d' | peco | cut -f1 -d' ') | |
if [[ -z $CONTAINER_ID ]]; then | |
return 1 | |
fi | |
docker exec -it $CONTAINER_ID sh |
This file contains 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
# check | |
git branch --merged | grep -v main | |
# bulk delete | |
git branch --merged | grep -v main | xargs -I{} git branch -d {} |
This file contains 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
# https://docs.aws.amazon.com/ja_jp/general/latest/gr/aws-ip-ranges.html#aws-ip-egress-control | |
# requirements | |
# - curl | |
# - jq | |
require 'json' | |
require 'yaml' | |
REGION='ap-northeast-1' |
OlderNewer