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 | |
INTERVAL=60 #Interval of Capture Screen(seconds) | |
DIRNAME="${HOME}/Desktop/capture/" | |
if [ ! -e ${DIRNAME} ]; then | |
mkdir ${DIRNAME} | |
fi | |
while true |
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
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 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 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 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 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 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
import processing.video.*; | |
Capture cam; | |
PImage img; | |
String path; | |
String command; | |
int i; | |
void setup(){ | |
size(640,384); | |
cam = new Capture(this, width, height, 10); |
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
亞 | |
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
import controlP5.*; | |
ControlP5 ctls; | |
PImage img; | |
float bg_hue = 40.0; | |
float bg_sat = 0.1; | |
float bg_bri = 1.0; | |
float dress_hue = 0; | |
float dress_sat = 0.0; |
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
require 'clockwork' | |
include Clockwork | |
module Clockwork | |
@@rootDir = "/Users/yumu/dockerBackupDir/" | |
@@hourlyFormat = "%Y%m%d_%H%M" | |
@@dailyFormat = "%Y%m%d" | |
def getContainerNames | |
ps = `docker ps`.split("\n") |
OlderNewer