Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# made to resize cbz comics I got from humble bundle that were bigger than I wanted
# based on: https://www.bigeekfan.com/post/20180314_cbz_resizing_script
# call: for file in *.cbz; do ./resize_cbz.sh "$file";done
## pull the input file from the command line
INPUT_FILE=$1
echo "$INPUT_FILE"
@binarynonsense
binarynonsense / bloggerToMarkdown.py
Last active May 22, 2019 13:29
Blogger Feed To Jekyll Markdown
#!/usr/bin/python
# script I wrote to convert the posts from my old blogger blog's rss feed to markdown I could use in github pages' jekyll
import feedparser
import re
import io # to set utf-8 when creating the txt files
# allow youtube videos' iframe
feedparser._HTMLSanitizer.acceptable_elements.update(['iframe'])
@binarynonsense
binarynonsense / marteossteps
Last active August 29, 2015 14:05
Marte OS installation steps
cd bin/
cd gnat-gpl-2014-x86-linux-bin/
sudo apt-get install build-essential
./doinstall
cd ..
ln -s gnat_gpl_2014/ gnat
echo $PATH
cd bin
ln -s marte_1.9_21Aug2014 marte
cd marte_1.9_21Aug2014/
@binarynonsense
binarynonsense / unrarAllSeparateDirs.sh
Last active August 29, 2015 14:05
bash unrar all rar files in current dir to same-named subdirectories
#! /bin/sh
# ref: http://bashscripts.org/forum/viewtopic.php?f=8&t=908
# ref : http://www.linuxquestions.org/questions/programming-9/unrar-multiple-files-into-seprated-directory-base-on-their-name-927127/
echo "starting unrar in folders"
# for everything named *.rar
for filename in *.rar