- jenkins-runner.sh (下にあるやつ)
- jenkins.plist (下にあるやつ)
- jenkins.war http://mirrors.jenkins-ci.org/war/latest/jenkins.war
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 | |
exit false unless %{ondemand powersave performance}.index(ARGV[0]) | |
(0..3).each do |i| | |
system "sudo su -c 'echo #{ARGV[0]} > /sys/devices/system/cpu/cpu#{i}/cpufreq/scaling_governor'" | |
end |
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
{ | |
"title": "AquaSKK for Slack", | |
"rules": [ | |
{ | |
"description": "AquaSKK for Slack", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j", |
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
function doGet(e) { | |
if (!e.parameters.token || !e.parameters.signal_ids) { | |
return ContentService.createTextOutput('Invalid paramerter'); | |
} | |
var token = e.parameters.token; | |
var signals = e.parameters.signal_ids.toString().split(','); | |
if (!token || !signals || signals.length < 1) { | |
return ContentService.createTextOutput('NG'); | |
} |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.7.3' | |
} | |
} | |
project(':modules:volley') { | |
apply plugin: 'android-library' |
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 | |
# -*- coding: utf-8 -*- | |
require 'json' | |
def rotate(up) | |
if up > 800 | |
return 90 | |
elsif up > 140 | |
return 180 |
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 'rubygems' | |
require 'rack/reverse_proxy' | |
use Rack::ReverseProxy do | |
reverse_proxy '/callback', 'http://example.com/' | |
end | |
app = proc do |env| | |
[ 200, {'Content-Type' => 'text/plain'}, ["OK"] ] | |
end |
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 'sinatra' | |
require 'httpclient' | |
CALLBACK_URI = URI.parse('http://example.com/callback') | |
configure do | |
set :httpclient, HTTPClient.new | |
end | |
post '/callback' 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
#!/usr/bin/env ruby | |
require "open3" | |
base_url = ARGV.shift | |
hls_file = ARGV.shift | |
o, e, s = Open3.capture3 "curl #{base_url}#{hls_file}" | |
tslist = o.split("\n").delete_if{|i| i =~ /^#/ } |
NewerOlder