Linux
- links.rb
- update_error.rb
- response.rb
- parse.rb
- http.rb
- currency.rb
- version.rb
data_dir = "/var/lib/kapacitor" | |
default-retention-policy = "" | |
hostname = "localhost" | |
skip-config-overrides = false | |
[[influx]] | |
default = true | |
disable-subscriptions = false | |
enabled = true | |
http-port = 0 |
### Keybase proof | |
I hereby claim: | |
* I am jagregory on github. | |
* I am jagregory (https://keybase.io/jagregory) on keybase. | |
* I have a public key ASCT_URSYIVBOt_t39fImDTV5QPP4NK0A2HNp2iLpJ8fLQo | |
To claim this, I am signing this object: |
#!/usr/bin/env python3 | |
# How to use: | |
# | |
# LE_HOSTED_ZONE=XXXXXX LE_AWS_PROFILE=dns-access ./letsencrypt.sh --cron --domain example.org --challenge dns-01 --hook /tmp/hook-dns-01-lets-encrypt-route53.py | |
# | |
# More info about letsencrypt.sh: https://github.com/lukas2511/letsencrypt.sh/wiki/Examples-for-DNS-01-hooks | |
# Using AWS Profiles: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles | |
# Obtaining your Hosted Zone ID from Route 53: http://docs.aws.amazon.com/cli/latest/reference/route53/list-hosted-zones-by-name.html |
newtype Degree = Degree Float | |
newtype Radian = Radian Float | |
toRad :: Degree -> Radian | |
toRad (Degree deg) = Radian (deg * pi / 180) | |
-- this works | |
new1 = toRad (Degree 90.0) | |
-- this doesn't work |
package parser | |
import "database/sql" | |
type Row struct { | |
MenuId int | |
Menu sql.NullString | |
Submenu sql.NullString | |
Item sql.NullString | |
Parent int |
var projections = Object.keys(serverData) | |
.map(function(k) { | |
return serverData[k].totals.map(function(t, i) { | |
var row = { y: i + 1 } | |
row[serverData[k].commissionStructure] = t.total.value | |
return row | |
}) | |
}) | |
var result = projections[0] |
<!-- Begin MailChimp Signup Form --> | |
<link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css"> | |
<style type="text/css"> | |
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; } | |
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block. | |
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */ | |
</style> | |
<div id="mc_embed_signup"> | |
<form action="http://blahblah" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> | |
package main | |
import ( | |
"compress/bzip2" | |
"encoding/xml" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"strings" |
@interface UIView(Corners) | |
- (void)cornerRadius:(float)radius forCorners:(UIRectCorner)corners; | |
@end |