Skip to content

Instantly share code, notes, and snippets.

v7rs6ldv*vv*7&@xr.8&
$b
0000000000000000000000000000000000000000011110111010010011101110000000000100000100101101001001000000000000100001001101001110010000000000000100010010010100100100000000000000100100100101001001000000000001111011101001001110111000000000000000000000000000000000
#!/bin/sh -e
# Echobender
# By Antonio Roberts and Martin Meredith
# www.hellocatfood.com | www.sourceguru.net
# GNU/GPL
segons=`(date "+%Y%m%d%H%M%S")`
outfile="${segons}"
if [ ! -d ./echo ]; then
@hellocatfood
hellocatfood / movie_cut.sh
Last active December 17, 2015 00:39
A script to perform a random cut on a video By Antonio Roberts | www.hellocatfood.com Usage: ./movie_cut.sh /path/to/avi/file Clip-duration-in-seconds e.g. ./movie_cut.sh 4.01 Works best on avi files requires avconv
#!/bin/bash
#A script to perform a random cut on a video
#By Antonio Roberts | www.hellocatfood.com
#Usage: ./movie_cut.sh /path/to/avi/file Clip-duration-in-seconds
#e.g. ./movie_cut.sh 4.01
#Works best on avi files
bitRate=$(avprobe $1 2>&1 | grep bitrate | cut -d ':' -f 6 | sed s/"kb\/s"//)
length=`expr $(avprobe -loglevel error -show_streams $1 | grep duration | cut -f 2 -d = | head -1 | cut -d "." -f 1) \* 100`
@hellocatfood
hellocatfood / gist:5489200
Last active December 16, 2015 19:59
Iteratively blur images in a directory
blur=0 bash -c 'for file in * ; do mogrify -blur 0x$blur $file; blur=$(expr $foo + 1) ; done'
@hellocatfood
hellocatfood / gist:5460556
Created April 25, 2013 15:22
Simple script to reorder sentences.
<html>
<head>
<title>Text Shuffler</title>
</head>
<body>
<h2>Shuffle your sentences</h2>
<?php
placeholder
@hellocatfood
hellocatfood / gist:ad1da963d5b37b43d542
Last active August 29, 2015 14:13
#artsdigital bingo
Technology
Technologies
Content
Wearable
Media
Future
Virtual
Disruption
Disruptive
Big Data
@hellocatfood
hellocatfood / gist:46dec37ed533c57e4519
Created January 8, 2015 18:50
Installation instructions for Flext and Py ext
Installation instructions for Flext and pyext on Ubuntu 14.10 (64 Bit) on a Dell XPS 13
Download the Pure Data source code
git clone git://git.code.sf.net/p/pure-data/pure-data/
Checkout flext
svn co https://svn.grrrr.org/ext/trunk/flext/
cd into flext
@hellocatfood
hellocatfood / emojify.sh
Last active August 29, 2015 14:12
Emojify an image
#!/bin/bash
emojis=(/home/hellocatfood/Desktop/twemoji/16x16/*)
# get filename minus extension
file=$(basename "$1")
filename="${file%.*}"
# pick random emoji for gifs
file1=$(printf "%s\n" "${emojis[RANDOM % ${#emojis[@]}]}")
@hellocatfood
hellocatfood / gif-to-video.sh
Created January 4, 2015 20:01
gif to video
#!/bin/bash
for file in *.gif
do
# get filename minus extension
file1=$(basename "$file")
filename="${file1%.*}"
# convert to individual frames with green screen