Skip to content

Instantly share code, notes, and snippets.

@southrop
southrop / letsencrypt_notes.sh
Created Aug 20, 2018 — forked from lachesis/letsencrypt_notes.sh
Set up LetsEncrypt using acme.sh without root
View letsencrypt_notes.sh
# 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
View eventernote.md

イベンターノートの参加数を表示する為のスクリプト。

ユーザーページにて使えます。他のユーザーのでも大丈夫です。

ブックマークレットにした方がオススメ(個人的にそうやって使ってます)。

@southrop
southrop / grabluecoin.js
Created Oct 31, 2017
mobage課金計算スクリプト
View grabluecoin.js
// http://sp.mbga.jp/_vca_hist?app=12016007
function check(context, page) {
$ = context.$;
if ($("#more") != null) {
context.loadList('_vca_hist?app=12016007&p=' + ++page, document.getElementById('list'));
console.log('loaded page ' + page);
setTimeout(check.bind(context, context, page), 200);
} else {
var count = 0;
@southrop
southrop / crossfade.txt
Created Jul 6, 2017
cross fading between two videos
View crossfade.txt
ffmpeg -i 5stars1.mp4 -i 5stars2.mp4 -an \
-filter_complex \
" [0:v]trim=start=0:end=33,setpts=PTS-STARTPTS[firstclip];
[1:v]trim=start=1,setpts=PTS-STARTPTS[secondclip];
[0:v]trim=start=33:end=34,setpts=PTS-STARTPTS[fadeoutsrc];
[1:v]trim=start=0:end=1,setpts=PTS-STARTPTS[fadeinsrc];
[fadeinsrc]format=pix_fmts=yuva420p,
fade=t=in:st=0:d=1:alpha=1[fadein];
[fadeoutsrc]format=pix_fmts=yuva420p,
fade=t=out:st=0:d=1:alpha=1[fadeout];
@southrop
southrop / handbrakecli.txt
Created May 5, 2017
Because the Handbrake website is not up to date
View handbrakecli.txt
Syntax: HandBrakeCLI [options] -i <device> -o <file>
### General Handbrake Options------------------------------------------------
-h, --help Print help
-u, --update Check for updates and exit
-v, --verbose <#> Be verbose (optional argument: logging level)
-Z. --preset <string> Use a built-in preset. Capitalization matters, and
if the preset name has spaces, surround it with
double quotation marks
@southrop
southrop / moca.js
Created Dec 27, 2016
Bookmarklet to open moca news images
View moca.js
javascript:(function(){document.location = document.getElementById('image_cvs').toDataURL('image/png')}());
@southrop
southrop / vlc-bd-win.md
Created Dec 2, 2016
Play Blu-Ray Videos in VLC on Windows
View vlc-bd-win.md
  1. Install VLC and MakeMKV
  2. Go to the MakeMKV installation directory (usually C:\Program Files (x86)\MakeMKV) and copy libmmbd.dll to the VLC installation directory (usually C:\Program Files\VideoLAN\VLC) twice
  3. Rename one of these copies to libaacs.dll and the other to libbdplus.dll
  4. Open MakeMKV and activate evaluation mode. Alternatively, insert the beta key.
  5. You should be able to play BDs in VLC using the Media > Open Disc... function.
@southrop
southrop / facialml.md
Last active Mar 9, 2017
List of datasets for training facial recognition
View facialml.md
Dataset Identities Images Availability
Labeled Faces in the Wild (LFW) 5,749 13,233 Link
YouTube Faces Database (YFD) 1,595 3,425 videos Link
CelebFaces Attributes (CelebA) 10,177 202,599 Link
Public Figures Face Database (PubFig) 200 58,797 Link
CASIA WebFace Database (CASIA-WebFace) 10,575 494,414 Link
FaceScrub 530 106,863 Link
Cross-Age Celebrity Dataset (CACD) 2,000 163,446 Link
MegaFace Training Set 672,057 4,753,520 Link
@southrop
southrop / radiko2gmusic.py
Created Oct 12, 2016 — forked from matchy2/radiko2gmusic.py
rec_radiko.sh / rec_nhk.sh で録音したmp3ファイルをパラメータに渡すと GoogleMusic にアップロードしてファイル名から日付をカットしたプレイリストに整理するスクリプト。要 https://github.com/simon-weber/Unofficial-Google-Music-API 。Google ID とパスワードは自分のものに書き換えること
View radiko2gmusic.py
#!/usr/bin/env python
from gmusicapi import Musicmanager
from gmusicapi import Mobileclient
import sys
import os.path
params = sys.argv