I hereby claim:
- I am horttanainen on github.
- I am horttanainen (https://keybase.io/horttanainen) on keybase.
- I have a public key whose fingerprint is FB31 D7CE 2A56 6B4E 7222 9F3D D2E0 0B54 5888 2E56
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
#params | |
#dd_api_key= | |
#dd_app_key= | |
#dash_id= | |
curl -sX GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${dd_api_key}&application_key=${dd_app_key}" \ | |
| jq '{ | |
board_title: .dash.title, | |
description: .dash.description, | |
template_variables: .dash.template_variables, |
#!/usr/bin/env bash | |
node -e 'var fs = require("fs"); process.stdin.resume(); process.stdin.setEncoding("utf8"); var data = ""; process.stdin.on("data", function(buf) { data += buf; }); process.stdin.on("end", function() { console.log(JSON.stringify(JSON.parse(data), null, 2)); });' |
#!/usr/bin/env bash | |
node -e 'var http = require("http"); var fs = require("fs"); process.stdin.resume(); process.stdin.setEncoding("utf8"); var data = ""; process.stdin.on("data", function(buf) { data += buf; }); process.stdin.on("end", function() { http.createServer(function (request, response) { response.writeHead(200); response.write(data); response.end(); }).listen(8989); });' |
#!/usr/bin/env bash | |
JS=' | |
var toEval = process.argv[1]; | |
process.stdin.resume(); | |
process.stdin.setEncoding("utf8"); | |
var json = ""; | |
process.stdin.on("data", function(buf) { | |
json += buf; |
#!/usr/bin/env bash | |
JS=' | |
var input = ""; | |
if (process.argv[1] === "-p") { | |
process.stdin.resume(); | |
process.stdin.setEncoding("utf8"); | |
process.stdin.on("data", function(buf) { | |
input += buf; |
#!/usr/bin/env bash | |
JS=' | |
function certToPEM(cert) { | |
if (cert.indexOf("BEGIN CERTIFICATE") === -1 && cert.indexOf("END CERTIFICATE") === -1) { | |
return `-----BEGIN CERTIFICATE-----\n${cert.match(/.{1,64}/g).join("\n")}\n-----END CERTIFICATE-----\n`; | |
} else { | |
return cert; | |
} | |
} |
import { createClient } from 'contentful-management' | |
import contentfulExport, { Options } from 'contentful-export' | |
//@ts-ignore | |
import contentfulImport from 'contentful-import' | |
// This code was based on Hany Darwish's solution: https://github.com/contentful/contentful-cli/issues/614#issuecomment-955794191 | |
// MODIFY THESE VALUES BEFORE RUNNING | |
// | |
// Run like this ts-node --project migrate-entry-tsconfig.json migrate-contentful-entry.ts |
I had problems making my lubitel-2 focus. The viewing lens produced inverted results: when focusing to infinity the brilliant | |
finder focused to objects very close to the camera and vice versa! If this happens to you then your camera has been assembled | |
wrong and the brilliant finder lens is upside down! The ground glass circle should be in the bottom of the brilliant finder, | |
not on the top. Just remove the finder casing by renmoving the three screws holding it in place and rotate the finder glass. | |
Info about the camera: | |
http://camera-wiki.org/wiki/Lubitel_2 | |
https://sovietcameras.org/lubitel-2/ | |
CLA repair guide: |