Skip to content

Instantly share code, notes, and snippets.

View poysama's full-sized avatar

poysama poysama

View GitHub Profile
@poysama
poysama / secret-rotation-2677.md
Last active March 23, 2026 09:29
Secret Rotation Runbook - polaris#2677
@poysama
poysama / sst-v4-native-waf-review.md
Last active March 9, 2026 06:25
SST v4 Router: Native WAF vs Transform Approach — Review of findings

SST v4 Router: Native WAF — Reference Document

Context: This document provides the complete specification for SST v4 Router's native waf property, compares it against the manual transform approach used in SST v3, and recommends migration. Use this as a reference when implementing or advising on WAF for SST Router.


1. SST v4 Router Native WAF — Full Specification

Source: SST v4 Router docs

@poysama
poysama / cost-investigation-feb2026-report.html
Last active February 23, 2026 10:03
AWS Cost Investigation — February 2026
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AWS Cost Investigation — February 2026</title>
<style>
:root {
--bg: #ffffff;
--text: #1a1a2e;
@poysama
poysama / rtmp.conf
Created May 3, 2018 15:14
RTMP Nginx Twitch and Facebook Live
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
push rtmp://live-sin.twitch.tv/app/your_secret;
push rtmp://live-api.facebook.com:80/rtmp/your_secret;
@poysama
poysama / centos_python.sh
Created January 11, 2017 08:15 — forked from selfboot/centos_python.sh
CentOS 6.8: Install Python 2.7.10, pip, virtualenv, and virtualenvwrapper on CentOS
#!/bin/bash
# According to:
# How To Set Up Python 2.7.6 and 3.3.3 on CentOS 6.4
# https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4
yum -y update
yum groupinstall -y 'development tools'
yum install -y zlib-devel openssl-devel sqlite-devel bzip2-devel xz-libs
wget http://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz
xz -d Python-2.7.10.tar.xz
### Given a configuration file for rails named app.yml which contains whatever dynamic content
# init.pp
class rails (
$configs = {},
) {
create_resources('rails::config', $configs, {})
}
define rails::config (
@poysama
poysama / testing
Last active August 29, 2015 14:06
testing
#!/usr/bin/env ruby
describe Adder do
before(:each) do
@adder = Adder.new
end
it "should add 2 numbers" do
expect { @added.add(1,2) }.to equal 3
end
Cablefile
# REST source
source "http://10.48.30.75:5984/chronic/account"
# adjust template path
# default is config/templates
template_path 'config/templates'
# simple template
$VAR1 = bless( {
'_protocol' => 'HTTP/1.1',
'_content' => '{"status":-3,"appstatus":-128,"statusstring":"No connections.","appstatusstring":null,"results":[]}',
'_rc' => 200,
'_headers' => bless( {
'connection' => 'close',
'content-type' => 'application/json;charset=utf-8',
'client-response-num' => 1,
'server' => 'Jetty(7.6.1.v20120215)'
}, 'HTTP::Headers' ),