docker.sh: a small interactive shell hack for docker
Usage: ./docker.sh [base-image-name]
| assert(block.hashMerkleRoot == uint256("0x38ca78a781d3c571a681ea2241ffb1e0d89bd1ecd3499f1bf6edeaa8751e7151")); | |
| // If genesis block hash does not match, then generate new genesis hash. | |
| if (false && block.GetHash() != hashGenesisBlock) | |
| { | |
| printf("Searching for genesis block...\n"); | |
| // This will figure out a valid hash and Nonce if you're | |
| // creating a different genesis block: | |
| uint256 hashTarget = CBigNum().SetCompact(block.nBits).getuint256(); | |
| uint256 thash; |
| require "net/http" | |
| require "uri" | |
| base_dir = File.expand_path(ARGV.first || ".") | |
| response = Net::HTTP.get(URI("http://www.modern.ie/en-us/virtualization-tools")) | |
| urls = response.scan(/[^"'\s]+VirtualBox\/OSX[^"'\s]+/) | |
| urls.each do |u| | |
| name = u[%r{VirtualBox/OSX/([^/]+)}, 1] |
docker.sh: a small interactive shell hack for docker
Usage: ./docker.sh [base-image-name]
| FROM ubuntu | |
| MAINTAINER Code Climate <[email protected]> | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
| RUN apt-get update | |
| RUN apt-get upgrade -y | |
| RUN apt-get install -y curl libssl-dev libssl0.9.8 autoconf build-essential | |
| RUN mkdir -p /app/vendor/ruby-1.9.3 && cd /app/vendor/ruby-1.9.3 && curl "https://s3.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3.tgz" -s -o - | tar zxf - |
Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.
Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!
| # -*- coding: utf-8 -*- | |
| # @author: Peter Lamut | |
| import argparse | |
| import os | |
| import shutil | |
| N = 10 # the number of files in seach subfolder folder |
| # Chef-Zero | |
| # | |
| # VERSION 0.0.1 | |
| FROM base | |
| MAINTAINER Paul Czarkowski "[email protected]" | |
| RUN apt-get update | |
| RUN apt-get install -y ruby1.9.1-dev build-essential |
| #!/bin/bash | |
| # Executed on MacOSX | |
| go build signal.go | |
| ./signal & | |
| kill -INT $! | |
| # Prints the "interrupt" and quits after 5 seconds, which is to be expected. |
| # see https://github.com/thomasjbradley/signature-pad for more details | |
| instructions = JSON.load(data).map { |h| "line #{h['mx']},#{h['my']} #{h['lx']},#{h['ly']}" } * ' ' | |
| system "convert -size 198x55 xc:transparent -stroke blue -draw '#{instructions}' signature.png" |
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "net/http/httputil" | |
| "net/url" | |
| ) | |
| func main() { |