Skip to content

Instantly share code, notes, and snippets.

View wmantly's full-sized avatar

William Mantly wmantly

View GitHub Profile
listen 443 ssl http2;
listen 4443 ssl;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_certificate_by_lua_block {
auto_ssl:ssl_certificate()
}

Setting up a production/ pre-production server

Update the OS

First, make sure the OS is fully up to date:

apt update
apt upgrade
'use strict';
const keys_map = {
'host': {isRequired: true, type: 'string', min: 3, max: 500},
'ip': {isRequired: true, type: 'string', min: 1, max: 500},
'username': {isRequired: true, type: 'string', min: 1, max: 500},
'updated': {default: function(){return (new Date).getTime()}},
'targetPort': {isRequired: false, default: 80, type: 'number', min: 0, max: 65535},
'forcessl': {isRequired: false, default: true, type: 'boolean'},
'targetssl': {isRequired: false, default: false, type: 'boolean'},
var app = {};
app.api = (function(app){
var baseURL = '/api/'
function post(url, data, callack){
$.ajax({
type: 'POST',
url: baseURL+url,
headers:{

Update the iLO

  • Log into iLO. iLO will use DHCP to obtain a IP address.
  • GoTo Administration > iLO Firmware and Upload this file https://stuff.718it.biz/hp/ilo4_270.bin
  • Allow it to reboot and enjoy the HTML5 remote console!

Upgrade the Raid array to version 8+

This step requires a redhat based distro, like centos. A live distro may do although is untested.

{
"/dev/disk/by-id/scsi-35000c50034b0014f": {
"Elements in grown defect list": "29",
"Non-medium error count": "54",
"SMART Health Status": "OK",
"read": {
"Correction algorithm invocations": "1",
"ECC corrected delayed": "1",
"ECC corrected fast": "2075731551",
"ECC reread/rewrites": "0",
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
#After=mysqld.service
#After=postgresql.service
#After=memcached.service
#After=redis.service
[Service]
class Login(View):
template = 'users/login.html'
form = AuthenticationForm
def get(self, request):
context = {
'loginForm': self.form()
}
return render(request, self.template, context)
#!/usr/bin/env bash
# Place this file in /usr/bin/node-async-interactive
# Run `chmod +x /usr/bin/node-async-interactive` to make it executable
# Usage `node-async-interactive node_file.js` will drop you in a interactive node REPL
node --experimental-repl-await -i -e "$(< $1)"
@wmantly
wmantly / lxc.md
Last active September 8, 2020 20:23

LXC Unprivileged setup

This will help you set up LXC containers to be used by non-root users. This guide has been tested and updated based on Ubuntu 16.04/18.04.

Update the system

Update your system to the newest packages and reboot. You may need to do this several times: