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 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 tmux.md

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

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

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 / disable-repaint-with-ctrl-l.patch
Created Jul 6, 2019
disable mosh repaint (CTRL-L) nixpkgs overlay
View disable-repaint-with-ctrl-l.patch
diff --git a/src/frontend/stmclient.cc b/src/frontend/stmclient.cc
index 8523f9c..8cfbdae 100644
--- a/src/frontend/stmclient.cc
+++ b/src/frontend/stmclient.cc
@@ -373,9 +373,6 @@ bool STMClient::process_user_input( int fd )
lf_entered = ( (the_byte == 0x0A) || (the_byte == 0x0D) ); /* LineFeed, Ctrl-J, '\n' or CarriageReturn, Ctrl-M, '\r' */
- if ( the_byte == 0x0C ) { /* Ctrl-L */
- repaint_requested = true;