Skip to content

Instantly share code, notes, and snippets.

View XertroV's full-sized avatar

Max Kaye XertroV

View GitHub Profile
@XertroV
XertroV / 20210115020047_create_init.rb
Created January 15, 2021 09:57
first draft of migraitons file for cf forum schema
class CreateInit < ActiveRecord::Migration[6.1]
def change
# stand-in; replace later or alter as needed
create_table :users do |t|
t.text :username, limit: 63, null: false
t.text :hex_pw_hash, null: false, limit: 63
t.text :email, unique: true, index: true
t.timestamps
end
@XertroV
XertroV / gist:dfdfa262ec545ace989ccca2699cc5c4
Created July 3, 2021 05:21
netplan bridge with vlan config
# /etc/netplan/01-asdf.yaml
# after populating, run: sudo netplan try
network:
version: 2
renderer: networkd
ethernets:
enp5s0:
dhcp4: true
enp9s0:
dhcp4: true
@XertroV
XertroV / DragBlocks.Script.txt
Last active September 30, 2023 22:04 — forked from davidbmaier/DragBlocks.Script.txt
Drag blocks - TM2020 editor plugin by Nerpson
/**
* @author Nicolas 'Nerpson' Jullien
* @maintainer (this version) XertroV
*
* License: Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
* You are free to:
*
* Share — copy and redistribute the material in any medium or format
* Adapt — remix, transform, and build upon the material
*
#!/usr/bin/env bash
# This is a script to download patch/fix the setup and config so you can use
# chrome-remote-desktop via https://remotedesktop.google.com/headless
#
# crd = chrome-remote-desktop where convenient (like binary names)
#
# There are a few issues that need fixing:
# 1. the oauth onboard via the above link requires Google's binaries (i.e. the ones in the .deb)
# 2. paths don't match - fedora installs in /usr/lib64/chrome-remote-desktop instead of /opt/google/chrome-remote-desktop