Skip to content

Instantly share code, notes, and snippets.

View wmantly's full-sized avatar

William Mantly wmantly

View GitHub Profile
https://www.techpowerup.com/download/nvidia-nvflash-with-board-id-mismatch-disabled/
https://drive.google.com/drive/folders/1jp824XrO6fn1bPTCbrFjUEVBtxTptB1Z
func parse_path(props, params, path){
for(let key in props)
if(params[key]){
path.replace(`{${key}}`, params[key]);
}else{
throw "some error";
}
return path;
}
__NUM = int(input())
class Trie(dict):
def __call__(self, command, word):
return getattr(self, command)(word)
def add(self, word):
current = self
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDM9vboz5YGgESsrR2e4JOeP2qtmQo2S8BjI+Y/VxPQ6WbNFzAkXxDniHcnPCrhkeX36SKINvMjWnt4XOK2S+X+1tCoXJzqtcKKyK0gx8ijBxcWVPxsMWjMYTGSVSKiKnt6CyQzrbVGJMh3iAQ8Yv1JwH+6SAtMgT8it7iLyntNFJCesh4I/znEG58A5VBbdUle1Ztz9afjj1CZns17jk7KPm9ig5DmuvdvnMEfhFjfKv1Rp6S5nxacMoTP4tJNSEUh55IicoWk94ii5GwUVLYgyMmzdlA32TqVLFpU2yAvdA9WSnBaI/ZyktlfI7YAmK2wFBsagr9Pq1TcUAY6rZ/GTMjDxExgdYn/FxlufcuqeNJsJXs2A+0xDS/9mv/yGQzNZrL8DrVhY2OKKLoH4Q7enDbhSgEFmJUJMqPxuPEgLEvKfzcURSvIwRj1iCEw6S4dhdaLJl2RRBb1ZWBQbE5ogIbvAl7GFJUAhj3pqYJnd30VENv1MkK+IoCS7EEP0caqL9RNAId0Plud7q2XElHqzkYUE+z+Q/LvGgclXK1ZmZejNaMnV53wfhAevfwVyNGK9i5gbwc1P2lplIa5laXCcVWezqELEkTpdjp4AeKmMuCr8rY8EnLKIcKWEOsX5UumztCow6e1E55v3VeHvRZLpw4DZP7EE0Q8B/jPFWqbCw== wmantly@gmail.com
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()
}
cd ../../c9
cd rootfs/
fuidshift `pwd` -t -r b:0:231072:65536
fuidshift `pwd` -r b:0:231072:65536
tar --numeric-owner -czvf container_fs.tar.gz ./*
scp container_fs.tar.gz root@192.168.1.42:/root/c9_fs.tar.gz
map $http_upgrade $connection_upgrade {
default Upgrade;
'' close;
}
server {
listen 80;
include autossl.conf;
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'},