Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml">
<head>
<metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata">
<ttm:title>Sample</ttm:title>
</metadata>
<styling xmlns:tts="http://www.w3.org/ns/ttml#styling">
<style xml:id="s1"
tts:color="white"
tts:fontFamily="proportionalSansSerif"
WEBVTT
00:01.000 --> 00:04.000
- Never drink liquid nitrogen.
00:05.000 --> 00:09.000
- It will perforate your stomach.
- You could die.
@hoox
hoox / GREP_ZIP_FILES.md
Created August 23, 2017 04:04
Grep through a set of ZIP files

Grep through a set of ZIP files

for f in *.zip; do zipgrep textToQuery $f && echo $f; done

@hoox
hoox / BASIC_AUTH.md
Last active August 18, 2017 01:31
Generate a Basic Auth string

Generate a Basic Auth string

echo -n "user:pass" | openssl base64 -a

@hoox
hoox / akamai-configuration-static-files.md
Created October 13, 2016 00:40
Akamai - Cacheable File Extensions

aif aiff au avi bin bmp bz2 cab carb cct

@hoox
hoox / akamai-configuration-gzip-content-types.md
Last active October 13, 2016 00:42
Akamai - GZIP Content Types

application/javascript application/json application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype application/x-font-ttf application/x-javascript application/xml font/eot font/opentype

@hoox
hoox / proc.md
Last active April 13, 2016 00:52
Linux Process Information (pseudo-file system)
@hoox
hoox / pfx-rsa-pkcs12-example.go
Last active August 26, 2019 17:28
PFX RSA PKCS12 Encrypt Decrypt Data Example
package main
import (
"crypto/rand"
"crypto/rsa"
"fmt"
"io/ioutil"
"golang.org/x/crypto/pkcs12"
)
@hoox
hoox / robots.txt
Last active October 1, 2015 04:28
Robots.txt
User-agent: *
Disallow:
@hoox
hoox / visibilitychange.js
Last active September 25, 2015 04:21
"Visibility Change" Event Listener
document.addEventListener("visibilitychange", function() {
console.log(document.hidden);
});
window.addEventListener("focus", function() {
console.log("focus");
});
window.addEventListener("blur", function() {
console.log("blur");
});