Skip to content

Instantly share code, notes, and snippets.

View alexindigo's full-sized avatar
💭
I may be slow to respond.

Alex Indigo alexindigo

💭
I may be slow to respond.
  • Palo Alto, CA
View GitHub Profile
@alexindigo
alexindigo / extract_subtitles_from_MKV_files.sh
Last active January 25, 2024 07:15 — forked from fevangelou/extract_subtitles_from_MKV_files.sh
Extract Subtitles From MKV Files
#!/bin/bash
# /**
# * @version 1.0
# * @name Extract Subtitles From MKV Files
# * @author Fotis Evangelou
# * @date March 2023
# * @license WTFPL (http://www.wtfpl.net)
# */

Receipe for vegan ballistic gel

This is a draft

Ballistic gel is often made out of gelatine, which is a produce scrapped from dead pigs bones.

It is possible to make ballisic gel without hurting animals by using Agar-Agar, a polymer extracted from seaweed.

Agar-Agar also has the advantage of being re-usable. By bringing it again above 90°C.

nodejs: 6.10.1
npm: 3.10.10
macos: 10.12.5
{
"/Users/alex/Projects/obake/bin/obake.js": {
"path": "/Users/alex/Projects/obake/bin/obake.js",
"s": {
"1": 1,
"2": 1,
"3": 1
},
"b": {},
"f": {},
@alexindigo
alexindigo / cb.js
Last active November 4, 2016 23:19
callbackMethod(input, function myHandler(error, result) {
if (error)
{
// check for error, since it's in my face here as first argument
return;
}
// do other things
});
# Express, no parser -> Express, parsed
request (IncomingMessage):
- complete: false,
+ complete: true,
+ body: [Object],
+ _body: true,
+ length: undefined,
+ read: [Object]
asteroid:react-css-modules alex$ git status
On branch upstream
Your branch is up-to-date with 'upstream/master'.
nothing to commit, working directory clean
asteroid:react-css-modules alex$ git log -1
commit 35b4a5377f3cb2d9aadf7b85e98be90a4162ae0f
Author: Gajus Kuizinas <gajus@gajus.com>
Date: Thu Jul 28 14:12:45 2016 +0100
3.7.9
// Before updated output from Tabs hits the DOM
// it will be updated with following:
// 1. added `color:red` style to the active tab
// 2. Replaced text from `Inactive` to `Disabled` on inactive tab
// 3. Added className `Collapsed` to the TabPanel element
<div className="Tabs">
<div className="Tab" style={...styles.activeTab, color: 'red'}>
Active
</div>
import React, { PropTypes } from 'react'
import ReactDOM from 'react-dom'
// A/B Testing "wrapper"
const ABTester = React.createClass({
render() {
let output = (
<div>
@alexindigo
alexindigo / wrk
Created July 2, 2016 22:24
natural vs "artificial" request rate
$ wrk -s wrk_report.lua -t 1 -c 1 -d 1m http://target.host/test
Running 1m test @ http://target.host/test
1 threads and 1 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 0.94ms 2.83ms 38.04ms 94.75%
Req/Sec 3.24k 677.21 4.40k 65.67%
193542 requests in 1.00m, 18.64MB read <-----
Requests/sec: 3225.03 <-----
Transfer/sec: 318.09KB
------------------------------