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
[Unit] | |
Description=Tailscale Proxy | |
Wants=network-pre.target tailscaled.service | |
After=network-pre.target tailscaled.service | |
StartLimitIntervalSec=0 | |
[Service] | |
EnvironmentFile=/etc/default/tsproxy | |
ExecStart=/usr/local/bin/tsproxy \ | |
--state="${STATE_DIRECTORY}" \ |
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/awk -f | |
# md2html.awk | |
# by: Jesus Galan (yiyus) <yiyu.jgl@gmail>, May 2009 | |
# Usage: | |
# md2html file.md > file.html | |
# Options: -v esc=false to not escape html | |
function newblock(nblock){ | |
if(text) |
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
source "http://rubygems.org" | |
gem "janky", "~>0.9" | |
gem "pg" | |
gem "thin" |
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 sys = require("sys"), | |
connect = require("connect"), | |
hoptoad = require("connectHoptoad"); | |
module.exports = connect.createServer( | |
function (req, res) { | |
throw Error("fail") | |
}, | |
hoptoad("SECRET", ["development"]) | |
); |
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 io | |
date := Date now asString("%Y-%m-%d %H:%M:%S") | |
wifi := File clone openForReading("/proc/net/wireless") readLines \ | |
at(2) split at(5) removeAt(2) asString | |
mpd := method( | |
File clone openForReading("/home/simon/.mpd/state") foreachLine(i, line, | |
parts := line split(":") | |
if(parts at(0) == "state", state := parts at(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
#!/usr/bin/env escript | |
%% -*- erlang -*- | |
-include_lib("kernel/include/file.hrl"). | |
-compile(export_all). | |
-define(LOG(S), io:format(S)). | |
-define(LOG(S,A), io:format(S,A)). | |
main(Dirs) -> | |
CodePath = case os:getenv("RIAK_LIB") of |
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
RuntimeError (ERR wrong number of arguments for 'mget' command): /vendor/gems/ruby/1.8/gems/redis-2.2.0/lib/redis/client.rb:39:in `raw_call_command_without_newrelic_trace' | |
/vendor/gems/ruby/1.8/gems/rpm_contrib-1.0.13/lib/rpm_contrib/instrumentation/redis.rb:22:in `call' /vendor/gems/ruby/1.8/gems/newrelic_rpm-3.0.1/lib/new_relic/agent/method_tracer.rb:193:in `trace_execution_scoped' | |
/vendor/gems/ruby/1.8/gems/rpm_contrib-1.0.13/lib/rpm_contrib/instrumentation/redis.rb:20:in `call' /vendor/gems/ruby/1.8/gems/redis-2.2.0/lib/redis.rb:178:in `mget' /Users/sr/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/monitor.rb:242:in `synchronize' | |
/vendor/gems/ruby/1.8/gems/redis-2.2.0/lib/redis.rb:177:in `mget' | |
/vendor/internal-gems/chimney/lib/chimney/remote.rb:664:in `read_partition_values' | |
/vendor/internal-gems/chimney/lib/chimney/remote.rb:636:in `partition_usage' | |
/vendor/internal-gems/chimney/lib/chimney/remote.rb:686:in `partition_info' | |
/app/controllers/site_controller.rb:253:in `fi |
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 | |
$:.unshift "lib" | |
require "init" | |
workers = Resque.workers | |
total = workers.size.to_f | |
idling = workers.select { |w| w.idle? }.size | |
working = Resque.working.reject { |w| w.idle? }.size.to_f | |
busyness = (working / total) * 100 |
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 | |
source `dirname $0`/ci-env | |
if [[ -x script/ci ]]; then | |
script/ci | |
else | |
test -f Gemfile.lock | |
if [ `head -n1 Gemfile.lock` == "GEM" ]; then | |
gem install bundler --no-rdoc --no-ri |
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 :ci do | |
task :copy_yml do | |
sh "cp #{Rails.root}/config/example_database.yml #{Rails.root}/config/database.yml" | |
end | |
desc "Prepare for CI and run entire test suite" | |
task :build do | |
ENV["RACK_ENV"] = "test" | |
Rake::Task['db:migrate'].invoke | |
Rake::Task['db:test:prepare'].invoke |
NewerOlder