Skip to content

Instantly share code, notes, and snippets.


Oleg Tsybulskyi alogic0

View GitHub Profile
oleksabor /
Last active May 16, 2020
bash script to cut mp3 silence at the start and at the end. ffmpeg silencedetect is used
if [ "$1" == "" ]; then
echo "no input file name";
exit 1;
snoyberg /
Last active Aug 27, 2018
Miniature Haskell interactive environment for my kids to play around with
tfausak / count-hackage-revisions.hs
Last active Jun 23, 2017
Counts revisions of packages on Hackage.
View count-hackage-revisions.hs
#!/usr/bin/env stack
-- stack --resolver lts-8.19 script --package Cabal --package Glob
-- This script counts the total number of versions and revisions on Hackage.
-- Usage:
-- 1. Download and unpack <>.
-- 2. Run `./Main.hs 'path-to-unpacked-index/**/*.cabal'`.
-- Example output as of 23 July 2017:
jamesthompson /
Created Feb 1, 2017
A script to install stack on Raspbian
set +ex
# A script to install stack on Raspbian
# Use stack installer script to install stack
curl -sSL | sh
# Use apt-get to install llvm
tfausak / Dependencies.hs
Last active Jan 7, 2017
Parses a Hackage package index and outputs a JSON description of dependencies. { package: { version: { dependency: bounds } } }
View Dependencies.hs
--resolver lts-7
--package aeson
--package bytestring
--package containers
tfausak / haskell-package-versions.hs
Last active Dec 24, 2016
Gets the package index from Hackage and outputs a bunch of information about their version numbers.
View haskell-package-versions.hs
{- stack
--resolver lts-7
--package containers
--package filepath
--package http-client
--package http-client-tls
--package tar
--package time
shreve / pdfmarks
Last active Dec 28, 2020
Example of adding PDF metadata (bookmarks / ToC) with Ghostscript
View pdfmarks
[ /Title (Elementary Differential Equations)
/Author (Edwards & Penney)
/DOCINFO pdfmark
[ /Title (Contents)
/Page 6
/OUT pdfmark
[ /Count -8
/Title (1. First-Order Differential Equations)