First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgrade
Then, install required libraries:
import sys | |
from cuda import cudart | |
import numpy as np | |
import cupy as cp | |
import pyrr | |
import glfw |
extends Node | |
var client | |
var wrapped_client | |
var connected = false | |
var message_center | |
var should_connect = false | |
func _ready(): |
/* Helper buddy for removing async/await try/catch litter 🗑 */ | |
function O_o(promise) { | |
return promise.then(data => { | |
if (data instanceof Error) return [data] | |
return [null, data] | |
}).catch(err => [err]) | |
} | |
/* Look ma, no try/catch */ | |
async function usageExample(params) { |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import base64 | |
MESSAGE = ''' | |
EUYQGhMMSx0cU0FIU1MCFAQPG01NQ0gTAEICChUGBxZTRVxBSQoZFQYKHQpKSUNURhcVEgoUFR1I | |
SltDSBkBTRwKEAgQHxFCSkFJDgkJCgoGCkMLAQBGUklUQhMPAgAJCgYLV0MOSR0VAxAaABZBQVRP | |
TRICCRVIAk5IEg4dVFRfRkYZBgRARBI= | |
''' |
import sys | |
import re | |
import uuid | |
def literal_uuid(m): | |
return str(uuid.uuid4()) | |
unfixed="" | |
with open(sys.argv[1],'r') as sqlfile: | |
unfixed = sqlfile.read() |
import sys | |
import re | |
import uuid | |
def literal_uuid(m): | |
return str(uuid.uuid4()) | |
unfixed="" | |
with open(sys.argv[1],'r') as sqlfile: | |
unfixed = sqlfile.read() |
Easily set up a front end website with ssl on blank server (with port 443 open)
before you start, you need
install docker
get my.pub.lic.ip (curl https://wtfismyip.com/text)
place the certificate files
/etc/ssl/certs/__mydomain_com.crt
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
<?php | |
# ------------------------------ | |
# START CONFIGURATION SECTION | |
# | |
$launch_url = "http://www.imsglobal.org/developers/BLTI/tool.php"; | |
$key = "12345"; | |
$secret = "secret"; | |
$launch_data = array( |