Skip to content

Instantly share code, notes, and snippets.

View cheatsheets.md

Dev Cheat Sheets

Personal collection of commands and snippets that just won't stay in my head.

View gelf.json
{
"version":"1.1",
"host":"example.com",
"short_message":"GET /ok?username=yoshi",
"timestamp":"1450171805.123",
"level":6,
"_event":"request",
"_service.name":"marketplace",
"_service.version":"9d0783c",
"_request.method":"GET",
@timstott
timstott / com.timstott.hamachi.plist
Created Aug 15, 2015
LogMeIn Hamachi Login Job
View com.timstott.hamachi.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.timstott.hamachi</string>
<key>ProgramArguments</key>
<array>
<string>hamachi</string>
<string>login</string>
@timstott
timstott / basicNodeServer.js
Created Sep 19, 2015
Basic node.js server
View basicNodeServer.js
#!/usr/bin/env node
var http = require('http');
// Port to listen on
const PORT=8085;
// Function handling request and response
function handleRequest(request, response){
console.log(request);
@timstott
timstott / schema-registry.properties
Created Nov 5, 2015
schema-registry.properties
View schema-registry.properties
port=8081
kafkastore.connection.url=localhost:2181
kafkastore.topic=_schemas
debug=true
kafkastore.timeout.ms = 30000
View tmux.md

Move current windows to x position move-window -t 0

Access tmux clipboard tmux show-buffer | jq . -S

View keybase.md

Keybase proof

I hereby claim:

  • I am timstott on github.
  • I am timstott (https://keybase.io/timstott) on keybase.
  • I have a public key whose fingerprint is 9B24 48CD EA77 B493 2F42 24B5 0CDE 05FC 2683 594F

To claim this, I am signing this object:

@timstott
timstott / README.md
Created Aug 15, 2017
Run Ethereum Parity with Docker
View README.md

Instructions

docker-compose up -d
docker-compose exec parity /parity/parity signer new-token | grep http
# browse to url
View howtovim.md

Argument list

Add to the argument list

command outcome
:args ag -l spec_helper add command result to args list

Operate on the argument list

@timstott
timstott / configuration.nix
Last active Jan 21, 2020
Convert a machine provisioned by NixOps to standalone NixOS (reddit https://redd.it/agpq3o)
View configuration.nix
{ config, lib, pkgs, ... }: {
config = {
boot.kernelModules = [];
networking = {
extraHosts = ''
xxx.xxx.xxx.xxx bob-remote bob-remote-unencrypted
127.0.0.1 bob-remote-encrypted
'';
firewall.trustedInterfaces = [];
publicIPv4 = "xxx.xxx.xxx.xxx";