Skip to content

Instantly share code, notes, and snippets.

@Zettt
Zettt / packagizer.sh
Last active Jan 26, 2019
TextBundle Packagizer -- This is a script that helps to create bundled folders of Markdown files. It downloads online-linked images to an assets directory, as well as copies local files to it. It's not finished yet.
View packagizer.sh
#!/bin/sh
function usage {
echo "This script creates a folder containing all linked ![images]()"
echo "of a Markdown file -- even linked ones from the Internet."
echo ""
echo "It takes one argument: the file it should process."
echo
echo "When a file argument is present, it creates a new folder for:"
echo "a) the Markdown file"
@Zettt
Zettt / rule of thirds.markdown
Last active May 15, 2016
This is a Calca document to calculate positions for rulers of a presentation, a video, graphical document, etc. As a video editor I can tell that "TV-safe areas" are a good rule of thumb for presentations, because there's always someone sitting in the back, the projector is never centered, and so forth.
View rule of thirds.markdown

Credits

Andreas Zeitler
zCasting 3000
zcasting3000.com

Setup

aspect ratio = 16 / 9 =>
width        = 1920
@Zettt
Zettt / gifenc.sh
Last active Jan 29, 2016 — forked from goncalossilva/gifenc.sh
Handy script to encode gif using ffmpeg (2.6 or above). Put somewhere in your `$PATH` and I hope it works for you.
View gifenc.sh
#!/bin/sh
# sh gifenc.sh -i input.mp4 -o output.gif
# defaults
palette="/tmp/palette.png" #location of temporary palette file
fps=20
filters=
#usage and parameter assembly
@Zettt
Zettt / weekprojects.applescript
Last active Sep 23, 2018
Week Projects: This is a week-based version of my previous Day Projects script (https://gist.github.com/Zettt/1401813)
View weekprojects.applescript
-- Week Projects
--
-- Created by Zettt on 2015-12-28
-- zCasting 3000.
--
-- This script creates "Week Projects" in OmniFocus.
--
-- I use these "Week Projects" to put stuff, that I need to
-- do during a specific week, but aren't big enough to be their own project.
-- Things like "Call the doctor on Wednesday" or
@Zettt
Zettt / keynote.md
Created Jul 2, 2015
Things I learned about Keynote today
View keynote.md

Things I learned about Keynote today

  • Keynote has Boolean operators
  • Curves defaults can be set in prefs (Bézier vs. Spline)
  • Rather than trying to master the Bézier tool, in order to mask something, make many small straight lines.
  • Magic Move can animate lots of things. Including color, reflection, shape, rotation, and many more parameters.
@Zettt
Zettt / screencast typing.scpt
Created May 28, 2015
This script types a long string without errors(!!!) for you. Delay between keystrokes is variable. Originally taken from http://christianheilmann.com/2014/01/09/autmating-typing-in-screencasts-with-applescript-or-how-to-look-like-a-hollywood-hacker/
View screencast typing.scpt
set myLines to "Brainstorming is a group or individual creativity technique by which efforts are made to find a conclusion for a specific problem by gathering a list of ideas spontaneously contributed by its member(s). The term was popularized by Alex Faickney Osborn in the 1953 book Applied Imagination. Osborn claimed that brainstorming was more effective than individuals working alone in generating ideas, although more recent research has questioned this conclusion. Today, the term is used as a catch all for all group ideation sessions."
set recordedApp to "iOS Simulator"
set typingDelay to "0.1" --try 0.05 so something much faster (double, actually)
--make sure the recorded app is foreground
--otherwise it can result into missing strings
activate application recordedApp
delay 3
repeat with currentline in myLines
@Zettt
Zettt / spotifyplayback.scpt
Created May 23, 2015
Playhead forward/backward - Because Spotify has stupidly removed the possibility to skip forward and backward using keyboard shortcuts, we now have to resort to do this via AppleScript. Well, it could be harder. The script below jumps 3 seconds ahead. Bind to keyboard shortcuts such as →. You may use ⇧→ to skip 10 seconds. This is how it was in …
View spotifyplayback.scpt
tell application "Spotify"
if player state is playing then
set playPos to player position + 3.0
set player position to playPos
end if
end tell
@Zettt
Zettt / after.txt
Created Jan 4, 2015
Comparing Instagram videos before and after upload
View after.txt
General
Complete name : /Users/zettt/Desktop/IMG_0292.mov
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 3.95 MiB
Duration : 9s 643ms
Overall bit rate : 3 437 Kbps
Encoded date : UTC 2015-01-04 14:29:22
Tagged date : UTC 2015-01-04 14:29:25
View So tickt YouTube #mxsw 2014-09-22.md

[fit] So tickt YouTube

Andreas Zeitler, zCasting 3000

@zettt, zcasting3000.com


[fit] Hintergrund

^ Warum diese Präsi überhaupt?

@Zettt
Zettt / die perfekte rasur 2.md
Last active Aug 29, 2015
Meine Barcamp Stuttgart 7 (2014) Session zum Thema "Die perfekte Rasur". Diese hier sind ohne Bilder, damit man die Speaker Notes besser lesen kann. #bcs7
View die perfekte rasur 2.md

Die perfekte Rasur

Andreas Zeitler (@zettt)

gentlebox.de


Aktueller Stand

You can’t perform that action at this time.