Skip to content

Instantly share code, notes, and snippets.

View ctsstc's full-sized avatar
🔥
me = new Person(new Year(2019+7));

Cody Swartz ctsstc

🔥
me = new Person(new Year(2019+7));
View GitHub Profile
@levibrown
levibrown / kube_commands.rb
Last active July 15, 2019 22:35
a cli for common g5 kube commands
#!/usr/bin/env ruby
# Setup:
# 1) `gem install highline`
# 2) save this file to a local folder
# 3) rename the file to remove extension `mv kube_commands.rb kube_commands`
# 4) change permissions `chmod 755 kube_commands`
# 5) link to your /usr/local/bin `ln -s $PWD/kube_commands /usr/local/bin/`
# 6) in a new shell you should now be able to run `kube_commands`
# 7) add new commands and add to this gist
@pjobson
pjobson / plex_double_nat.md
Last active January 20, 2026 05:12
PLEX Double-NAT Setup

PLEX Double-NAT Setup

In the PLEX Troubleshooting Remote Access they have a small section on setting up for Double-NAT, but don’t really get into how to actually do it. In my network I am using a Double-NAT setup with FIOS.

I use the FIOS AC1750 router from which I run an ethernet connection to a Buffalo WZR-HP-AG300H running OpenWRT to which I have my PLEX server and other internet devices connected.

Network Diagram

Here’s a simple diagram of my network.

@mohsenkhanpour
mohsenkhanpour / readme.md
Last active November 30, 2024 10:53
WSL Installation

Installing the distro:

Make Windows ready:

Open PowerShell as Administrator and run:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Restart your computer when prompted.

Install distro:

@ctsstc
ctsstc / tabs-outliner-collapse-all.js
Last active September 22, 2025 12:12
Tabs Outliner - Collapse All
treeView.treeModel.currentSession_rootNode.subnodes.forEach(node => node.setCollapsing(true))
var OGSend = XMLHttpRequest.prototype.send;
XMLHttpRequest.prototype.send = function(){
console.log("I AM HOOKED!");
return OGSend.apply(this, arguments);
};
var site = 'https://www.google.com';
// vanilla js
string[] gv_91D08AC7 = { "A", "A", "B", "C", "D", "E", "F", "0" };
string[] gv_86A87611 = { "1", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
void gf_54138E7E()
{
gv_86A87611[1] = "1";
gv_86A87611[2] = "2";
gv_86A87611[3] = "3";
gv_86A87611[4] = "4";
gv_86A87611[5] = "5";
gv_86A87611[6] = "6";
/**
* The preload script needs to stay in regular ole JavaScript, because it is
* the point of entry for electron-compile.
*/
require('../stat-cache');
const { init } = require('electron-compile');
const { assignIn } = require('lodash');
const path = require('path');
@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active July 21, 2026 07:30
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

For immediate release Contact: Kelly Kearsley, BendTECH board member, StartupBend Co-founder @ 253.732.0041 or Kelly@startupbend.com

The unConference Returns Oct. 17 with Cash Prizes, Raffle Items and More Fun

The unConference, Bend’s casual startup pitchfest, is back and better than ever this year, featuring first-ever cash prizes, raffles, free beer and more. Presented by BendTECH and StartupBend, the eighth annual unConference is scheduled for 2 p.m. to 4:30 p.m. Tuesday, Oct. 17.

This year the conference is keeping the un — that is a low-tech pitch fest, with no powerpoints, no lengthy presentations, no stress, just show up — and adding more fun. With key sponsorships from Kollective, the City of Bend, the Associate Technologies Council and the 1001 Tech Center, the conference will feature cash awards to the top two winners:

  • $2,500 for winning pitch
@ricjcosme
ricjcosme / dump-restore
Created September 13, 2017 17:33
DUMP / RESTORE PostgreSQL Kubernetes
DUMP
// pod-name name of the postgres pod
// postgres-user database user that is able to access the database
// database-name name of the database
kubectl exec [pod-name] -- bash -c "pg_dump -U [postgres-user] [database-name]" > database.sql
RESTORE
// pod-name name of the postgres pod
// postgres-user database user that is able to access the database
// database-name name of the database