Skip to content

Instantly share code, notes, and snippets.

View soramugi's full-sized avatar
🦭
I always want to lie down

Y.Tsuyuzaki soramugi

🦭
I always want to lie down
View GitHub Profile
@soramugi
soramugi / code.js
Created July 22, 2018 07:21
gasで昨日のanalyticsで逆アクセス数リストを出してメールする
var scriptProperties = PropertiesService.getScriptProperties();
var yesterday = new Date();
yesterday.setDate(yesterday.getDate() - 1);
var date = Utilities.formatDate(yesterday, Session.getTimeZone(), 'yyyy-MM-dd');
function setScheduling() {
var triggers = ScriptApp.getProjectTriggers();
triggers.forEach(ScriptApp.deleteTrigger);
ScriptApp.newTrigger("exec")
.timeBased()
@soramugi
soramugi / list.md
Created June 4, 2017 04:30
2016/06/04 阿澄佳奈のキミまち!プレイリスト
@soramugi
soramugi / list.md
Created May 28, 2017 06:14
2016/05/28 阿澄佳奈のキミまち!プレイリスト
@soramugi
soramugi / list.md
Created May 21, 2017 04:44
2016/05/21 阿澄佳奈のキミまち!プレイリスト
@soramugi
soramugi / gist:ff0a9708ae9e095ff208ed64ac628922
Created May 14, 2017 04:39
2016/05/14 阿澄佳奈のキミまち!プレイリスト
@soramugi
soramugi / gist:643b00e2bb88029874c2d0e161939574
Last active May 7, 2017 04:23
2016/05/07 阿澄佳奈のキミまち!プレイリスト
@soramugi
soramugi / rec_nhk.sh
Created June 23, 2016 05:37
らじるらじる(NHKラジオ)録音bashスクリプト
#!/bin/bash
# 参考
# https://gist.github.com/soramugi/836952a6b09e540eb6a3
# https://gist.github.com/matchy2/5310409
# https://gist.github.com/riocampos/5656450
date=`date '+%Y_%m_%d_%H%M'`
outdir="."
if [ $# -le 1 ]; then
#!/bin/bash
# sleep 180&
# nohup bash ifttt.sh 51666 > /dev/null 2>&1 &
CURL=/usr/bin/curl
IFTTT_EVENT="push"
IFTTT_KEY="xxxxxxxxxxxxxxxxxxx"
IFTTT_URL="https://maker.ifttt.com/trigger/${IFTTT_EVENT}/with/key/${IFTTT_KEY}"
PROCESS_NAME=""
FROM ruby:2.4
RUN gem install twitter
COPY rand_tweet.rb /
CMD ["ruby", "rand_tweet.rb"]
@soramugi
soramugi / anitama_notice.sh
Created February 1, 2016 06:38
アニたまの別冊ラジ関の更新確認
#!/bin/bash
word='2/1更新★もじゃ'
cookie=/tmp/cookie.txt
sleep_time=`expr 60 \* 5`
curl -c $cookie 'http://www.weeeef.com/weeeefww1/Transition?command=top&group=G0000049' 1>/dev/null 2>&1
curl -b $cookie -c $cookie "http://www.weeeef.com/weeeefww1/CategoryServlet?groupId=null&time=`date +%s`" 1>/dev/null 2>&1
while true; do