Skip to content

Instantly share code, notes, and snippets.


Ben P. Dorsi-Todaro LinuxPhreak

Block or report user

Report or block LinuxPhreak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
LinuxPhreak / PKGBUILD
Created Feb 11, 2019
problem with PKGBUILD Script
# Maintainer: Ben P. Dorsi-Todaro <>
#I get the following errors when building
#==> ERROR: pkgver is not allowed to be empty.
#==> ERROR: pkgver() generated an invalid version:
pkgdesc="Get Username information"
LinuxPhreak /
Created Jan 27, 2019
Menu for Selecting Desktop Envirnments
#!/usr/bin/env python3
import curses
import sys
import os
class CursesMenu(object):
INIT = {'type' : 'init'}
def __init__(self, menu_options):
LinuxPhreak /
Created Jan 20, 2019
Check Word List to see if your password exists in it
#!/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:
LinuxPhreak / gist:83333ab947f547770b4e997a6f55a3b9
Last active Jan 1, 2019
Shell script to fix the VirtualBox 6.0.0 Create Desktop Shortcut for Linux Host problem
View gist:83333ab947f547770b4e997a6f55a3b9
#/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 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
# or visit the site
echo -e "Which Virtual Machine do you want to make a Desktop Shortcut for?"
read vmname
echo -e "[Desktop Entry]" >> $HOME/Desktop/$vmname.Desktop
#!/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):
LinuxPhreak /
Created Nov 24, 2018
Python envirenment wizard
cd $HOME/scripts/python
echo Python Envirenment Creator
echo Name Of Project:
read projectname
while [ -d $projectname ]
LinuxPhreak /
Created Nov 14, 2018
Quick And Dirty Python3 Script To Limit CPU Usuage of Running Processes in Linux using cpulimit tool
#!/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, "&"])
#!/usr/bin/env python3
from subprocess import run
import os.path
print("\033[0;33;48m Welcome to UI converter.")
ui = input("\033[0;37;48m UI File:")
output = input("Output File:")
if (os.path.exists(ui)):
run(["pyuic5","-x", ui,"-o",output])
LinuxPhreak /
Created Nov 1, 2018
Username Lookup Tool
#!/usr/bin/env python3
import requests
import os
import time
from bs4 import BeautifulSoup
#This is a testing function
def tester():
#function for testing
check_github = requests.get('')
LinuxPhreak /
Created Oct 8, 2018
Beginning Of My Star Trek Fan Game
#!/usr/bin/env python3
import os
import time
#Intro here
print("\033[1;33;49m .dBBBBP dBBBBBBP dBBBBBb dBBBBBb dBBBBBBP dBBBBBb dBBBP dBP dBP");
print("\033[1;33;49m BP BB dBP dBP d8P.dBP");
print("\033[1;33;49m `BBBBb dBP dBP BB dBBBBK dBP dBBBBK dBBP dBBBBP ");
print("\033[1;33;49m dBP dBP dBP BB dBP BB dBP dBP BB dBP dBP BB ");
You can’t perform that action at this time.