Dev Cheat Sheets
Personal collection of commands and snippets that just won't stay in my head.
Personal collection of commands and snippets that just won't stay in my head.
#!/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); |
port=8081 | |
kafkastore.connection.url=localhost:2181 | |
kafkastore.topic=_schemas | |
debug=true | |
kafkastore.timeout.ms = 30000 |
I hereby claim:
To claim this, I am signing this object:
docker-compose up -d
docker-compose exec parity /parity/parity signer new-token | grep http
# browse to url
Move current windows to x
position move-window -t 0
Access tmux clipboard tmux show-buffer | jq . -S
command | outcome |
---|---|
:args ag -l spec_helper |
add command result to args list |
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; |
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs; | |
mkShell { | |
name = "hello-world-ruby-v1"; | |
buildInputs = [ | |
ruby_2_6 | |
]; |
{ 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"; |