This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # Author: Jon Robbins | |
| # License: GPL3+ | |
| # based on the idea from https://trisquel.info/en/wiki/how-convert-comic-book-archives-cbrcbr-cbz | |
| # | |
| # This script recursively loops through directories below a starting point and converts all cbr file to cbz files | |
| # | |
| # requires: | |
| # - unrar | |
| # - zip/unzip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #URLshortener | |
| # this class POSTs to http://ur1.ca and then gets the | |
| # returned shortened UR1 from the repsonse | |
| # | |
| #this requires requests and only works with python2 | |
| # https://pypi.python.org/pypi/requests/0.13.0 | |
| import requests | |
| class URLshortener(object): | |
| def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| ### | |
| # original author: Jon Robbins | |
| #### | |
| # This file converts markdown-formatted octopress files into markdown-formatted pelican files | |
| # and also "fixes" html links by changing them to md links | |
| ### | |
| # octopress2pelican.py | |
| #syntax is: | |
| # ./octopress2pelican.py filename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //syntax: | |
| // ./filesplitter -file filename.csv -lines=150 | |
| // | |
| // source for readlines() and writelines() from here: | |
| // http://stackoverflow.com/questions/8757389/reading-file-line-by-line-in-go | |
| package main | |
| import ( | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| ### | |
| # filesplitter.py | |
| #syntax is: | |
| # ./filesplitter.py filename linesPerFile | |
| ### | |
| import sys,os | |
| class myfile(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; balancedparentheses.pb | |
| ; Program To check For balanced parentheses in an expression using stack | |
| ; To run you only need PureBasic 5.21 LTS installed | |
| ; | |
| ; To exectue: | |
| ; compile w/ PB and run | |
| ; | |
| ; modified from the code here: http://www.lifengadget.com/lifengadget/program-To-check-For-balanced-parentheses-in-an-expression/ | |
| ;;;;;;;;;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| balancedparentheses.py | |
| Program to check for balanced parentheses in an expression using stack | |
| To run you only need Python3 installed | |
| To exectue: | |
| python3 balancedparentheses.py | |
| modified from the code here: http://www.lifengadget.com/lifengadget/program-to-check-for-balanced-parentheses-in-an-expression/ | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ########## | |
| # do what you want with this script, | |
| #### | |
| # It will edit a note in an editor and then post it to statusnet and pump.io | |
| # You will need to set up a .netrc: | |
| # # .netrc | |
| # #machine quitter.se | |
| # #login <loginname> | |
| # #password <pw> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Quick Linux DNS IP Updater Python script for FreeDNS (freedns.afraid.org) | |
| Author: Daniel Gibbs | |
| Version: 0.2 | |
| URL: http://www.danielgibbs.net/ | |
| ** Must set update_key and make sure that ip_file is read and writable | |
| This program is free software; you can redistribute it and/or modify it under |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| server=yourpump.pump | |
| port=443 | |
| user=yourpumpuser | |
| cd /path/to/pump.io/bin | |
| note=$(echo "DB Stats: | |
| <pre> |