This file contains hidden or 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 python3 | |
| from subprocess import run | |
| print("Limit CPU Usage Of A Running Process \n") | |
| pid = input("PID:") | |
| limit = input("Limit:") | |
| run(["cpulimit", "-l", limit, "-p" pid, "&"]) |
This file contains hidden or 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/sh | |
| cd $HOME/scripts/python | |
| create_project() | |
| { | |
| echo Python Envirenment Creator | |
| echo Name Of Project: | |
| read projectname | |
| while [ -d $projectname ] | |
| do |
This file contains hidden or 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 python3 | |
| from subprocess import run | |
| def intro(): | |
| print("Press the number key that corisponds to the Mac OSX version your trying to install on VirtualBox.") | |
| print("1: Mac OSX 10.13 High Sierra 2: Mac OSX 10.14 Mojave") | |
| osxversion(mac_number = input("Enter Number: ")) | |
| def osxversion(mac_number): |
This file contains hidden or 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 sh | |
| # This is a shell script to fix the problem VirtualBox 6.0.0 has when creating Desktop Shortcuts on Linux systems. | |
| # This shell script has been tested on Fedora 28 LXDE | |
| # Bug report https://www.virtualbox.org/ticket/18259 LinuxPhreak2600 aka LinuxPhreak aka Ben P. Dorsi-Todaro | |
| # This shell script is provided by Ben P. Dorsi-Todaro | |
| # To get the most updated version of this GIST go to the repository https://github.com/linuxphreak/vbox-scripts | |
| # or visit the site https://linuxphreak.github.io/vbox-scripts/ | |
| echo -e "Which Virtual Machine do you want to make a Desktop Shortcut for?" | |
| read vmname | |
| echo -e "[Desktop Entry]" >> $HOME/Desktop/$vmname.Desktop |
This file contains hidden or 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 python3 | |
| wordlist = input('Path to Wordlist?: ') | |
| pw = input('Enter Password to check?: ') | |
| with open(wordlist, encoding ='ISO-8859-1') as inF: | |
| for line in inF: | |
| if pw in line: | |
| print(line) |
This file contains hidden or 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 python3 | |
| import curses | |
| import sys | |
| import os | |
| class CursesMenu(object): | |
| INIT = {'type' : 'init'} | |
| def __init__(self, menu_options): |
This file contains hidden or 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
| # Maintainer: Ben P. Dorsi-Todaro <ben@bigbenshosting.com> | |
| #I get the following errors when building | |
| #==> ERROR: pkgver is not allowed to be empty. | |
| #==> ERROR: pkgver() generated an invalid version: | |
| _pkgbasename=username | |
| pkgname=$_pkgbasename | |
| pkgrel=1 | |
| pkgver=1.0.0 | |
| pkgdesc="Get Username information" | |
| arch=('any') |
OlderNewer