Encrypted connections require a certificate + private key.
This little guide shows how to create & inspect those files.
Encryption tool OpenSSL is all we need.
Run command:
| CREATE TABLE IF NOT EXISTS users ( | |
| id uuid PRIMARY KEY DEFAULT gen_random_uuid(), | |
| name varchar(32) UNIQUE NOT NULL CHECK (length(name) >= 3), | |
| avatar_file bytea STORAGE EXTERNAL CHECK (avatar_file IS NULL OR length(avatar_file) < 50000), | |
| about_me varchar(2048), | |
| date_time_creation timestamp NOT NULL DEFAULT (CURRENT_TIMESTAMP AT TIME ZONE 'utc'), | |
| date_time_last_login timestamp CHECK (date_time_last_login IS NULL OR date_time_last_login >= date_time_creation) | |
| ); |
Encrypted connections require a certificate + private key.
This little guide shows how to create & inspect those files.
Encryption tool OpenSSL is all we need.
Run command:
| const InfoCollapsePlugin = (system) => { | |
| const React = system.React; | |
| return { | |
| wrapComponents: { | |
| info: (Original) => (props) => React.createElement( | |
| "details", | |
| { | |
| open: true | |
| }, | |
| React.createElement( |
| new (require('ws').Server)({port:8080}).on('connection',sock=>sock.on('message',data=>sock.send(String(data)))) |
| #[cfg(feature = "gpgpu")] | |
| mod gpgpu { | |
| // Imports | |
| use ocl::{ | |
| Platform, | |
| Device, | |
| enums::{ | |
| PlatformInfo, | |
| DeviceInfo | |
| }, |
| #! /bin/bash | |
| # HELPERS | |
| # Variables | |
| pkg_install="yum -y install" | |
| pkg_installed="yum list installed" | |
| pkg_clean="yum clean all" | |
| pkg_update="yum -y update" | |
| service_enable="systemctl enable" | |
| service_start="systemctl start" |
| // On stable: <https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.get_key_value> | |
| pub fn get_key_value<'a,K,V,Q: ?Sized>(map: &'a HashMap<K,V>, k: &Q) -> Option<(&'a K, &'a V)> | |
| where K: std::borrow::Borrow<Q> + std::hash::Hash + std::cmp::Eq, | |
| Q: std::hash::Hash + Eq { | |
| let key = map.keys().find(|key| key.borrow() == k)?; | |
| Some((key, map.get(key.borrow())?)) | |
| } |
| use std::env; | |
| fn main() { | |
| // Multisampling not supported on CI machine, else 8 samples are absolutely enough | |
| println!("cargo:rustc-env=SAMPLES={}", if env::var("TRAVIS_RUST_VERSION").is_ok() {1} else {8}); | |
| } |
| @echo off | |
| rem Resize window for following masses of content | |
| mode 200,50 | |
| rem Get CPU information | |
| echo # CPU | |
| wmic CPU GET AddressWidth,CurrentClockSpeed,CurrentVoltage,L2CacheSize,L3CacheSize,LoadPercentage,Manufacturer,Name,NumberOfCores,NumberOfLogicalProcessors | |
| echo. | |
| rem Get graphics card information |
| function hex2RGBA(hex: string) { | |
| if(hex !== null && hex.charAt(0) === '#') { | |
| const pattern = /[0-9a-f]{1,2}/ig, | |
| rgba = [0, 0, 0, 255]; | |
| for( | |
| let i = 0, match; | |
| i < 4 && (match = pattern.exec(hex)) !== null; | |
| i++ | |
| ) | |
| rgba[i] = parseInt(match.toString(), 16); |