Skip to content

Instantly share code, notes, and snippets.

Sven shoeper

Block or report user

Report or block shoeper

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
@shoeper
shoeper / glassfish4-localhost-domain.xml
Created Sep 19, 2018 — forked from nikku/glassfish4-localhost-domain.xml
A stripped down domain.xml for Glassfish 4 application servers behind an Apache 2 / Nginx proxy.
View glassfish4-localhost-domain.xml
<domain log-root="${com.sun.aas.instanceRoot}/logs" application-root="${com.sun.aas.instanceRoot}/applications" version="89">
<security-configurations>
<authentication-service default="true" name="adminAuth" use-password-credential="true">
<security-provider name="spcrealm" type="LoginModule" provider-name="adminSpc">
<login-module-config name="adminSpecialLM" control-flag="sufficient" module-class="com.sun.enterprise.admin.util.AdminLoginModule">
<property name="config" value="server-config"></property>
<property name="auth-realm" value="admin-realm"></property>
</login-module-config>
</security-provider>
<security-provider name="filerealm" type="LoginModule" provider-name="adminFile">
@shoeper
shoeper / nginx-unificontroller.conf
Created Aug 24, 2018 — forked from vidia/nginx-unificontroller.conf
Example, working, NGINX config for proxying to Unifi Controller software and using letsencrypt. Includes websocket fix.
View nginx-unificontroller.conf
# I had a bit of trouble getting my unifi controller (hosted offsite) to use a proxy/letsencrypt. So here are the fruits of my labor.
# The unifi default port is 8443 running on localhost.
# License: CC0 (Public Domain)
server {
# SSL configuration
#
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
View 1-Enable Docker Remote API with TLS client verification.md

Enable Docker Remote API with TLS client verification

Docker's Remote API can be secured via TLS and client certificate verification.
First of all you need a few certificates and keys:

  • CA certificate
  • Server certificate
  • Server key
  • Client certificate
  • Client key

Create certificate files

@shoeper
shoeper / tuya_cloud.py
Created Jun 14, 2018 — forked from bahorn/tuya_cloud.py
Cloud endpoint
View tuya_cloud.py
import requests
import hashlib
import time
import uuid
import os
import copy
import json
# Fixed up version of my previous code to work with the Cloud endpoints.
# Hopefully this works.
@shoeper
shoeper / sign.py
Created Jun 13, 2018 — forked from bahorn/sign.py
Implementation of the Tuya API signing.
View sign.py
import requests
import hashlib
import time
import uuid
import os
import copy
import json
# This is based on my personal implementation but stripped down to only what is
# needed to verify it.
@shoeper
shoeper / pdf2htmlEX.sh
Last active Sep 19, 2016 — forked from rajeevkannav/pdf2htmlEX.sh
Install CMake, pkg-config,GNU Getopt,GCC,poppler,fontforge,pdf2htmlEX in Ubuntu 15.05
View pdf2htmlEX.sh
#!/bin/bash
# Ubuntu Developer Script for pdf2htmlEx
# Created by Rajeev Kannav Sharma
# http://rajeevkannav.github.io/
#
#
# Downloads and configures the following:
#
# CMake, pkg-config
# GNU Getopt
View dovecot-10-auth.conf
auth_mechanisms = plain login digest-md5 cram-md5 ntlm apop
!include auth-sql.conf.ext
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@shoeper
shoeper / cpuchecks
Created Sep 19, 2014
Output on Debian Wheezy armhf Cubietruck (CTDebian)
View cpuchecks
CPU checks
cat /proc/stat
cpu 5980399 11913132 2932635 127127029 1047304 264 31248 0 0 0
cpu0 3011339 6167764 1718076 61891330 503296 253 23962 0 0 0
cpu1 2969060 5745368 1214559 65235699 544008 11 7286 0 0 0
intr 321175563 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 56805749 0 0 0 2291 0 0 0 3 0 11188722 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 82419651 0 0 0 0 0 0 0 0 0 21037226 0 2314064 0 0 0 0 91522406 0 0 45758249 0 0 0 0 0 0 0 0 165 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3863400 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 344021807
btime 1410377050
processes 1430298
View ssd-cache-wait.conf
description "Suspend dmcache for SSD cache"
author "Kyle Manna <kyle@kylemanna.com>"
# Start monitoring with inotifywait (will block) after the filesystem is
# mounted, when the filesystem is unmounted, teardown the dm devices.
start on mounted MOUNTPOINT=/media/usb1
script
inotifywait -e unmount $MOUNTPOINT
You can’t perform that action at this time.