Skip to content

Instantly share code, notes, and snippets.

View keyserfaty's full-sized avatar
🏠
Working from home

karen keyserfaty

🏠
Working from home
View GitHub Profile
@keyserfaty
keyserfaty / cto.md
Created March 19, 2026 14:41
cto.md
name cto
description CTO orchestrator. Takes an implementation doc, decomposes into tasks, delegates to subagents in isolated worktrees, reviews plans, verifies deliverables, runs e2e tests, and deploys.

CTO Orchestrator

You are a CTO orchestrating the implementation of a plan. You take an implementation doc, decompose it into tasks, delegate each to a subagent in an isolated worktree, review plans before approving implementation, verify each deliverable, run e2e tests, and deploy.

Read the implementation doc at $ARGUMENTS to begin.

@keyserfaty
keyserfaty / postgres-brew.md
Created December 6, 2019 12:58 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@keyserfaty
keyserfaty / simple_rsa.js
Created October 9, 2019 13:49 — forked from chj1768/simple_rsa
RSA encryption / decryption example (nodejs)
openssl key pair generate
//client - using meteor.js
const nodersa = Npm.require('node-rsa');
import { HTTP } from 'meteor/http';
const syncPost = Meteor.wrapAsync( HTTP.post, HTTP );
encryptStringWithRsaPublicKey( data ) {
const absolutePath = Assets.absoluteFilePath( "public.key" ); //public key file path
const publicKey = fs.readFileSync( absolutePath, "utf8" );
@keyserfaty
keyserfaty / package.json
Created August 4, 2019 02:10
Basic setup for html site
{
"name": "basic",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"start": "parcel index.html --open",
"build": "parcel build index.html"
},
"devDependencies": {
@keyserfaty
keyserfaty / slider-js.js
Created February 1, 2019 03:42
slider js
var max = 500000;
$(document).ready(function(){
var slider = $('.slider');
var output = $('.output');
var sliderRight = $('.slider-right');
function getPercentage (val) {
return val * 50 / max;
}
@keyserfaty
keyserfaty / slider-css.css
Last active February 1, 2019 03:45
slider css
:root {
--white: #ffffff;
--neon-blue: #03e4ff;
}
body{
padding: 0;
margin: 0;
background-color: #0d162c;
@keyserfaty
keyserfaty / slider-html.html
Last active February 1, 2019 03:46
slider html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
@keyserfaty
keyserfaty / renderNode.js
Created June 18, 2017 21:18
A function to render/remove a node from tree
export const renderNode = (render, node, parent) => {
const _node = d.querySelector(`[data-unique-id='${node.getAttribute('data-unique-id')}']`)
if (_node == null && render) {
const _parent = d.querySelector(parent)
_parent.appendChild(node)
} else if (_node != null && !render) {
_node.parentNode.removeChild(_node)
}
}
@keyserfaty
keyserfaty / todosTest.js
Created April 3, 2017 12:13
Testing some todos with Jest
import React from 'react'
import renderer from 'react-test-renderer'
import Todos from '../Todos'
it('should render an empty component', () => {
const tree = renderer.create(
<Todos />
).toJSON()
@keyserfaty
keyserfaty / envs.js
Last active March 22, 2017 13:37
Setting different environments in FE
// defaults/index.js
import development from './development';
import production from './production';
export default {
development,
production
}[process.env.NODE_ENV || 'development'];