Skip to content

Instantly share code, notes, and snippets.

View GonZo's full-sized avatar

Paulo Pereira GonZo

View GitHub Profile
@GonZo
GonZo / go.json
Created June 17, 2017 20:39
VSCode golang CLI snippets
"package cli command": {
"prefix": "clicomm",
"body": [
"{"
"Name: \"${1:Name}\","
"Usage: \"${2:Usage}\","
"Description: \"${3:Descrition}\","
"Subcommands: ${4:Function},"
"}"
],

How to use XRDP in Pi Zero

Remove the following packages : xrdp, vnc4server, tightvncserver

sudo apt-get remove xrdp vnc4server tightvncserver

Install tightvncserver followed by xrdp

sudo apt-get install tightvncserver

Keybase proof

I hereby claim:

  • I am gonzo on github.
  • I am gonzo2000 (https://keybase.io/gonzo2000) on keybase.
  • I have a public key ASD4cZLvFKDzEKwE9m8LUk_sQZ1fnOR62IRYmKyJczGScwo

To claim this, I am signing this object:

--- a/nova/api/openstack/compute/servers.py
+++ b/nova/api/openstack/compute/servers.py
@@ -17,6 +17,7 @@
import base64
import os
import re
+import ldap
from oslo.config import cfg
import webob
[identity]
driver=keystone.identity.backends.ldap.Identity
[assignment]
driver=keystone.assignment.backends.sql.Assignment
[ldap]
### Connection Details ###
url=ldaps://localhost
user=CN=svc_user,OU=Svc Acount Org Unit,DC=dc1,DC=example,DC=com
@GonZo
GonZo / gist:5500886
Last active December 16, 2015 21:39
root@openwrtDEV:~/go/src/github.com/dotcloud/docker$ docker version
Version: 0.2.1
Git Commit:
Kernel: 3.5.0-28-generic
root@openwrtDEV:~# docker pull base
Pulling repository base
Error: use of closed network connection
"""
a simple stop loss bot.
adjust STOP_PRICE and STOP_VOLUME to your needs.
The file can be reloaded after editing without
restarting goxtool by simply pressing the l key.
"""
import strategy
import goxapi
# pylint: disable=C0301