Skip to content

Instantly share code, notes, and snippets.

@southrop
southrop / letsencrypt_notes.sh
Created August 20, 2018 06:55 — forked from lachesis/letsencrypt_notes.sh
Set up LetsEncrypt using acme.sh without root
# How to use "acme.sh" to set up Lets Encrypt without root permissions
# See https://github.com/Neilpang/acme.sh for more
# This assumes that your website has a webroot at "/var/www/<domain>"
# I'll use the domain "EXAMPLE.com" as an example
# When this is done, there will be an "acme" user that handles issuing,
# updating, and installing certificates. This account will have the following
# (fairly minimal) permissions:
# - Host files at http://EXAMPLE.com/.well-known/acme-challenge
@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="."
@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.

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"