duplicates = multiple editions
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
| console.log('Loading event'); | |
| // Twilio Credentials | |
| var accountSid = ''; | |
| var authToken = ''; | |
| var fromNumber = ''; | |
| var https = require('https'); | |
| var queryString = require('querystring'); |
I have spent quite a bit of time figuring out automounts of NFS shares in OS X...
Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:
/etc/auto_master (see last line):
#
# Automounter master map
#
+auto_master # Use directory service
| var child_process = require('child_process'); | |
| exports.handler = function(event, context) { | |
| var proc = spawn('./test', [ JSON.stringify(event) ], { stdio: 'inherit' }); | |
| proc.on('close', function(code){ | |
| if(code !== 0) { | |
| return context.done(new Error("Process exited with non-zero status code")); | |
| } |
| /* | |
| * Selenium WebDriver JavaScript test with Mocha and NodeJS | |
| * | |
| * Start with: SELENIUM=PATH_TO_SELENIUM_JAR/selenium-server-standalone-2.31.0.jar mocha -t 10000 -R list google-sample.js | |
| * | |
| * Download selenium-server-standalone-2.31.0.jar from https://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar | |
| * 'sudo su' and 'npm install -g colors mocha selenium-webdriver' | |
| * | |
| * http://visionmedia.github.io/mocha/ | |
| * https://code.google.com/p/selenium/wiki/WebDriverJs |
| require 'fluent-logger' | |
| # specify the host and port to forward data to | |
| logger = Fluent::Logger.new(nil, :host => "localhost", :port => 24224) | |
| fn = ARGV[0] | |
| fh = File.new(fn) | |
| msgpack_unpacker = MessagePack::Unpacker.new(fh) |
| # You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
| # This is how I upload my new Sol Trader builds (http://soltrader.net) | |
| # Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
| S3KEY="my aws key" | |
| S3SECRET="my aws secret" # pass these in | |
| function putS3 | |
| { | |
| path=$1 |
| #!/bin/bash | |
| # | |
| # Copyright (C) Matthieu Patou <mat at matws.net> 2011-2012 | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| // constants ------------------------------------------------------------------- | |
| var alliedTypes = { | |
| peasant: 'peasant', | |
| soldier: 'soldier', | |
| knight: 'knight', | |
| librarian: 'librarian', | |
| griffinRider: 'griffin-rider', | |
| captain: 'captain' | |
| }; |
| require "rubygems" | |
| require "yaml" | |
| require "syslog" | |
| require "aws-sdk" | |
| class Snapshot | |
| def initialize(config_file) | |
| begin | |
| @config = YAML.load_file(config_file) | |
| @ec2 = AWS::EC2.new(:access_key_id => @config['access_key_id'], :secret_access_key => @config['secret_access_key']) |