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
@CaptainCrouton89
CaptainCrouton89 / example-trace.txt
Last active September 17, 2025 08:34
An example of what my agent will do. Note that it queries db itself, then makes plan. Also note that after the plan, a hook instructs it in how to parallelize the plan. It then uses custom implementor agents to execute the plan. This is a pretty sizable feature, and it's getting one-shot perfectly, and quickly.
I'll help you implement a writing quirks feature that generates unique stylistic elements before
outline creation. Let me first understand the current structure and then create a plan.
⏺ Let me investigate the current codebase structure to understand how outline and plot generation
work.
⏺ Read(src/generation/outline/newOutline.ts)
⎿ Read 237 lines (ctrl+r to expand)
⏺ sql - describe-table (MCP)(tableName: "sequences", includeConstraints: true, includeSampleRows: true)
@agokrani
agokrani / claude-code-prompt.txt
Last active December 2, 2025 18:11
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.
@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 November 17, 2025 21:16
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