I hereby claim:
- I am tomstarstuck on github.
- I am starstuck (https://keybase.io/starstuck) on keybase.
- I have a public key ASCy3r8YyuneO7itqGqwcGXsNWL3LCZG-IG8rjADhGmYIgo
To claim this, I am signing this object:
/** | |
* Web application debug proxy server. | |
* | |
* It is suited for hosting uncompressed sources of front-end assets and proxy dynamic | |
* requests to servers preparing data. I find similar setup also useful for investigating | |
* issues on production servers by going through the proxy, which use local unminified | |
* JS and CSS on top of production html pages. | |
* | |
* To run following example you will need to have http-proxy, express and send packages installed. | |
* |
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
# | |
# Read humidity and temperature from DHT11 sensor connected to RaspberryPi. | |
# | |
# DHT11 protocol depends on exact timing. Sometimes linux kernel may evict your | |
# process, or GC can cause program to miss some of a bits from transmission. In | |
# that case following application will raise an error and you can try to run it | |
# again | |
# |
import asyncHooks from 'async_hooks'; | |
const reservations = new Map(); | |
asyncHooks.createHook({ | |
init: function init(asyncId, type, triggerAsyncId) { | |
const e = {}; | |
Error.captureStackTrace(e, init); | |
reservations.set(asyncId, {type, triggerAsyncId, stack: e.stack}); | |
}, | |
destroy: function destroy(asyncId) { |
#!/usr/bin/env bash | |
sudo mkdir -p /Library/Application\ Support/Slack/Resources | |
curl https://raw.githubusercontent.com/laCour/slack-night-mode/master/css/raw/black.css | sudo tee /Library/Application\ Support/Slack/Resources/black.css > /dev/null | |
sudo patch --backup /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js << EOF | |
*** ssb-interop.js | |
--- ssb-interop.js.patched | |
*************** | |
*** 95,99 **** | |
const mainModule = require.resolve('../ssb/main.ts'); | |
const isDevMode = loadSettings.devMode && isPrebuilt(); |
#!/usr/bin/env bash | |
# -*- sh -*- | |
# | |
# This script runs right restic executable for system where it is called. | |
# Download restic releases to ../libexec folder and update VERSION valriable. | |
# It will also set RESTIC_REPOSITORY, based on assumption that the script lies | |
# in bin folder in the repository. | |
VERSION="0.9.3" | |
SYS=$(uname -s | tr '[:upper:]' '[:lower:]') |
I hereby claim:
To claim this, I am signing this object:
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>my-project</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> |
import { ActionCreatorsMapObject, AnyAction } from 'redux'; | |
export enum ActionType { | |
ReportError = 'REPORT_ERROR', | |
UpdateToDos = 'UPDATE_TODOS' | |
} | |
type ThunkDispatch = <T extends { type: ActionType }>(action: T) => T; | |
type ThunkAction<A extends { type: ActionType }, S, E> = ( |
# -*- sh -*- | |
export SSH_AGENT_FILE=~/.ssh/agent | |
start() { | |
(umask 077; ssh-agent >| ${SSH_AGENT_FILE}) | |
. ${SSH_AGENT_FILE} | |
ssh-add | |
} | |
if [ ! -f "${SSH_AGENT_FILE}" ]; then |