Random scripts I make and might still use.
I recommend using virtualenvwrapper. You can still use virtualenv though:
virtualenv misc-scripts-env cd misc-scripts-env . bin/activate git clone email@example.com:Tatsh/misc-scripts.git pip install -r misc-scripts/requirements.txt
Now all scripts using Python should work. See
requirements.txt for details on command line applications required.
Imports cookies from a file in Netscape 'cookies.txt' format into Chromium's (Chrome) 'Default' user database. For Linux only at the moment.
Converts a simple
curl command to PHP code. Only
--data are supported. This command is intended to be used in conjunction with Chrome's 'Copy as Curl' feature (Network tab).
curl2php [-H HEADER] [--header HEADER] [--data DATA] URL
curl2php URL [-H HEADER] [--header HEADER] [--data DATA] (for the way Chrome currently generates the command line)
Converts a simple
curl command to equivalent Python code. Cookies are not handled using a cookie jar and they are sent raw in the header. This command is intended to be used in conjunction with Chrome's 'Copy as Curl' feature (Network tab).
curl2py [-h] [-H HEADER] [--data DATA] URL
curl2py URL [-h] [-H HEADER] [--data DATA] (for the way Chrome currently generates the command line)
Given a Linkshare affilate URL, this decodes the target URL and displays it.
Given a domain, inserts/replaces cookies in Chromium's database with ones from Firefox. The argument is placed in a
LIKE statement wrapped in
% so anything is usable.
scp but deletes the files after copying (secure move). Accepts all the arguments that
usage: smv [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2
Performs title casing on strings. Accepts standard input. Typical use:
echo "my lowercase string needs some fixes" | ucwords