This file contains hidden or 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 | |
i=0 | |
j=1 | |
while true | |
do | |
command="/usr/bin/osascript -e 'tell application \"Finder\" to set desktop picture to POSIX file \"/Users/yumu/Desktop/img/img${i}.png\"'" | |
if [ -e /Users/yumu/Desktop/hoge/img${j}.png ]; then | |
echo ${command} | |
eval ${command} | |
i=`expr ${i} + 1` |
This file contains hidden or 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
FROM centos:6 | |
MAINTAINER Tsubasa YUMURA @yumu19 | |
RUN yum -y update | |
RUN yum -y install mercurial which | |
RUN cd /tmp && hg clone https://bitbucket.org/okamototk/kanonconductor | |
RUN yes | /tmp/kanonconductor/kanon-setup | |
RUN echo 'export PATH=/opt/kanon/bin/:$PATH' >> /root/.bash_profile | |
RUN source /root/.bash_profile |
This file contains hidden or 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
var http = require('http'); | |
var url = require('url'); | |
var exec = require('child_process').exec; | |
var i = 0; | |
var j = 1; | |
var command = ""; | |
http.createServer(function (req, res) { | |
var now = new Date(); | |
var parts = url.parse(req.url,true); |
This file contains hidden or 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
IPADDR="10.1.100.101" | |
NUM=$1 | |
SAT=$2 | |
BRI=$3 | |
HUE=$4 | |
i=0 | |
QUERY="{\"on\":true, \"sat\":${SAT}, \"bri\":${BRI}, \"hue\":${HUE}}" | |
echo ${QUERY} | |
while [ $i -lt 555555 ] | |
do |
This file contains hidden or 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
var http = require('http'); | |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
var dataSchema = new Schema({ data: Schema.Types.Mixed}); | |
var Data = mongoose.model('data', dataSchema); | |
mongoose.connect('mongodb://localhost/test'); | |
http.createServer(function (req, res) { | |
if(req.method=='POST') { | |
var body = ''; |
This file contains hidden or 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 | |
INTERVAL=60 #Interval of Capture Screen(seconds) | |
DIRNAME="${HOME}/Desktop/capture/" | |
if [ ! -e ${DIRNAME} ]; then | |
mkdir ${DIRNAME} | |
fi | |
while true |
NewerOlder