Skip to content

Instantly share code, notes, and snippets.

View LinuxPhreak's full-sized avatar
🎯
Focusing

Ben P. Dorsi-Todaro LinuxPhreak

🎯
Focusing
View GitHub Profile
@LinuxPhreak
LinuxPhreak / PKGBUILD
Created February 11, 2019 01:27
problem with PKGBUILD Script
# 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 January 27, 2019 06:15
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
LinuxPhreak / password-checker.py
Created January 20, 2019 09:14
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:
print(line)
@LinuxPhreak
LinuxPhreak / gist:83333ab947f547770b4e997a6f55a3b9
Last active January 1, 2019 08:57
Shell script to fix the VirtualBox 6.0.0 Create Desktop Shortcut for Linux Host problem
#/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
@LinuxPhreak
LinuxPhreak / vbox-hackintosh.py
Created December 27, 2018 21:09
virtualbox hackintosh
#!/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 November 24, 2018 10:14
Python envirenment wizard
#!/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 November 14, 2018 16:23
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, "&"])
@LinuxPhreak
LinuxPhreak / convertui.py
Created November 12, 2018 14:06
PyUIC5 wrapper
#!/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 November 1, 2018 14:45
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('https://github.com/LinuxPhreak')
@LinuxPhreak
LinuxPhreak / star-trek-game-credits.py
Created October 8, 2018 21:29
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 ");