Skip to content

Instantly share code, notes, and snippets.

soramugi soramugi

Block or report user

Report or block soramugi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@soramugi
soramugi / code.js
Created Jul 22, 2018
gasで昨日のanalyticsで逆アクセス数リストを出してメールする
View code.js
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 Jun 4, 2017
2016/06/04 阿澄佳奈のキミまち!プレイリスト
View list.md
@soramugi
soramugi / list.md
Created May 28, 2017
2016/05/28 阿澄佳奈のキミまち!プレイリスト
View list.md
@soramugi
soramugi / list.md
Created May 21, 2017
2016/05/21 阿澄佳奈のキミまち!プレイリスト
View list.md
@soramugi
soramugi / gist:ff0a9708ae9e095ff208ed64ac628922
Created May 14, 2017
2016/05/14 阿澄佳奈のキミまち!プレイリスト
View gist:ff0a9708ae9e095ff208ed64ac628922
@soramugi
soramugi / gist:643b00e2bb88029874c2d0e161939574
Last active May 7, 2017
2016/05/07 阿澄佳奈のキミまち!プレイリスト
View gist:643b00e2bb88029874c2d0e161939574
@soramugi
soramugi / rec_nhk.sh
Created Jun 23, 2016
らじるらじる(NHKラジオ)録音bashスクリプト
View rec_nhk.sh
#!/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
View ifttt.sh
#!/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=""
View Dockerfile
FROM ruby:2.4
RUN gem install twitter
COPY rand_tweet.rb /
CMD ["ruby", "rand_tweet.rb"]
@soramugi
soramugi / anitama_notice.sh
Created Feb 1, 2016
アニたまの別冊ラジ関の更新確認
View anitama_notice.sh
#!/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
You can’t perform that action at this time.