Skip to content

Instantly share code, notes, and snippets.

View almirsarajcic's full-sized avatar

Almir Sarajčić almirsarajcic

View GitHub Profile
@esensar
esensar / fbihtax.bash
Last active November 19, 2021 13:51
FBiH tax form generation script
#!/bin/bash
usage () {
echo "Welcome to AMS 1035 Form generator!"
echo "This tool uses services provided by https://lab.itbase.ba"
echo ""
echo "Usage: generate_ams_form [OPTIONS]"
echo "NOTE: All options are required unless otherwise stated!"
echo "Options:"
echo " --first-name pass first name of user"
@mribica
mribica / breathe-sonic-pi.rb
Created January 6, 2016 12:17
The Prodigy - Breathe in SonicPi
use_bpm 130
base = 70
live_loop :theme do
use_synth :prophet
with_fx :distortion do
"2--2--5-2-5-4--2-4--1--1--".split("").each do |n|
sleep 0.5 and next if n == "-"
play base + n.to_i, amp: 1, cutoff: 90, sustain: 0.5
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active February 25, 2024 13:47
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results