Skip to content

Instantly share code, notes, and snippets.

@marcw
marcw / server.conf
Created January 22, 2018 18:17
Nginx configuration to serve a Symfony app under a subdirectory of a PHP application
# With this nginx configuration, you will be able to serve a Symfony app in a subdirectory
# of a wordpress (or any other PHP application).
server {
listen 80;
listen [::]:80;
server_name mysite.com;
root /var/www/wordpress;
index index.php app.php index.html;
### Keybase proof
I hereby claim:
* I am marcw on github.
* I am de_la_tech (https://keybase.io/de_la_tech) on keybase.
* I have a public key ASCGlP8VOU_37UzSFnt8SgPKLeP_OZ5zWEcFemdeoCbdvQo
To claim this, I am signing this object:
@marcw
marcw / ln-connect-to-onion-peers.sh
Created February 13, 2019 23:07
Connect to all tor onion peers in the lightning network node graph. It works on a Raspiblitz v0.99! :)
#!/bin/bash
lncli describegraph | jq '.nodes[] | select(.addresses[].addr | contains("onion")) | .pub_key + "@" + .addresses[0].addr' | xargs -L1 lncli connect