Skip to content

Instantly share code, notes, and snippets.

ppt2aac (Powerpoint to Audio)

Intended for embedded voice recordings in powerpoint presentations. Run it with a shell script (zsh) using common binaries

Usage

This script invoked via:

./ppt2aac.sh 
@zmilonas
zmilonas / compress.sh
Last active June 25, 2020 17:06
GhostScript command to compress large PDFs with a lot of images. Requirements: https://www.ghostscript.com. Usage: `./compress.sh <input file> <output filename sans pdf>
#!/bin/sh
gs \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/ebook \
-dEmbedAllFonts=true \
-dSubsetFonts=false \
-dNOPAUSE \
-dQUIET \
-dBATCH \
@zmilonas
zmilonas / fix-homebrew-npm.md
Last active June 21, 2018 18:03 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

@zmilonas
zmilonas / GDPR_CV.md
Last active November 7, 2024 21:39
Formułka do CV, resume, RODO GDPR Compliant resume formulae

Polski 🇵🇱

Wyrażam zgodę na przetwarzanie moich danych osobowych w celu rekrutacji zgodnie z art. 6 ust. 1 lit. a Rozporządzenia Parlamentu Europejskiego i Rady (UE) 2016/679 z dnia 27 kwietnia 2016 r. w sprawie ochrony osób fizycznych w związku z przetwarzaniem danych osobowych i w sprawie swobodnego przepływu takich danych oraz uchylenia dyrektywy 95/46/WE (ogólne rozporządzenie o ochronie danych)

English 🇪🇺

I hereby give consent for my personal data included in my application to be processed for the purposes of the recruitment process under the European Parliament's and Council of the European Union Regulation on the Protection of Natural Persons as of 27 April 2016, with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/EC (Data Protection Directive)

@zmilonas
zmilonas / SimpleStore.js
Last active May 8, 2018 14:43 — forked from ksafranski/SimpleStore.js
Simple localStorage function with Cookie fallback for older browsers. ES6 syntax, so assuming transpiler for older browsers
/**
* Simple localStorage with Cookie Fallback
* v.1.0.0
*
* USAGE:
* ----------------------------------------
* Set New / Modify:
* store('my_key', 'some_value');
*
* Retrieve:
@zmilonas
zmilonas / 1se.sh
Last active April 29, 2018 20:22
1 Second Everyday generate script. Turn a bunch of folders with clips form 1 second everyday app into a proper video with dates. This script is specifically for co.touchlab.android.onesecondeveryday app (off by one in date's month, directory structure)
#!/bin/sh
# This was specially created for 1 Second Everyday Android App output
# This takes individual 'second' clips from files, applies date on them and outputs the merged video
# For this to run properly you need to have ffmpeg --with-libfreetype installed
# run this script in a main directory in which the subdirectories are like ./20180302/clip.mp4
# Created on 29/04/2018 by Zachary Milonas
RESTORE=$(echo '\033[0m')
GREEN=$(echo '\033[00;32m')
LBLUE=$(echo '\033[01;34m')
@zmilonas
zmilonas / 1se.sh
Created April 29, 2018 18:35
Turn a bunch of folders with clips form 1 second everyday app into a proper video with dates. This script is specifically for co.touchlab.android.onesecondeveryday app (off by one in date's month, directory structure)
#!/bin/sh
# This was specially created for 1 Second Everyday Android App output
# This takes individual 'second' clips from files, applies date on them and outputs the merged video
# For this to run properly you need to have ffmpeg --with-libfreetype installed
# run this script in a main directory in which the subdirectories are like ./20180302/clip.mp4
# Created on 29/04/2018 by Zachary Milonas
RESTORE=$(echo '\033[0m')
GREEN=$(echo '\033[00;32m')
LBLUE=$(echo '\033[01;34m')