Skip to content

Instantly share code, notes, and snippets.

View nelsonjchen's full-sized avatar

Nelson Chen nelsonjchen

View GitHub Profile
Play Cards Against Humanity for me and choose the best card.
A romantic candlelit dinner would be incomplete without ______.
My Hand:
* A sick burnout.
* Walking in on Dad peeing into Mom's mouth.
* The cool, refreshing taste of Pepsi®.
* Hurricane Katrina.
<!DOCTYPE html><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><base href="https://spektor56.github.io/comma10kreviewer/"><style>body{margin-left:0;margin-right:0;margin-top:0}#bN015htcoyT__google-cache-hdr{background:#f8f9fa;font:13px arial,sans-serif;text-align:left;color:#202124;border:0;margin:0;border-bottom:1px solid #dadce0;line-height:16px;padding:16px 28px 24px 28px}#bN015htcoyT__google-cache-hdr *{display:inline;font:inherit;text-align:inherit;color:inherit;line-height:inherit;background:none;border:0;margin:0;padding:0;letter-spacing:0}#bN015htcoyT__google-cache-hdr a{text-decoration:none;color:#1a0dab}#bN015htcoyT__google-cache-hdr a:hover{text-decoration:underline}#bN015htcoyT__google-cache-hdr a:visited{color:#681da8}#bN015htcoyT__google-cache-hdr div{display:block;margin-top:4px}#bN015htcoyT__google-cache-hdr b{font-weight:bold;display:inline-block;direction:ltr}</style><div id="bN015htcoyT__google-cache-hdr"><div><span>This is Google's cache of <a href="https://spektor56.gi
@nelsonjchen
nelsonjchen / minimote.yaml
Last active January 30, 2022 23:11
Aeotec Minimote buttons
---
blueprint:
name: Aeotec Minimote
description: Create automations for the Aeotec Minimote
domain: automation
input:
aeotec_minimote:
name: Aeotec MiniMote
description: The Minimote to interact with.
selector:

[Code-Server][cs] is a text editor server you can install and run on your EON/C2 to get a nicer GUI for editing files. It is a fork of Microsoft's [Visual Studio Code][vscode].

.. insert screenshot here of code server ..

This is particularly useful for devices such as the EON or Comma Two where a GUI on the device isn't available.

Obtain SSH access to your EON/C2 first at https://github.com/commaai/openpilot/wiki/SSH .

Installing Code-Server

@nelsonjchen
nelsonjchen / access_policy.json
Created May 25, 2021 05:56
`aws/efs/automatic-backup-vault`'s default access policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Principal": {
"AWS": "*"
},
"Action": [
"backup:DeleteBackupVault",
@nelsonjchen
nelsonjchen / clone_all_repos.sh
Last active April 6, 2021 20:04 — forked from clrung/clone_all_repos.sh
Clones all repos in a GitHub organization (for input into GNU parallel)
#!/bin/bash
# Usage: clone_all_repos.sh [organization] <output directory>
ORG=$1
PER_PAGE=100
GIT_OUTPUT_DIRECTORY=${2:-"/tmp/${ORG}_repos"}
if [ -z "$GITHUB_TOKEN" ]; then
# https://github.com/settings/tokens
echo -e "Variable GITHUB_TOKEN isn't set! Please specify your GitHub token.\n\nMore info: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/"
% IANA WHOIS server
% for more information on IANA, visit http://www.iana.org
% This query returned 1 object
refer: whois.verisign-grs.com
domain: COM
organisation: VeriSign Global Registry Services
address: 12061 Bluemont Way
info: Game: Sims2EP9.exe
info: DXVK: v1.5
info: Found config file: dxvk.conf
info: Found built-in config:
info: Effective configuration:
info: d3d9.presentInterval = 0
info: dxvk.hud = version,memory
info: d3d9.swvpIntCount = 16
info: d3d9.customDeviceDesc = GeForce 7800 GTX
info: d3d9.memoryTrackTest = True
#### GUNMOD RLS 2.3 beta ####
ignoreErrors true
boolProp UseShaders true
boolProp specHighlights true
boolProp floorAndWallNormalMapping true
boolProp bumpMapping true
boolProp skipTangentsInVertexData false #false for bumpmapping!
uintProp optionLightingQuality 3 #These two lines set the lighting option and
uintProp LightingQuality 3 #the lighting level to MAX (as required)
#### END ####
info: Game: Sims2EP9.exe
info: DXVK: v1.4
info: Found config file: dxvk.conf
info: Found built-in config:
info: Effective configuration:
info: d3d9.customVendorId = 10de
info: d3d9.maxAvailableMemory = 1435973836
info: d3d9.presentInterval = 0
info: d3d9.swvpBoolCount = 16
info: d3d9.swvpIntCount = 16