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 | |
sudo apt-get install git avahi-utils tmux -y && \ | |
git clone https://eskim@bitbucket.org/yichoe/rx2.ubuntu.git rx2 && \ | |
cd rx2/bin | |
echo "sudo -i" | |
echo 'echo "options rtl8723be fwlps=0" > /etc/modprobe.d/rtl8723be.conf' | |
echo 'modprobe -r rtl8723be' | |
echo 'modprobe rtl8723be' |
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
public static function nhnGeocode($addr) | |
{ | |
return Cache::sear('geocode.'.$addr, function() use($addr){ | |
$api_key = Config::get('3rdparty.naver_api_key'); | |
$result_xml = File::getRemote("http://openapi.map.naver.com/api/geocode.php?key=$api_key&encoding=utf-8&coord=latlng&query=" . $addr); | |
$xml = new SimpleXMLElement($result_xml); | |
$lng = $xml->item[0]->point->x; | |
$lat = $xml->item[0]->point->y; |
From Wikipedia: Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.
Built with D3.js.
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
body { | |
font-size: 10px; | |
color: red; | |
} | |
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 thrift = require('thrift'); | |
var test = require('./gen-nodejs/test.js'), | |
ttypes = require('./gen-nodejs/test_types'); | |
var connection = thrift.createConnection('localhost', 9090), | |
client = thrift.createClient(test, connection); | |
connection.on('error', function(err) { | |
console.error(err); |
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
set :deploy_to, "/usr/share/my-app" | |
namespace :play do | |
task :setup do | |
run "mkdir -p #{deploy_to}" | |
upload "my-app/start.sh", "#{deploy_to}/start.sh", :mode => '755', :via => :scp | |
upload "my-app/stop.sh", "#{deploy_to}/stop.sh", :mode => '755', :via => :scp | |
end | |
task :deploy 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
namespace :deploy do | |
task :restart do | |
stop | |
sleep 1 | |
start | |
end | |
task :start do | |
targets = find_servers_for_task(current_task) |
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
description "Tomcat Server" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
# adapt paths, if needed | |
env JAVA_HOME=/opt/java | |
env CATALINA_HOME=/opt/apache-tomcat |
NewerOlder