This file contains 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 | |
__doc__ = """Simple script to start and stop all torrents in Transmission | |
1. Make sure you have installed transmission-remote | |
2. Enable web client in Transmission (allow only for 127.0.0.1, do not use authentication) | |
3. Set up cron to start and stop the torrents (optional). e.g. | |
30 2 * * * path_to_script/torrentcontrol start | |
0 8 * * * path_to_script/torrentcontrol stop |
This file contains 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
/* http://en.wikipedia.org/wiki/Spherical_coordinate_system */ | |
module spherical_translate(value) | |
{ | |
radius = value[0]; | |
inclination = value[1]; | |
azimuth = value[2]; | |
x = radius * sin(inclination) * cos(azimuth); | |
y = radius * sin(inclination) * sin(azimuth); |
This file contains 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
""" | |
GNU licence: | |
RepRap Gerber Plotter is free software; you can redistribute it and/or modify it | |
under the terms of the GNU General Public License as published by the Free Software Foundation; | |
either version 2 of the License, or (at your option) any later version. | |
RepRap Gerber Plotter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
See the GNU General Public License for more details. You should have received a copy of | |
the GNU General Public License along with File Hunter; if not, write to |
This file contains 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 os | |
import sys | |
import subprocess | |
import tempfile | |
import shutil | |
# The file that stores all the data |
This file contains 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 | |
set -e | |
METADIR=".gsync" | |
ARCHIVE=false | |
OLDHEAD="" | |
This file contains 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 urllib | |
import re | |
import os | |
BASE = "http://www.thingiverse.com" | |
USER = "greenarrow" | |
# Find all things on a page |
This file contains 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 | |
""" | |
Pass in SoundCloud page URLs as arguments and all MP3s will be downloaded into the current directory. | |
This is a demonstration only and you should almost definitely not use it. | |
""" | |
import urllib | |
import re |
This file contains 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 | |
__doc__ = """ | |
Deletes Gnome thumbnails for a given list of directories. | |
Very much helped by http://software.maexotic.de/python/cleanthumbs/ | |
""" | |
import os, optparse, Image, urllib |
This file contains 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 os, re, time, pexpect | |
print dir(pexpect) | |
class CaptureError(Exception): | |
pass | |
class WebCapture(): | |
def __init__(self, filename, url, title): | |
self.filename = filename |
This file contains 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
r"""Simple module for quick document manipulation from the gedit Python console | |
Example: | |
import doc | |
d = doc.Doc(window) | |
d.set_lines( ['one', 'two', 'three'] ) | |
d.append('\n') | |
d.append('four') | |
lines = d.get_lines() | |
lines.reverse() |
NewerOlder