Skip to content

Instantly share code, notes, and snippets.

@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
@hellocatfood
hellocatfood / LICENSE
Last active August 29, 2015 14:07
Moviecutter
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
v7rs6ldv*vv*7&@xr.8&
$b
0000000000000000000000000000000000000000011110111010010011101110000000000100000100101101001001000000000000100001001101001110010000000000000100010010010100100100000000000000100100100101001001000000000001111011101001001110111000000000000000000000000000000000
@hellocatfood
hellocatfood / License
Last active August 29, 2015 14:06
Combine two images
We couldn’t find that file to show.
@hellocatfood
hellocatfood / colourchart.sh
Last active August 29, 2015 14:02
Reduces the colour count of an image and then overlays those colours as cubes onto the image
#!/bin/bash
#Reduces the colour count of an image and then overlays those colours as cubes onto the image
#Developed for Post-Modern Plant Life: An [RHP] CDRs Artist Laboratory https://www.facebook.com/events/1452413868331145/
for file in *.JPG
do
colors=$1
@hellocatfood
hellocatfood / overlaytext.sh
Last active August 29, 2015 14:02
Overlay each line of a text file onto sequentially named image files
#!/bin/bash
#Developed for a very specific case. Your image files must be named 1.jpg, 2.jpg, 3.jpg etc. Place this script, the images files and the text file in the same folder. Then run ./overlaytext.sh. It'll overwrite the original files, so make a backup.
no=1
#change 40 to however many files you have
while [ $no -le 40 ]
#change textfile to whatever text file you have
@hellocatfood
hellocatfood / sparkle.sh
Last active August 29, 2015 14:02
Tiles a gif and then overlays it over a static image.
#!/bin/bash
#tiles a gif and then overlays it over a static image. Only tested with jpgs and pngs on Ubuntu 14.04
#usage: ./sparkle.sh sparklegif.gif /directory/of/images/ (use the full location path)
sparklegif=$1
imagedirectory=$2
#create a large tile of the looping gif. It needs to be larger than the input static image, so "-scale" the $sparklegif if necessary or change the viewport value
#!/usr/bin/env ruby
# terrible word search generator
# inspired by http://cnlohr.blogspot.com/2014/02/to-make-terrible-wordsearches.html
if ARGV.length != 3
STDERR.puts "usage: #$0 WIDTH HEIGHT WORD"
exit 1
end
$word = ARGV[2].upcase
#!/usr/bin/env python
import sys
import cv2
import subprocess
from subprocess import call
import aalib
import Image