Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

cbluth

🌴
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
View cbluth.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC2C9lly8vkPt0s+T1sfVDy9tWXXdPLnRrJZZ/r5u6oe1eZCDJArXr2OxQZFE5xMJrKnAIUkQ+2MxoJcGHBTTRgc5bWyARLZeyD+VlMDjqsi57JxAhTX3xnM8ZXDSEHK/xf9zqMG3UziI2AL/l862xz1PaMCJdX5Q9L8ob++1aOqo/9V5rupmbYo/kOm49w8hImCK0gBVEMHDfUpB7zvdUv+mXrR9Gpru5cgK+cKte8xZ7qnJPzN35npryJ0BncNXErYxo/XnIrTZrmARvLumrmDrRIW5ReGig1Mm+I7Fo9NfTwqZB3PpIRUgT2mr5JveFciS5HgSml2E4Djeoh8TM3 cbluth@dl7490
@cbluth
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
cbluth / wildcard-ssl-certificate.md
Created Feb 28, 2019 — forked from talyguryn/wildcard-ssl-certificate.md
How to get a wildcard ssl certificate and set up Nginx.
View wildcard-ssl-certificate.md

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.

@cbluth
cbluth / IDRAC-README
Created Feb 12, 2019 — forked from xbb/README
IDRAC6 Virtual Console Launcher
View IDRAC-README
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
cbluth / imgur-example.html
Created Feb 11, 2019 — forked from homam/imgur-example.html
html2canvas example
View imgur-example.html
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.js"></script>
<form method="POST" enctype="multipart/form-data" action="https://www.google.com/save" id="myForm">
<input type="hidden" name="img_val" id="img_val" value="" />
</form>
<div id="more">
<h1 style='color: red'> hello </h1>
<iframe src="https://tags.mli.me/12751">
</iframe>
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
@cbluth
cbluth / Cloud Storage Backup Tutorial.md
Created Jan 16, 2019 — forked from briantkatch/Cloud Storage Backup Tutorial.md
Tutorial for making an encrypted backup on cloud storage using rclone.
View Cloud Storage Backup Tutorial.md

Amazon Cloud Drive Advisory

Over the past few days, a security issue came to light regarding an authentication service used by another tool, acd_cli. acd_cli had its authentication keys for Amazon Cloud Drive blocked after Amazon engineers reviewed their source code for their authentication service and found a security issue.

This morning, rclone's authentication keys were apparently blocked by Amazon. No reason has been brought forth at this time, and rclone does not use a cloud service to authenticate users - it uses a local web server. Theories include an influx of rclone users after acd_cli was blocked, people extracting the API authentication keys from rclone and using them with acd_cli, a combination of both, or Amazon wanting to clamp down on heavy users with several terabytes of data, and blocking the tools they use to do so.

The Amazon rep that I spoke with over the phone speculated that it "may be because of a recent event," but offered nothing more. I was offered a full refund, four month

View arango-backup.cronjob.yaml
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: arangodb-storage-db-backup
spec:
schedule: "0 0 * * *"
jobTemplate:
spec:
template:
View gist:48055456b84fac0358b79a142f1eb83d
package main
import (
"fmt"
"strings"
"gopkg.in/ldap.v2"
)
const (
ldapServer = "ad.example.com:389"
View docker-apt-pinning.txt
https://aboutsimon.com/blog/2018/04/18/Ubuntu-Docker-Version-Pinning-for-Kubernetes.html
sudo apt install\
apt-transport-https\
ca-certificates\
software-properties-common\
curl
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
You can’t perform that action at this time.