Personal collection of commands and snippets that just won't stay in my head.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port=8081 | |
kafkastore.connection.url=localhost:2181 | |
kafkastore.topic=_schemas | |
debug=true | |
kafkastore.timeout.ms = 30000 |
Move current windows to x
position move-window -t 0
Access tmux clipboard tmux show-buffer | jq . -S
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs; | |
mkShell { | |
name = "hello-world-ruby-v1"; | |
buildInputs = [ | |
ruby_2_6 | |
]; |
OlderNewer