Skip to content

Instantly share code, notes, and snippets.

Avatar
🏝️
It's nice in Los Angeles

Nelson Chen nelsonjchen

🏝️
It's nice in Los Angeles
View GitHub Profile
View code-server.md

[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
`aws/efs/automatic-backup-vault`'s default access policy
View access_policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Principal": {
"AWS": "*"
},
"Action": [
"backup:DeleteBackupVault",
@nelsonjchen
nelsonjchen / clone_all_repos.sh
Last active Apr 6, 2021 — forked from clrung/clone_all_repos.sh
Clones all repos in a GitHub organization (for input into GNU parallel)
View clone_all_repos.sh
#!/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/"
View gist:cceceb63c26785558cbc245ca529e671
% 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
View gist:510ab59caa85251c4709
package main
import "net"
func echoServer(c net.Conn) {
for {
buf := make([]byte, 512)
nr, err := c.Read(buf)
if err != nil {
return
View Sims2EP9_d3d9.log
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
View userStartup.cheat
#### 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 ####
View Sims2EP9_d3d9.log
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
View Sims2EP9_d3d9.log
info: Game: Sims2EP9.exe
info: DXVK: v1.3.3
info: Found config file: dxvk.conf
info: Found built-in config:
info: Effective configuration:
info: d3d9.customVendorId = 10de
info: d3d9.swvpFloatCount = 384
info: d3d9.swvpIntCount = 16
info: d3d9.maxAvailableMemory = 1435973836
info: d3d9.swvpBoolCount = 16
View Graphics Rules.sgr
#############################################################################
#
# Logging settings
#
set logGroup "ConfigurationManager"
set logLevelWarning warning
set logLevelInfo info
set logLevelDebug debug