Skip to content

Instantly share code, notes, and snippets.

View ctsstc's full-sized avatar
πŸ”₯
me = new Person(new Year(2019+6));

Cody Swartz ctsstc

πŸ”₯
me = new Person(new Year(2019+6));
View GitHub Profile
@bengalih
bengalih / RARBGRansomRecovery.ps1
Last active March 24, 2025 23:59
RARBGRansomRecovery.ps1
##############################################################################
# RARBGRansomRecovery.ps1
# v.0.1.1
# by bengalih
# You may need to set your PoweShell Execution policy as below:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
# If that doesn't work try:
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
@Dan-Q
Dan-Q / _no_code_page_.php
Last active October 12, 2024 16:49
Hacky PHP to produce a "blank" web page which somehow has content when viewed in Firefox. Sample page at https://danq.me/wp-content/no-code-webpage/, explanation at https://danq.me/nocode
<?php
// half-hearted CSS minification
$css = preg_replace(
array('/\s*(\w)\s*{\s*/','/\s*(\S*:)(\s*)([^;]*)(\s|\n)*;(\n|\s)*/','/\n/','/\s*}\s*/'),
array('$1{ ','$1$3;',"",'} '),
file_get_contents('linked.css')
);
// embed as a data: uri
$base64css = rtrim(strtr(base64_encode($css), '+/', '-_'), '=');
@amalmurali47
amalmurali47 / backup_digitalocean.md
Last active March 2, 2025 14:22
Backup DigitalOcean droplet locally

DigitalOcean does not provide a way to download a snapshot of your droplet locally. You can use rsync to accomplish this instead.

On your local machine, assuming you have added your-server in your SSH config:

rsync -aAXHv --append-verify --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} your-server:/
  • -a : archive mode (all files, with permissions, etc.)
  • -A : preserve ACLs/permissions (not included with -a)
@ybakos
ybakos / _resources.md
Last active January 4, 2020 21:07
Level Up C: Resources
@zmts
zmts / fingerprint.md
Last active February 1, 2025 11:44
Get browser fingerprint example (fingerprintjs2)

Get browser fingerprint example (fingerprintjs2)

import * as Fingerprint2 from 'fingerprintjs2'
import * as UAParser from 'ua-parser-js'

function _getFingerprint () {
  return new Promise((resolve, reject) => {
    async function getHash () {
      const options = {

Keybase proof

I hereby claim:

  • I am ctsstc on github.
  • I am cts_ae (https://keybase.io/cts_ae) on keybase.
  • I have a public key ASDQOl_GG3phDr6YpOItUyepXklobgEzcpseci1Jr5YwFAo

To claim this, I am signing this object:

@ctsstc
ctsstc / kube_commands.rb
Last active October 17, 2019 22:25 — forked from levibrown/kube_commands.rb
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_command`
# 4) change permissions `chmod 755 kube_commands`
# 5) link to your /usr/local/bin `ln -s $PWD/kube_command /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
@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 March 23, 2025 06:33
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.