Skip to content

Instantly share code, notes, and snippets.

@acidsploit
acidsploit / addr_subscription.py
Created August 12, 2019 16:19
BCHD gRPC address subscription example
#!/usr/bin/env python3
import grpc
import bchrpc_pb2 as pb
import bchrpc_pb2_grpc as bchrpc
def run():
with grpc.secure_channel('bchd.greyh.at:8335', grpc.ssl_channel_credentials()) as channel:
stub = bchrpc.bchrpcStub(channel)
// Example use of BCHD's gRPC bchrpc with nodejs.
// If your bchd uses a self signed cert set env var:
// export NODE_TLS_REJECT_UNAUTHORIZED=0
var PROTO_PATH = __dirname + '/bchrpc.proto';
var async = require('async');
var fs = require('fs');
var grpc = require('@grpc/grpc-js');

Keybase proof

I hereby claim:

  • I am acidsploit on github.
  • I am sploit (https://keybase.io/sploit) on keybase.
  • I have a public key ASAtRbqSQvhlX_0ldMG3W29nRUps-FJJLsHhZO3ok8rFzAo

To claim this, I am signing this object:

@acidsploit
acidsploit / nginx.conf
Created August 7, 2017 10:06
nginx simple myip service - return 200 visitor ip
location = / {
add_header Content-Type text/plain; return 200 $remote_addr;
}
@acidsploit
acidsploit / nginx.conf
Created August 1, 2017 21:01 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname