Skip to content

Instantly share code, notes, and snippets.

Avatar

Oleg Tsybulskyi alogic0

View GitHub Profile
@oleksabor
oleksabor / ffcut.sh
Last active May 16, 2020
bash script to cut mp3 silence at the start and at the end. ffmpeg silencedetect is used
View ffcut.sh
#!/bin/bash
if [ "$1" == "" ]; then
echo "no input file name";
exit 1;
else
mp3file="$1";
fi
@snoyberg
snoyberg / README.md
Last active Aug 27, 2018
Miniature Haskell interactive environment for my kids to play around with
@tfausak
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 <https://hackage.haskell.org/01-index.tar.gz>.
-- 2. Run `./Main.hs 'path-to-unpacked-index/**/*.cabal'`.
--
-- Example output as of 23 July 2017:
@jamesthompson
jamesthompson / install-stack-raspbian.sh
Created Feb 1, 2017
A script to install stack on Raspbian
View install-stack-raspbian.sh
#!/bin/sh
set +ex
# A script to install stack on Raspbian
# Use stack installer script to install stack
curl -sSL https://get.haskellstack.org/ | sh
# Use apt-get to install llvm
@tfausak
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
{-
stack
--resolver lts-7
--install-ghc
runghc
--package aeson
--package bytestring
--package containers
--
-Wall
@tfausak
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
--install-ghc
runghc
--package containers
--package filepath
--package http-client
--package http-client-tls
--package tar
--package time
@shreve
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)