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 | |
# Tested with wine-1.7.17 | |
# Put this script and the Wildstar.exe installer in a directory | |
# Edit the VIDEO_MEMORY_SIZE according to your graphic card. | |
# | |
# At first launch, use `./winestar.sh install` and keep the default install directory | |
# | |
# Once the launcher is downloaded you can simply use ./winestar.sh |
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 | |
#For checking disk space on our servers | |
#Clear Yesterday's Log | |
#Checking for root brought to you by Brad Arnold | |
if [ "$(whoami)" != "root" ]; then | |
echo "Not running as root. Exiting..." | |
echo "Please use sudo -s then run this script again as root." |
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/python2.7 | |
# -*- coding: utf-8 -*- | |
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab | |
""" | |
Watch for new downloads in ~/Downloads (or another directory) and take actions. | |
The actions are determined by the file extension (determining the mime type). | |
""" | |
from __future__ import absolute_import | |
from __future__ import print_function |
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/python2 | |
# Tell you which object, and what kind, is obtained by an import. This can also | |
# Will return errorlevel of 2 if object is not found. | |
from __future__ import print_function | |
import sys | |
import imp |
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 | |
# Title: install-couchdb.sh | |
# Description: Installs the latest CouchDB version from source, | |
# not from a repository. | |
# Author: wraithmonster | |
# Reference: https://github.com/iriscouch/build-couchdb | |
# http://comments.gmane.org/gmane.comp.db.couchdb.user/16292 | |
# Uninstalling from Ubuntu's repository: | |
# http://serverfault.com/questions/348044 | |
# http://stackoverflow.com/questions/8783621 |
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 | |
# Title: install-node.sh | |
# Description: Installs node.js. | |
# Author: wraithmonster | |
# Reference: https://github.com/joyent/node/wiki/Installation | |
# Web framework - http://expressjs.com/ | |
# Node Pkg Manager - https://github.com/isaacs/npm | |
# | |
################################################################################ |
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 | |
################################################################################ | |
# | |
# Title: marmdir.sh | |
# Description: Archive the specified directory, then remove it | |
# Author: wraithmonster | |
# Reference: http://www.apl.jhu.edu/Misc/Unix-info/tar/tar_28.html | |
# http://bit.ly/bash-string-length | |
# http://www.linux.com/archive/feature/120291 |
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
# References: | |
# http://bit.ly/bash-exit-status | |
# http://bit.ly/bash-remove-slash | |
# http://www.delorie.com/gnu/docs/wget/wget_27.html | |
# Strip whitespace | |
WS=`expr "$1" : '[[:space:]]*\(.*\)[[:space:]]*$'` | |
# Strip whitespace and remove any trailing slashes | |
WS_AND_SLASHES=`expr "$1" : '[[:space:]]*\(.*\)[[:space:]]*$' | sed -e 's/\\/$//g'` |
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
# -*- coding: utf-8 -*- | |
import requests | |
from PySide import QtGui, QtCore | |
import sys | |
class AddressEdit(QtGui.QLineEdit): | |
def __init__(self, parent): | |
QtGui.QLineEdit.__init__(self, parent) |
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
for blend in *.blend; do | |
if [[ $(file -ib "$blend") == application/octet-stream* ]]; then | |
gzip -n1 "$blend" | |
mv "$blend.gz" "$blend" | |
fi | |
done |
OlderNewer