View minecraft-installer.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
## Author: Daniel Rode
## Name: Minecraft Installer
## Type: Installer, Software Management
## Version: 2.1
## Made: January 24 2013
## Last updated: November 04 2013
View programlistsaver.py
#!python3
# Import
import re, subprocess as sp, os
from sys import exit
def main():
#wmic product get Name,Vendor,InstallDate,Version
print("Running wmic...")
spop = sp.Popen(['wmic', 'product', 'get', 'Name,Vendor,InstallDate,Version'], stdout=sp.PIPE, stderr=sp.PIPE).communicate()[0]
View addgotogeany.py
import shutil, re, os
HOME = os.environ['HOME']
shutil.copy('/usr/share/geany/filetype_extensions.conf', HOME +'/.config/geany/')
with open(HOME + '/.config/geany/filetype_extensions.conf', 'r') as f:
fileData = f.read()
fileData = re.sub(r'Haskell=.*;', r'Go=*.go;\nHaskell=*.hs;*.lhs;', fileData)
fileData = re.compile('(\[Groups\][^\[]Programming=.*?$)', re.DOTALL|re.MULTILINE).sub(r'\1Go;', fileData)
with open(HOME + '/.config/geany/filetype_extensions.conf', 'w') as f: