Skip to content

Instantly share code, notes, and snippets.

@mrbar42
mrbar42 / README.md
Last active March 28, 2024 16:47
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@seanlinsley
seanlinsley / seeyouspacecowboy.rb
Last active August 30, 2020 23:46
A Ruby verison, because the ANSI colors weren't showing up on logout in the Shell version this is forked from
#!/usr/bin/env ruby
# SEE YOU SPACE COWBOY by DANIEL REHN (danielrehn.com)
# Displays a timeless message in your terminal with cosmic color effects
# Usage: add `ruby ~/seeyouspacecowboy.rb; sleep 2` to .bash_logout (or similar) in your home directory
# (adjust the sleep variable to display the message for more seconds)
class String
def colorize(color_code)
@pdp7
pdp7 / ex_8x8_facebook.py
Last active December 29, 2015 13:48
title: beaglebone black with adafruit 8x8 LED matrix facebook notification display author: drew fustini (http://element14.com/fustini) blog: http://www.element14.com/community/community/knode/single-board_computers/next-gen_beaglebone/blog/
#!/usr/bin/python
import time
import datetime
import facebook
import sys
from Adafruit_8x8 import EightByEight
# ===========================================================================
# title: beaglebone black with adafruit 8x8 LED matrix facebook notification display
@vmihailenco
vmihailenco / proxy.go
Created November 20, 2011 15:22
Simple TCP proxy in Golang
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"