Skip to content

Instantly share code, notes, and snippets.

View XertroV's full-sized avatar

Max Kaye XertroV

View GitHub Profile
@XertroV
XertroV / env-wsl-v2-x11-server.sh
Created November 2, 2020 20:44
commands to export DISPLAY on WSL v2 so that X11 applications work. (an option like 'allow public access' is usually required in the x-server settings; use windows firewall to block network traffic)
export WSL_HOST_IP="$(cat /etc/resolv.conf | grep -E '[0-9]{1,3}\.' | cut -d ' ' -f 2)"
export DISPLAY=$WSL_HOST_IP:0
@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
*