Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Ben P. Dorsi-Todaro LinuxPhreak

🎯
Focusing
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
LinuxPhreak / PKGBUILD
Created Feb 11, 2019
problem with PKGBUILD Script
View PKGBUILD
# 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')
@LinuxPhreak
LinuxPhreak / desktop-select.py
Created Jan 27, 2019
Menu for Selecting Desktop Envirnments
View desktop-select.py
#!/usr/bin/env python3
import curses
import sys
import os
class CursesMenu(object):
INIT = {'type' : 'init'}
def __init__(self, menu_options):
@LinuxPhreak
LinuxPhreak / password-checker.py
Created Jan 20, 2019
Check Word List to see if your password exists in it
View password-checker.py
#!/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)
@LinuxPhreak
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 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
View vbox-hackintosh.py
#!/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
LinuxPhreak / venv.sh
Created Nov 24, 2018
Python envirenment wizard
View venv.sh
#!/usr/bin/sh
cd $HOME/scripts/python
create_project()
{
echo Python Envirenment Creator
echo Name Of Project:
read projectname
while [ -d $projectname ]
do
@LinuxPhreak
LinuxPhreak / cpulimit.py
Created Nov 14, 2018
Quick And Dirty Python3 Script To Limit CPU Usuage of Running Processes in Linux using cpulimit tool
View cpulimit.py
#!/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, "&"])
View convertui.py
#!/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
LinuxPhreak / username.py
Created Nov 1, 2018
Username Lookup Tool
View username.py
#!/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('https://github.com/LinuxPhreak')
@LinuxPhreak
LinuxPhreak / star-trek-game-credits.py
Created Oct 8, 2018
Beginning Of My Star Trek Fan Game
View star-trek-game-credits.py
#!/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.