This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LANG=ja_JP.utf8 | |
pid=$$ | |
date=`date '+%Y-%m-%d-%H_%M'` | |
outdir="/var/www/html/radiko" | |
rsspath="/var/www/html/radiko.rss" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def textile_to_markdown(textile) | |
d = [] | |
pre = false | |
table_header = false | |
text_line = false | |
textile.each_line do |s| | |
s.chomp! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TODO_PATH = '/Notes/TODO.md' | |
const fetch = require('isomorphic-fetch') | |
const Dropbox = require('dropbox').Dropbox | |
const dbx = new Dropbox({ accessToken: process.env["TOKEN"], fetch: fetch }) | |
const mmdd = (d) => `${d.getMonth() + 1}/${d.getDate()}` | |
exports.handler = async (event, context, callback) => { | |
try { | |
const task = event.task ? event.task : "TEST" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const apn = require('apn') | |
const OPTIONS = { | |
cert: "./PushNotificationAlert-cert.pem", | |
key: "./PushNotificationAlert-key.pem", | |
production: false | |
} | |
const MESSAGES = {"DOUBLE": "お腹がすいた!", "LONG": "たすけてぇ〜"} | |
exports.handler = (event, context, callback) => { | |
let message = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
def mail(to_addr, subject, body) | |
open("|mail -s '#{subject}' #{to_addr}", "w") {|io| io.puts body} | |
end | |
file_name = ARGV[0] | |
mail 'yy@ey-office.com', "Radiko 録音完了 #{file_name}" , | |
"Download http://ey-office.net/radiko/#{file_name}.mp3\r\n" + | |
"Download http://ey-office.net/radiko/#{file_name}.flv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LANG=ja_JP.utf8 | |
pid=$$ | |
date=`date '+%Y-%m-%d-%H_%M'` | |
#playerurl=http://radiko.jp/player/swf/player_4.1.0.00.swf | |
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf | |
playerfile="/tmp/player.swf" | |
keyfile="/tmp/authkey.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
ruby '2.3.0' | |
source 'https://rubygems.org' | |
gem 'sinatra' | |
gem 'sinatra-contrib' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'io/console' | |
GIT_LIST_PATH = "#{ENV['HOME']}/tmp/git-demo.lst" | |
RED = "\e[31m" | |
YELLOW = "\e[33m" | |
BLACK = "\e[30m" | |
FIN = "\e[0m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# init.d script for single or multiple unicorn installations. Expects at least one .conf | |
# file in /etc/unicorn | |
# | |
# Modified by jay@gooby.org http://github.com/jaygooby | |
# based on http://gist.github.com/308216 by http://github.com/mguterl | |
# | |
## A sample /etc/unicorn/my_app.conf | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# init.d script for single or multiple unicorn installations. Expects at least one .conf | |
# file in /etc/unicorn | |
# | |
# Modified by jay@gooby.org http://github.com/jaygooby | |
# based on http://gist.github.com/308216 by http://github.com/mguterl | |
# | |
## A sample /etc/unicorn/my_app.conf | |
## |
NewerOlder