Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 2013.07.17 09:18:31 Central Europe Daylight Time
- # Embedded file name: ComputerCleanUp.py
- import os
- Start = 0
- Mode = 0
- UI = ''
- ActionA = False
- ActionB = False
- ActionC = False
- ActionD = False
- ActionE = False
- print '\t\t\t Linux Profomance-Booster Version 13.6'
- print '\t\t\t\t Press Enter To Begin...'
- Start = raw_input()
- print 'Select Mode:'
- print '1)Admin mode (Select only if you are the admin)'
- print '2)User mode (Recomended)'
- Mode = raw_input()
- print ''
- print ''
- if Mode == '1':
- print 'Remove Patial, Uneeded, And Obsolete Packages (Y/N?)'
- UI = raw_input()
- if UI == 'Y':
- ActionA = True
- print 'Clear Temporary Files (Y/N?)'
- UI = raw_input()
- if UI == 'Y':
- ActionB = True
- print 'Clear Unused Thumbnails (Y/N)'
- UI = raw_input()
- if UI == 'Y':
- ActionC = True
- print 'Clear Downloads Folder (Y/N)'
- UI = raw_input()
- if UI == 'Y':
- ActionD = True
- print 'Empty Trash (Y/N)'
- UI = raw_input()
- if UI == 'Y':
- ActionE = True
- if Mode == '2':
- print 'Clear Unused Thumbnails (Y/N)'
- UI = raw_input()
- if UI == 'Y':
- ActionC = True
- print 'Clear Downloads Folder (Y/N)'
- UI = raw_input()
- if UI == 'Y':
- ActionD = True
- print 'Empty Trash (Y/N)'
- UI = raw_input()
- if UI == 'Y':
- ActionE = True
- if ActionA == True:
- os.system('sudo apt-get clean -f')
- os.system('sudo apt-get autoremove -f')
- os.system('sudo apt-get autoclean -f')
- if ActionB == True:
- os.system('sudo rm -rf /tmp/*')
- if ActionC == True:
- os.system('rm -f ~/.thumbnails/normal/*')
- if ActionD == True:
- os.system('rm -r ~/Downloads/*')
- if ActionE == True:
- os.system('rm -rf ~/.local/share/Trash/*')
- print ''
- print ''
- print ''
- print 'Clean Up Compleated!'
- print 'Hit Enter To Exit.'
- Start = raw_input()
- # okay decompyling C:\temp\ComputerCleanUp.pyc
- # decompiled 1 files: 1 okay, 0 failed, 0 verify failed
- # 2013.07.17 09:18:31 Central Europe Daylight Time
Advertisement
Add Comment
Please, Sign In to add comment