Skip to content

Instantly share code, notes, and snippets.

(def le-ssh-keys (circle.bitbucket.client/user-ssh-keys (circle.model.user.bitbucket/get-bitbucket-access-token! le) "lewang"))
CompilerException clojure.lang.ExceptionInfo: clj-http: status 404 {:status 404, :headers {"X-Accepted-OAuth-Scopes" "account", "Server" "nginx/1.6.2", "Content-Type" "text/plain; charset=utf-8", "Content-Length" "71", "X-Frame-Options" "SAMEORIGIN", "Strict-Transport-Security" "max-age=31536000", "Connection" "close", "X-Request-Count" "3", "X-Version" "cee7bedf65a1", "ETag" "\"277d9861243763e579a650af3e672d7b\"", "X-Static-Version" "cee7bedf65a1", "X-OAuth-Scopes" "webhook, pullrequest, repository:admin, repository:write, project:write, team, account:write", "Date" "Fri, 06 May 2016 18:15:59 GMT", "Vary" "Authorization, Cookie", "X-Render-Time" "0.0313320159912", "X-Served-By" "app-113"}, :body "This API has been deprecated and is not available through OAuth2 or JWT", :request-time 314, :trace-redirects ["https://api.bitbucket.org/1.0/users/lewang/ssh-keys"], :orig-content-encoding
var util = require("util");
var request = require('request');
var apiKey = process.env.CIRCLE_KEY;
var org = "circleci";
var project = "circle";
var branch = "master";
function getArtifacts(buildNum) {

Keybase proof

I hereby claim:

  • I am lewang on github.
  • I am lewang (https://keybase.io/lewang) on keybase.
  • I have a public key whose fingerprint is 4C0E 7DF7 6470 B368 3826 0B57 71E6 6022 844C 9238

To claim this, I am signing this object:

@lewang
lewang / README.md
Last active October 13, 2015 15:07 — forked from mbostock/.block
Exit, Update, Enter II
@lewang
lewang / README.md
Last active September 18, 2015 16:12 — forked from mbostock/.block
General Update Pattern, III

By adding transitions, we can more easily follow the elements as they are entered, updated and exited. Separate transitions are defined for each of the three states.

Note that no transition is applied to the merged enter + update selection; this is because it would supersede the transition already scheduled on entering and updating elements. It's possible to schedule concurrent elements by using transition.transition or by setting transition.id, but it's simpler here to only transition the x-position on update; for entering elements, the x-position is assigned statically.

Want to read more? Try these tutorials:

@lewang
lewang / README.md
Last active September 16, 2015 03:00 — forked from mbostock/.block
Grouped Bar Chart

This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:

@lewang
lewang / README.md
Last active September 15, 2015 23:36 — forked from mbostock/.block
Bar Chart
@lewang
lewang / dualbar.js
Last active September 15, 2015 23:02 — forked from maaquib/index.html
D3JS Bar Graph (Above and Below x-axis with animation)
window.onload=function(){
var data = [-15, 20, -22, 18, -2, 6, -26, 18],
duration = 300;
var margin = {top: 30, right: 10, bottom: 10, left: 30},
width = 320 - margin.left - margin.right,
height = 250 - margin.top - margin.bottom;
var y0 = Math.max(Math.abs(d3.min(data)), Math.abs(d3.max(data)));
var y = d3.scale.linear()
{
"question_id": "servings_fruits",
"question_type_id": "feedback_icon_boxes",
"translations": {
"en": {
"label": "What is a “serving” of fruits and vegetables"
}
},
"feedback_sections": [
{

SSL reissue nginx [2014-04-10 Thu 11:25]

  1. Reissue CSR and private key. chmod “400” on that private key
    • openssl req -new -newkey rsa:2048 -nodes -keyout star_tickitforhealth_com_2.key -out foo_new.csr
  2. Generate new crt package from your SSL issuer using CSR. Munge as required.
  3. Update nginx config to use new crt package and private key.