No drivers need to be installed on the proxmox, from now called host.
Find GIDs of video and render group on host:
cat /etc/group | grep video
cat /etc/group | grep render
#!/bin/bash | |
# Installs CodeDeploy agent and its prerequisites on Ubuntu 22.04 given AWS CodeDeploy team doesn't exist | |
# https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent.html#codedeploy-agent-version-history | |
CODEDEPLOY_VERSION=1.4.1-2244 | |
sudo apt update | |
sudo apt install ruby-full ruby-webrick wget -y | |
cd /tmp |
cheatsheet do | |
title 'VSCode snippets' # Will be displayed by Dash in the docset list | |
docset_file_name 'VSCode-snippets' # Used for the filename of the docset | |
keyword 'typescript' # Used as the initial search keyword (listed in Preferences > Docsets) | |
# resources 'resources_dir' # An optional resources folder which can contain images or anything else | |
introduction 'Snippet shortcuts for vscode' # Optional, can contain Markdown or HTML | |
# https://github.com/accierro/react-typescript-snippets | |
category do |
select pid, | |
usename, | |
pg_blocking_pids(pid) as blocked_by, | |
query as blocked_query | |
from pg_stat_activity | |
where cardinality(pg_blocking_pids(pid)) > 0; |
# Webpack loader: manifest.json map generated by webpacker | |
manifest = orjson.loads(open(f'{app.static_folder}/dist/manifest.json').read()) | |
def webpack(pack): | |
filename = 'bundle.js' if app.config['ENV'] == 'development' else manifest.get(pack) | |
return f'{app.static_url_path}/dist/{filename}' | |
app.jinja_env.globals.update(webpack=webpack) | |
# Use in template <script src="{{ webpack('main.js') }}"></script> |
from django.core import signing | |
from django.conf import settings | |
from django.utils.module_loading import import_string | |
session_data = 'xxxxxxx' | |
settings.configure(SECRET_KEY = 'XXXX') | |
signing.loads( | |
session_data, | |
salt="django.contrib.sessions.SessionStore", |
require 'aws-sdk-s3' | |
require 'concurrent' | |
source_bucket = 'xxx' | |
dest_bucket = 'xxx' | |
acl = 'public-read' | |
client = Aws::S3::Client.new( | |
region: 'ap-southeast-2', |
export $(cat /opt/elasticbeanstalk/deployment/env | xargs) |
DROP TABLE IF EXISTS requests; | |
CREATE TABLE requests ( | |
request_date Date, | |
request_time DateTime, | |
response_time Int, | |
request_uri String) | |
ENGINE = MergeTree(request_date, (request_time, request_uri), 8192); | |