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 | |
| import sys | |
| import os | |
| import subprocess | |
| def getNoteText(fileText): | |
| for line in fileText: | |
| if line.find("<dl><dt>") >= 0: |
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 | |
| import sys | |
| import os | |
| import subprocess | |
| from time import sleep | |
| ''' | |
| This is a hack that lets you sub to a bunch of users that are line-delimited in a file. | |
| The Dianara client currently can export such a list. |
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> |
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 | |
| ########## | |
| # 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
| """ | |
| 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
| ; 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
| #! /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
| //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 | |
| ### | |
| # 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 |
OlderNewer