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
# Building C bootstrap tool. | |
cmd/dist | |
# Building compilers and Go bootstrap tool for host, linux/amd64. | |
lib9 | |
libbio | |
libmach | |
misc/pprof | |
cmd/addr2line | |
cmd/cov |
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
# Maintainer: Jaroslav Lichtblau <[email protected]> | |
# Contributor: Michael Fellinger <[email protected]> | |
pkgname=ssh-installkeys | |
pkgver=1.7 | |
pkgrel=1 | |
pkgdesc="Set up password-less SSH logins" | |
arch=('any') | |
url="http://www.catb.org/~esr/$pkgname" | |
license=('BSD') |
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
#!/usr/bin/env ruby | |
fail "Please specify a string first and then the directory second" if ARGV.size != 2 | |
query, location = *ARGV | |
puts "you're looking for #{query} in #{location}" | |
def grep(query, file) | |
File.open file do |fd| | |
fd.each_line do |line| |
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
#!/usr/bin/env ruby | |
# This little executable creates sandboxes from git repositories using `git archive`. | |
# | |
# It creates the sandbox initially in a temporary directory, and a .tar.bz2 is | |
# made from the result. | |
# | |
# Dependencies are put into <name>/vendor/<dependency-basename> directories. | |
# | |
# Easy requires in your application are done by: |
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
require 'benchmark' | |
require 'digest/sha2' | |
java_import 'java.security.MessageDigest' | |
def jhex(s) | |
md = MessageDigest.getInstance("SHA-256") | |
md.update(s.to_java(:String).getBytes) | |
md.digest.to_a.pack('C*').unpack('H*') | |
end |
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
class KeyMetrics | |
def initialize(date, day) | |
@@data = Metric.last(source: 'all', start_date: date, end_date: date) | |
p 'DATA' | |
p @@data | |
end | |
def find | |
{ | |
visits: @@data.visits.to_s, | |
revenue: CURRENCY + sdlw_data.transaction_revenue.to_s |
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
runtime 'binary' | |
exec 'rvm_install.sh' |
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
require './form_rack' | |
use Rack::ShowExceptions | |
use Rack::Lint | |
use Rack::ContentLength | |
run MyApp.new |
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
require 'twilio-ruby' | |
Twilio::REST::Client.new( | |
@params['twilio']['sid'], | |
@params['twilio']['token'] | |
).account.calls.create( | |
from: @params['twilio']['from'], | |
to: @params['to'], | |
url: @params['twilio']['url'], | |
) |
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 | |
export HOME=/task | |
# install rvm | |
curl -L https://get.rvm.io | bash -s stable --ruby | |
. $HOME/.rvm/scripts/rvm | |
# install rubinius with hello gemset |