Skip to content

Instantly share code, notes, and snippets.

View revmischa's full-sized avatar
🇺🇦

Mischa Spiegelmock revmischa

🇺🇦
View GitHub Profile
@k-kawashiman
k-kawashiman / awsecsdeploy-stack.ts
Created March 5, 2021 12:56 — forked from bkono/awsecsdeploy-stack.ts
Deploys Mastodon using AWS CDK
import cdk = require('@aws-cdk/cdk');
import ec2 = require('@aws-cdk/aws-ec2');
import elastic = require('@aws-cdk/aws-elasticache');
import rds = require ('@aws-cdk/aws-rds');
import es = require("@aws-cdk/aws-elasticsearch");
import ecs = require('@aws-cdk/aws-ecs');
import s3 = require("@aws-cdk/aws-s3");
import elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');
import route53 = require('@aws-cdk/aws-route53');
import certificateManager = require("@aws-cdk/aws-certificatemanager");
@revmischa
revmischa / aptCmd.groovy
Created April 30, 2020 12:11
Jenkins groovy routine to wait for apt lock before running commands.
/**
* Wait for apt lock to be free, then run command.
* @param aptArgs E.g. `install -y emacs xterm`
*/
void call(String aptArgs) {
def timeout = 120 // wait for lock this long
def fileno = 1000 // unused file descriptor number
def lockfile = "/var/lib/dpkg/lock"
sh """
/usr/bin/sudo bash -c "(flock --timeout $timeout $fileno; apt $aptArgs) $fileno> $lockfile"
@bkono
bkono / awsecsdeploy-stack.ts
Created May 2, 2019 05:02 — forked from windlessuser/awsecsdeploy-stack.ts
Deploys Mastodon using AWS CDK
import cdk = require('@aws-cdk/cdk');
import ec2 = require('@aws-cdk/aws-ec2');
import elastic = require('@aws-cdk/aws-elasticache');
import rds = require ('@aws-cdk/aws-rds');
import es = require("@aws-cdk/aws-elasticsearch");
import ecs = require('@aws-cdk/aws-ecs');
import s3 = require("@aws-cdk/aws-s3");
import elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');
import route53 = require('@aws-cdk/aws-route53');
import certificateManager = require("@aws-cdk/aws-certificatemanager");
@windlessuser
windlessuser / awsecsdeploy-stack.ts
Last active November 20, 2022 18:06
Deploys Mastodon using AWS CDK
import cdk = require('@aws-cdk/cdk');
import ec2 = require('@aws-cdk/aws-ec2');
import elastic = require('@aws-cdk/aws-elasticache');
import rds = require ('@aws-cdk/aws-rds');
import es = require("@aws-cdk/aws-elasticsearch");
import ecs = require('@aws-cdk/aws-ecs');
import s3 = require("@aws-cdk/aws-s3");
import elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');
import route53 = require('@aws-cdk/aws-route53');
import certificateManager = require("@aws-cdk/aws-certificatemanager");

z0rt

ABOUT THE AUTHOR: F. Michael "z0rtalert" Winsby is a self-identified geek, skater, performance artist, Monty Python enthusiast and chief engineer at his startup xeNify. When not drinking away his woes of a youth wasted on MMORPGs or getting yelled at by his pug-faced mail-order wife, he is blogging his way toward becoming the top-rated Scrum Ninja in the Western Hemisphere!

Noodling With Nodules, Part III: A New Paradigm For CRUD

In Part I, we bid goodbye to outdated things like Java, collections and threads, and rewrote a sample CRUD app using the flexible new Nodules stack, with a brief introduction to the Zephram IDE. In part II of this tutorial, we learned how combining Nodules with the bit.orgy toolkit can drastically change the way you think about CRUD and ETL. Since then, several readers have written in to mention that the stack becomes significantly more powerful if the Bizsynth smeat framework is used to handle all the i/o logic.

Progra

@ElliotChong
ElliotChong / Highlander.js
Last active August 29, 2015 14:14
When you're the only script that should work on a page.
var HighlanderJS = (function (immortals) {
var highlander = {};
for (var immortal in immortals) {
highlander[immortal] = immortals[immortal];
delete immortals[immortal];
}
immortals.HighlanderJS = function (onlyOne) {
onlyOne.apply(highlander);
};
@revmischa
revmischa / build-video-server.sh
Created December 16, 2010 00:25
Build and install libx264, libav and rtmpd
#!/usr/bin/env bash
# This script fetches and builds libx264, libav, rtmpd and their dependencies.
# you may have to add /usr/local/lib to /etc/ld.so.conf
# BASEDIR = build directory (default current dir)
# PREFIX = install directory (default /usr/local)
if [ -z "$BASEDIR" ]; then
BASEDIR=`pwd`
fi