Skip to content

Instantly share code, notes, and snippets.

@southrop
southrop / radiko2gmusic.py
Created October 12, 2016 05:55 — forked from matchy256/radiko2gmusic.py
rec_radiko.sh / rec_nhk.sh で録音したmp3ファイルをパラメータに渡すと GoogleMusic にアップロードしてファイル名から日付をカットしたプレイリストに整理するスクリプト。要 https://github.com/simon-weber/Unofficial-Google-Music-API 。Google ID とパスワードは自分のものに書き換えること
#!/usr/bin/env python
from gmusicapi import Musicmanager
from gmusicapi import Mobileclient
import sys
import os.path
params = sys.argv
@southrop
southrop / rec_nhk.sh
Created October 12, 2016 05:52 — forked from matchy256/rec_nhk.sh
簡易らじるらじる(NHK)録音スクリプト (2015/09 以降版)
#!/bin/sh
# original code from https://gist.github.com/riocampos/5656450
LANG=ja_JP.utf8
date=`date '+%Y-%m-%d-%H_%M'`
swfVfy="http://www3.nhk.or.jp/netradio/files/swf/rtmpe.swf"
outdir="."

Program Schedule

http://radiko.jp/epg/epgapi.php?area_id=JP13&mode=&station_id=TBS

area_id=

Code Region
@southrop
southrop / onsen.md
Last active September 3, 2023 12:13
onsen.ag API

List of Shows

http://www.onsen.ag/api/shownMovie/shownMovie.json

Response is JSON.

{"result":["niconama_charlotte","mhr3","hanayume","azbear","tsukinone","nairon","gatcha","kamo","shingeki","naderadi","hmx3","corpse","lump","yp_radio","niconama_re-kan","i96","arslan_anime","gg","anime","nwing","poli","glory","grisaia2","fmc2","lovelive2","nana","rumra","priya2","sara_kuru","home","mhr2","pleiades","sakigake","hiroradi","karucha","aiming2","radio_alcot","ensemble_stars","kakazu","diaace","gachi","501st","otome4","bancha","ozawa","sidonia","zenbu","shokugeki2","bemasu","niconama_usagi2","pcgame","yryr","godeater","niconama_seiheki","seraph","axl6","storm2","uta","niconama_sb69a","selector","jojo","seiheki","niconama_pp24","nono","monmusu","dai-gyakuten","sb69a","hetalira","niconama_zenbu","niconama_0701_13shiki","niconama_usagi","prison","charlotte","0823niconama_selector","trident","0823niconama_selector2","niconama_euphonium","re-kan","tadaradio","yuyuyu","121","niconama_yuyuyu","ft","ff","plc
@southrop
southrop / agqr.md
Last active November 6, 2017 06:21 — forked from ybenjo/README.md
save AGQR radio programs.

agqr.rb

What is this?

A script used to save radios broadcasted on AGQR.

Differences in this fork

Compared to ybenjo/agqr.rb:

  • Fixed the script to work if run on machines that operate on non-JST timezones
  • Fixed a bug in the folder creation part of the script which would cause the script to fail and not run
  • Changed the folder paths to be within the same directory as the script
  • Updated the dependencies to say Ruby 2.x or above, because __dir__ was only introduced in Ruby 2.0.0.
@southrop
southrop / percentage.js
Created January 15, 2015 10:31
Angular.js filter to display decimal numbers as percentage
angular.module('myApp')
.filter('percentage', ['$filter', function ($filter) {
return function (input, decimalPlaces) {
return $filter('number')(input * 100, decimalPlaces) + '%';
};
}]);
@southrop
southrop / 20141212update.md
Last active August 29, 2015 14:11
Kancolle 2014/12/12 Update Notes

Kancolle 2014/12/12 Update Notes

Please report any translation errors or mistakes to me at @kotoriburd.

1. Christmas Exclusive Graphics Implemented

Last year, Naka received a Christmas Exclusive Graphic. This year, Xmas Naka Kai 2 has been added.

2. Christmas Exclusive Graphics Implemented (Continued)

Ryuujou has also received a Christmas Exclusive Graphic this year. Her Second Remodel, Xmas Ryuujou Kai 2, also has its own costume.

3. Christmas Exclusive Graphics Implemented (Continued)

@southrop
southrop / 20141114update.md
Last active August 29, 2015 14:09
Kancolle 2014/11/14 Update Notes

Kancolle 2014/11/14 Update Notes

Please report any translation errors or mistakes to me at @kotoriburd.

1. Second Remodel for Ushio Implemented

The special-class destroyer Ushio has received a further remodel.

  • Does not require a blueprint.

2. Voices for Mamiya, Irako Implemented

Newly recorded voices for the supply ships Mamiya and Irako have been implemented. They are played on the confirmation dialog and when used.

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"