One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {
CmdUtils.CreateCommand({ | |
name: "trakkor", | |
description: "Notifies you when a web page changes via Trakkor.", | |
help: "Select text on the current page to be tracked.", | |
homepage: "http://trakkor.better-idea.org", | |
author: {name: "Matthias Luedtke", email: "[email protected]"}, | |
takes: {"text to track": noun_arb_text}, | |
icon: "http://trakkor.better-idea.org/images/favicon.ico", | |
execute: function(textToTrack) { |
[alias] | |
# bread and butter | |
st = status | |
s = status -sb | |
d = diff | |
dc = diff --cached | |
p = pull --rebase | |
ir = rebase -i origin/master | |
amend = commit --amend | |
l = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an> -%C(yellow)%d%Creset %s %Cgreen(%cr) %Creset' --abbrev-commit --date=relative |
#!/usr/bin/env ruby | |
# | |
# Now living in https://github.com/mat/dotfiles | |
# | |
class Rlikestats | |
attr_accessor :values, :count, :mean, :stdev, :lines | |
def initialize |
# | |
# Now living in https://github.com/mat/dotfiles | |
# | |
require 'benchmark' | |
require 'open-uri' | |
require 'rubygems' | |
require 'active_support/all' | |
require 'nokogiri' |
TODO: | |
- edit /opt/statsd/local.js | |
- correct the graphite host to localhost | |
- if desired, put 'debug: true' in there | |
- make the box accessible via the hostname 'graphite' | |
- update conf/storage-schemas.conf, see example for these retention rules: | |
6 hours of 10 second data | |
1 week of 1 minute data | |
5 years of 10 minute data |
# ~/.irbrc | |
# $ gem install ruby-prof | |
# $ irb | |
# >> profile2file { 500_000.times{345345 ** 15} } | |
# Find profile results in /Users/mat/profile-1314789858.[txt|html] | |
# => 500000 | |
module Kernel | |
def profile2file(filename = "profile-#{Time.now.to_i}") |
import java.util.*; | |
public class HowFastIsMax { | |
private static final int INTEGERS_IN_LIST = 1000000; | |
private static final int TEST_RUNS = 10; | |
public static void main(String[] args) { | |
List<Integer> list = fillRandomIntList(); | |
for (int i = 0; i < TEST_RUNS; i++) { |
# | |
# Generate curl command from a Typhoeus request. | |
# | |
# Example: | |
# | |
# > request = Typhoeus::Request.post("http://example.com", {body: "fine stuff"}).request | |
# > TyphoeusToCurl.new.to_curl(request) | |
# | |
# => "curl 'http://example.com' -X POST -H \"User-Agent: Typhoeus" -d 'fine stuff' --compressed" | |
# |
require 'benchmark' | |
class Guesstimator | |
@@instances={} | |
attr_accessor :total_operations | |
attr_accessor :remaining_operations | |
attr_reader :exp_moving_average |
One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {