Skip to content

Instantly share code, notes, and snippets.

View ha4gu's full-sized avatar
🏃‍♂️
Keep learning

Yuta Hashiguchi ha4gu

🏃‍♂️
Keep learning
View GitHub Profile
@ha4gu
ha4gu / anipota.rb
Last active March 31, 2023 03:57
アキバ総研 (https://akiba-souken.com/) 様の新作アニメリストページから情報を取得し、録画サーバ2台での録画予約リストを作成するための個人的なスクリプト。
### ここから依存パッケージ定義パート
# NokogiriとChronicをgemでインストールしておくように。
require 'open-uri'
require 'nokogiri'
require 'date'
require 'time'
require "active_support/all"
require 'chronic'
#!/bin/bash
# 引数で渡されるのが実行対象のファイル
target_file=$1
if [ "$(echo ${target_file} | grep '.rb$')" ]; then
cat input | ruby ${target_file} | tee output;
else
echo "WARNING: It's not a ruby file.";
fi
@ha4gu
ha4gu / karabiner.sh
Last active April 8, 2019 12:37
for macOS initial setup
#!/bin/bash
mkdir -p $HOME/.config/karabiner/assets/complex_modifications
cd $HOME/.config/karabiner/assets/complex_modifications/.
curl -OLs https://gist.githubusercontent.com/ha4gu/bcea8f4e5d8fa8064d5b949b5ce50343/raw/swaptab.json
curl -OLs https://gist.githubusercontent.com/ha4gu/bcea8f4e5d8fa8064d5b949b5ce50343/raw/terminal.json
curl -OLs https://gist.githubusercontent.com/ha4gu/bcea8f4e5d8fa8064d5b949b5ce50343/raw/other.json