Skip to content

Instantly share code, notes, and snippets.

On vacation


On vacation
  • The Netherlands
Block or report user

Report or block cbluth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cbluth / Dockerfile
Created Sep 16, 2019 — forked from jdiamond/Dockerfile
SSH certificates
View Dockerfile
FROM alpine
# Install OpenSSH:
RUN apk -U add openssh
# Generate host keys:
RUN ssh-keygen -A
# Create users:
RUN adduser -D user1
cbluth /
Created Sep 14, 2019 — forked from denji/
Simple Golang HTTPS/TLS Examples

Moved to git repository:

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
cbluth / ca_and_cert_golang_demo.go
Created Sep 14, 2019 — forked from shaneutt/ca_and_cert_golang_demo.go
Golang: Demonstrate creating a CA Certificate, and Creating and Signing Certs with the CA
View ca_and_cert_golang_demo.go
package main
import (
cbluth / simple-json-api.go
Created Jul 13, 2019 — forked from tomnomnom/simple-json-api.go
Simple JSON API Server in Go
View simple-json-api.go
package main
import (
// The `json:"whatever"` bit is a way to tell the JSON
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC2C9lly8vkPt0s+T1sfVDy9tWXXdPLnRrJZZ/r5u6oe1eZCDJArXr2OxQZFE5xMJrKnAIUkQ+2MxoJcGHBTTRgc5bWyARLZeyD+VlMDjqsi57JxAhTX3xnM8ZXDSEHK/xf9zqMG3UziI2AL/l862xz1PaMCJdX5Q9L8ob++1aOqo/9V5rupmbYo/kOm49w8hImCK0gBVEMHDfUpB7zvdUv+mXrR9Gpru5cgK+cKte8xZ7qnJPzN35npryJ0BncNXErYxo/XnIrTZrmARvLumrmDrRIW5ReGig1Mm+I7Fo9NfTwqZB3PpIRUgT2mr5JveFciS5HgSml2E4Djeoh8TM3 cbluth@dl7490
cbluth / attributes.rb
Created Apr 21, 2019 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
View attributes.rb
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
cbluth /
Created Feb 28, 2019 — forked from talyguryn/
How to get a wildcard ssl certificate and set up Nginx.

How to get and install a wildcard SSL certificate

In this guide you can find how to resolve the following issues.

Feel free to ask any questions in the comments section below.

Created Feb 12, 2019 — forked from xbb/README
IDRAC6 Virtual Console Launcher
Use this as an example on how to start the virtual console without the need of Java Web Start or accessing it from the web interface.
You can use the user and password that you use for the web interface.
You need an old JRE... I used 1.7.0_80 from the Server JRE package, also I have tested successfully 1.7.0_79 with MacOS.
You don't need to install it, just extract it or copy the files in "jre" folder.
Open the viewer.jnlp file that you get by launching the virtual console from the web interface with a text editor.
Note the urls to the jar files. Download the main jar file avctKVM.jar and the libs for your operating system and architecture.
Extract the dlls (.so Linux, .jnilib MacOS) from the jar libs.
cbluth / imgur-example.html
Created Feb 11, 2019 — forked from homam/imgur-example.html
html2canvas example
View imgur-example.html
<script src=""></script>
<script src=""></script>
<form method="POST" enctype="multipart/form-data" action="" id="myForm">
<input type="hidden" name="img_val" id="img_val" value="" />
<div id="more">
<h1 style='color: red'> hello </h1>
<iframe src="">
View nginx-debian-rules.patch
--- rules 2019-01-24 17:12:07.955804027 +0100
+++ rules 2019-01-24 17:12:42.919835061 +0100
@@ -103,7 +103,8 @@
--add-dynamic-module=$(MODULESDIR)/http-dav-ext \
--add-dynamic-module=$(MODULESDIR)/http-echo \
--add-dynamic-module=$(MODULESDIR)/http-upstream-fair \
- --add-dynamic-module=$(MODULESDIR)/http-subs-filter
+ --add-dynamic-module=$(MODULESDIR)/http-subs-filter \
+ --add-dynamic-module=/usr/local/src/nginx-auth-ldap
You can’t perform that action at this time.