Skip to content

Instantly share code, notes, and snippets.

@hellocatfood
hellocatfood / movie_cut_random.sh
Last active Jun 25, 2020
A script to perform a random cut on a video
View movie_cut_random.sh
#!/bin/bash
#A script to perform a random cut on a video
#By Antonio Roberts | www.hellocatfood.com
#Usage: ./movie_cut.sh /path/to/file.mp4
#e.g. ./movie_cut.sh /home/Desktop/videofile.mp4
# change 30 to however many videos you want output
filenumber=$(printf "%05d")
while [ $filenumber -le 30 ]
do
@hellocatfood
hellocatfood / typewriter.sh
Created May 23, 2020
Create a typewriter text effect using Imagemagick 7
View typewriter.sh
#/bin/bash
# Adapted from here https://imagemagick.org/discourse-server/viewtopic.php?p=163774#p163774
# Requires Imagemagick 7 and a monospace font. Tested on Ubuntu 20.04
FONT= # replace with path to monospace font
POINTS=18
COUNT=0
TEXT= # replace textfile.txt with path to plain text file
View sampler.pd
#N canvas 62 73 929 984 12;
#X declare -path extra;
#N canvas 0 0 450 300 (subpatch) 0;
#X array array1 10352 float 2 black black;
#X coords 0 1 10352 -1 200 140 1;
#X restore 523 67 graph;
#X obj 207 60 openpanel;
#X obj 207 36 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 207 112 soundfiler;
@hellocatfood
hellocatfood / A_Perfect_Circle.pde
Created Jul 15, 2019
Code used for A Perfect Circle
View A_Perfect_Circle.pde
import processing.video.*;
import processing.pdf.*;
Capture video;
PGraphics topLayer;
PGraphics topLayer2;
color trackColor;
float hue = 0;
int xorig=width/2, yorig=height/2;
int xprev=width/2, yprev=height/2;
View duplicity_join.py
#!/usr/bin/env python
# Author: David Huss
# Website: http://blog.atoaudiovisual.com
# Usage instructions http://blog.atoav.com/2013/09/restore-broken-deja-dup-backup-hand/
# Modified by Antonio Roberts to preserve folder structure
import Tkinter as tk
from tkFileDialog import *
import sys, os
@hellocatfood
hellocatfood / feedback.sh
Last active Aug 17, 2020
Do feedback loops on an image with transparenty
View feedback.sh
#!/bin/bash
# applies a black and white feedback effect to still images.
# usage: ./feedback.sh image.png 18
# this would apply the feedback effect 18 times to the image.png image and output the result as feedback.png
cp $1 feedback.png
loop=0
View gist:ad1da963d5b37b43d542
Technology
Technologies
Content
Wearable
Media
Future
Virtual
Disruption
Disruptive
Big Data
@hellocatfood
hellocatfood / gist:46dec37ed533c57e4519
Created Jan 8, 2015
Installation instructions for Flext and Py ext
View gist:46dec37ed533c57e4519
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 Aug 29, 2015
Emojify an image
View emojify.sh
#!/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[@]}]}")