diff options
Diffstat (limited to 'Scripts')
31 files changed, 0 insertions, 1207 deletions
diff --git a/Scripts/#wiki2P.py# b/Scripts/#wiki2P.py# deleted file mode 100755 index 2fb1a10..0000000 --- a/Scripts/#wiki2P.py# +++ /dev/null @@ -1,26 +0,0 @@ -import requests, bs4, re - -# res = requests.get("https://en.wikipedia.org/wiki/Special:Random") -res = requests.get("https://en.wikipedia.org/wiki/Linux") - - -soup = bs4.BeautifulSoup(res.text, "html.parser") - - -element = soup.select("#mw-content-text a[title]") - - -pattern = re.compile("^\/.*") - - -for i in element: - if "Edit section" not in i["title"] and pattern.match(i["href"]): - if "div" not in str(i.parent) and "th" not in str(i.parent) and "td" not in str(i.parent): - try: - i["class"] - except KeyError: - print(i) - break - -print("LOL") - diff --git a/Scripts/.vscode/launch.json b/Scripts/.vscode/launch.json deleted file mode 100644 index fff7d3c..0000000 --- a/Scripts/.vscode/launch.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "version": "0.2.0", - "configurations": [ - - { - "name": "Python", - "type": "python", - "request": "launch", - "stopOnEntry": true, - "pythonPath": "${config.python.pythonPath}", - "program": "${file}", - "cwd": "${workspaceRoot}", - "debugOptions": [ - "WaitOnAbnormalExit", - "WaitOnNormalExit", - "RedirectOutput" - ] - }, - { - "name": "PySpark", - "type": "python", - "request": "launch", - "stopOnEntry": true, - "osx": { - "pythonPath": "${env.SPARK_HOME}/bin/spark-submit" - }, - "windows": { - "pythonPath": "${env.SPARK_HOME}/bin/spark-submit.cmd" - }, - "linux": { - "pythonPath": "${env.SPARK_HOME}/bin/spark-submit" - }, - "program": "${file}", - "cwd": "${workspaceRoot}", - "debugOptions": [ - "WaitOnAbnormalExit", - "WaitOnNormalExit", - "RedirectOutput" - ] - }, - { - "name": "Python Module", - "type": "python", - "request": "launch", - "stopOnEntry": true, - "pythonPath": "${config.python.pythonPath}", - "module": "module.name", - "cwd": "${workspaceRoot}", - "debugOptions": [ - "WaitOnAbnormalExit", - "WaitOnNormalExit", - "RedirectOutput" - ] - }, - { - "name": "Integrated Terminal/Console", - "type": "python", - "request": "launch", - "stopOnEntry": true, - "pythonPath": "${config.python.pythonPath}", - "program": "${file}", - "cwd": "null", - "console": "integratedTerminal", - "debugOptions": [ - "WaitOnAbnormalExit", - "WaitOnNormalExit" - ] - }, - { - "name": "External Terminal/Console", - "type": "python", - "request": "launch", - "stopOnEntry": true, - "pythonPath": "${config.python.pythonPath}", - "program": "${file}", - "cwd": "null", - "console": "externalTerminal", - "debugOptions": [ - "WaitOnAbnormalExit", - "WaitOnNormalExit" - ] - }, - { - "name": "Django", - "type": "python", - "request": "launch", - "stopOnEntry": true, - "pythonPath": "${config.python.pythonPath}", - "program": "${workspaceRoot}/manage.py", - "cwd": "${workspaceRoot}", - "args": [ - "runserver", - "--noreload" - ], - "debugOptions": [ - "WaitOnAbnormalExit", - "WaitOnNormalExit", - "RedirectOutput", - "DjangoDebugging" - ] - }, - { - "name": "Flask", - "type": "python", - "request": "launch", - "stopOnEntry": false, - "pythonPath": "${config.python.pythonPath}", - "program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter", - "cwd": "${workspaceRoot}", - "env": { - "FLASK_APP": "${workspaceRoot}/quickstart/app.py" - }, - "args": [ - "run", - "--no-debugger", - "--no-reload" - ], - "debugOptions": [ - "WaitOnAbnormalExit", - "WaitOnNormalExit", - "RedirectOutput" - ] - }, - { - "name": "Flask (old)", - "type": "python", - "request": "launch", - "stopOnEntry": false, - "pythonPath": "${config.python.pythonPath}", - "program": "${workspaceRoot}/run.py", - "cwd": "${workspaceRoot}", - "args": [], - "debugOptions": [ - "WaitOnAbnormalExit", - "WaitOnNormalExit", - "RedirectOutput" - ] - }, - { - "name": "Watson", - "type": "python", - "request": "launch", - "stopOnEntry": true, - "pythonPath": "${config.python.pythonPath}", - "program": "${workspaceRoot}/console.py", - "cwd": "${workspaceRoot}", - "args": [ - "dev", - "runserver", - "--noreload=True" - ], - "debugOptions": [ - "WaitOnAbnormalExit", - "WaitOnNormalExit", - "RedirectOutput" - ] - }, - { - "name": "Attach (Remote Debug)", - "type": "python", - "request": "attach", - "localRoot": "${workspaceRoot}", - "remoteRoot": "${workspaceRoot}", - "port": 3000, - "secret": "my_secret", - "host": "localhost" - } - ] -}
\ No newline at end of file diff --git a/Scripts/.vscode/settings.json b/Scripts/.vscode/settings.json deleted file mode 100644 index fe71598..0000000 --- a/Scripts/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "python.linting.pylintEnabled": false -}
\ No newline at end of file diff --git a/Scripts/2spooky.lua b/Scripts/2spooky.lua deleted file mode 100644 index a0ebc5d..0000000 --- a/Scripts/2spooky.lua +++ /dev/null @@ -1,79 +0,0 @@ - --Definitely not my best work, first script I've done in Lua 5.2 - function draw() - nissue = { - "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;33m", - ",~~~~~~~~~~~~~, \027[0;31m..:::::::::.. \027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", - "\027[1;33m:\027[1;32m .-======-,\027[1;33m : \027[0;31m ..:::\027[1;37maad8888888baa\027[0;31m:::.. \027[1;33m:\027[1;34mExploit-the \027[1;33m :\027[1;32m", - "\027[1;33m:\027[1;32m ||\027[0;31mH4CK3R\027[1;32m|# \027[1;33m : \027[0;31m .::::\027[1;37md:?88888888888?::8b\027[0;31m::::. \027[1;33m :\027[0;31m.-------,./|\027[1;33m :\027[1;32m", - "\027[1;33m:\027[1;32m ||______|| \027[1;33m :\027[1;34m&&&& \027[0;31m.:::\027[1;37md8888:?88888888??a888888b\027[0;31m:::. \027[1;34m &&&&\027[1;33m:\027[0;31m{ \027[1;33m VIRUS \027[0;31m /\027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m | ___ | \027[1;33m : \027[1;34m + \027[0;31m.:::\027[1;37md8888888a8888888aa8888888888b\027[0;31m:::. \027[1;34m + \027[1;33m :\027[0;31m \\\027[1;33m DROPPER\027[0;31m 7\027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m | |\027[1;35m[]\027[1;32m | | \027[1;33m : \027[1;34m &\027[0;31m::::\027[1;37mdP\027[0;31m\023\022\021\020\019\018\017\016\027[1;37m88888888888\027[0;31m\023\022\021\020\019\018\017\016\027[1;37mYb\027[0;31m::::\027[1;34m&&\027[1;33m :\027[0;31m ~. ,--.( \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m `-------' \027[1;33m : \027[0;31m::::\027[1;37mdP\027[0;31m\024:::::::\015\027[1;37mY888888888P\027[0;31m\024:::::::\015\027[1;37mYb\027[0;31m::::\027[1;33m : \027[0;31m '~ `;\027[1;33m :\027[1;33m", - "\027[1;33m:\027[0;31mReverse- \027[1;33m : \027[0;31m::::\027[1;37md8\027[0;31m\001:::::::::\014\027[1;37mY8888888P\027[0;31m\001:::::::::\014\027[1;37m8b\027[0;31m::::\027[1;33m :\027[1;34mNation's-\027[0;31mData\027[1;33m:\027[1;33m", - "\027[1;33m:\027[0;31mEngineering \027[1;33m: \027[0;31m.::::\027[1;37m88\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37mY88888P\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37m88\027[0;31m::::.\027[1;33m `~~~~~~~~~~~~'\027[1;33m", - "\027[1;33m `~~~~~~~~~~~~' \027[0;31m:::::\027[1;37mY8baaaaaaaaaa88P\027[0;31m:\027[1;37mT\027[0;31m:\027[1;37mY88aaaaaaaaaad8P\027[0;31m::::: \027[0;31m", - "\027[0;31m :::::::\027[1;37mY88888888888P\027[0;31m::\027[1;37m|\027[0;31m::\027[1;37mY88888888888P\027[0;31m::::::: \027[0;31m", - "\027[1;33m,~~~~~~~~~~~~~, \027[0;31m::::::::::::::::\027[1;37m888\027[0;31m:::\027[1;37m|\027[0;31m:::\027[1;37m888\027[0;31m::::::::::::::::\027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", - "\027[1;33m:\027[1;34m R00T-KITS \027[1;33m : \027[0;31m`:::::::::::::::\027[1;37m8888888888888b\027[0;31m::::::::::::::' \027[1;33m :\027[0;31mHoM3-$w33t\027[1;33m :\027[1;37m", - "\027[1;33m:\027[0;31m ____ \027[1;37m __ \027[1;33m : \027[0;31m:::::::::::::::\027[1;37m88888888888888\027[0;31m:::::::::::::: \027[1;33m :\027[1;34m (I\027[1;33m :\027[1;33m", - "\027[1;33m: \027[0;31m| |\027[1;37m |\027[0;31m-_\027[1;37m| \027[1;33m:\027[0;31m :::::::::::::\027[1;37md88888888888888\027[0;31m::::::::::::: \027[1;33m :\027[1;36m^^^\027[1;34m |\027[1;36m ^^^\027[1;33m:\027[1;33m", - "\027[1;33m:\027[0;31m |____|\027[1;33m_\027[1;37m|\027[0;31m=_\027[1;37m|\027[1;33m :\027[0;31m ::::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::::\027[1;33m :\027[1;34m|u|_\027[1;36m^^^^^\027[1;34m_|u|\027[1;33m:\027[1;33m", - "\027[1;33m:\027[1;37m ____\027[1;33m)\027[1;37m_\027[1;37m.\027[1;37m___\027[1;33m : \027[0;31m`::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::' \027[1;33m :\027[1;34m|_ u _ u _|\027[1;33m:\027[1;33m", - "\027[1;33m: \027[1;37m/\027[1;34m:::::;\027[1;37m|\027[1;34m _\027[1;37m)\027[1;33m:\027[1;34m &\027[0;31m`:::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37mP\027[0;31m::::\027[1;37m88\027[0;31m:::::::::'\027[1;34m& \027[1;33m:\027[1;34m |__|\027[1;37m;\027[1;34m|__| \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;37m `======'\027[1;34m |_|\027[1;33m: \027[1;34m+ \027[0;31m `:::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::::::\027[1;37m88\027[0;31m:::::::' \027[1;34m + \027[1;33m :\027[1;34m /_/ \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;34mUr-Computer-\027[1;33m :\027[1;34m&&&&&&& \027[0;31m ``:::::::::::::::::::::::''\027[1;34m &&&&&&&\027[1;33m:\027[0;31mH4x0r-HoM3- \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;34mis-MY-\027[0;31mSlave \027[1;33m : \027[0;31m ``::::::::::::::''\027[1;33m :\027[0;31m *\027[1;37m127\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m1\027[0;31m* \027[1;33m:\027[1;33m", - "\027[1;33m `~~~~~~~~~~~~' `~~~~~~~~~~~~'\027[1;33m", - "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;37m", - "\027[0;31m -======- \027[1;37m +\027[0;31mWARNING\027[1;37m+\027[1;33m\"\027[0;31mIllegal\027[1;37m_\027[0;31mNetwork\027[1;37m_\027[0;31mConnections\027[1;37m_\027[0;31mBeyond\027[1;37m_\027[0;31mLogin\027[1;33m\" \027[0;31m -======-\027[0;31m", - "\027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m| \027[1;34m -== \027[1;37m You are at the point of \027[0;31mNO RETURN \027[1;34m ==- \027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m|\027[0;31m", - "\027[0;31m |______|\027[0;31mYour Activities\027[1;37m:\027[1;33mWill\027[1;37m_\027[1;33mbe\027[1;37m_\027[1;33mKeylogged\027[1;37m_\027[1;33mand\027[1;37m_\027[1;33mTimestamped \027[1;34m\"\027[0;31mUSER_BEWARE\027[1;34m\"\027[0;31m|______|\027[0;31m", - "\027[0;31mHacking Sites\027[1;37m:\027[0;31m https\027[1;37m:\027[1;33m//\027[0;31msites\027[1;37m.\027[0;31mgoogle\027[1;37m.\027[0;31mcom\027[1;33m/\027[0;31msite\027[1;33m/\027[0;31mlazyboxx \027[1;35m*\027[0;31m http\027[1;37m:\027[1;33m//\027[0;31mwww\027[1;37m.\027[0;31mfreebsd\027[1;37m.\027[0;31morg \027[1;33m" - } - io.write("\027[1;1H") --reset cursor - for a = 7,11 do - for b = 1,24 do - if b == position then - nissue[a] = string.gsub(nissue[a],string.char(b),"\027[1;31m@\027[0;31m") - else - nissue[a] = string.gsub(nissue[a],string.char(b),":") - end - end - end - for a = 5,21 do - if bool then - nissue[a] = string.gsub(nissue[a],"&","\027[31;1m=\027[37;1m") - nissue[a] = string.gsub(nissue[a],"+","\027[31;1m|\027[37;1m") - else - nissue[a] = string.gsub(nissue[a],"&","=") - nissue[a] = string.gsub(nissue[a],"+","|") - end - end - for i = 1,28 do - print(nissue[i]) - end - bool = not bool - end - function changepos(num) - if position == 24 and num == 1 then - position = 1 - elseif position == 1 and num == -1 then - position = 24 - else - position = position + num - end - end - position = 14 - bool = true - dirs = {1,-1} - draw() - while true do - move = math.random(1,6) - dir = dirs[math.random(1,2)] - draw() - for m = 1,move do - changepos(dir) - draw() - os.execute("sleep 0.1") --Replace it with some other way to wait one tenth of a second if you're using Windows or don't have "sleep" - end --On the subject of Windows compatibility, Ansicon is a perfect way to make the Ansi escape codes work. - end diff --git a/Scripts/InstallPpaPackage.sh b/Scripts/InstallPpaPackage.sh deleted file mode 100644 index e625c4e..0000000 --- a/Scripts/InstallPpaPackage.sh +++ /dev/null @@ -1,3 +0,0 @@ -sudo add-apt-repository ppa:$1 -sudo apt-get update -sudo apt-get install $2 diff --git a/Scripts/JUUPPA.py b/Scripts/JUUPPA.py deleted file mode 100644 index 75abc0c..0000000 --- a/Scripts/JUUPPA.py +++ /dev/null @@ -1,52 +0,0 @@ -import requests, bs4, re, os, sys - -def getPPA(link): - m = re.search('\/.(.*)\/\+archive\/\w*\/(.*)', link) - if m != None: - return m.group(1) + "/" + m.group(2) - else: - return "Sorry could not find PPA" - -res = requests.get("https://launchpad.net/ubuntu/+ppas?name_filter=" + sys.argv[1]) - - -soup = bs4.BeautifulSoup(res.text, "html.parser") - -element = soup.find("table", {"class" : "listing"}) -if element != None: - elements = element.find("tbody").find_all("tr") - - count = len(elements) - results = [] - - print("Found", len(elements),"results:\n") - for item in reversed(elements): - count -= 1 - name = item.find("td").find("a").string - PPA = getPPA(item.find("td").find("a")["href"]) - sources = item.find_all("td")[-2].string - binaries = item.find_all("td")[-1].string - - results.append((name, PPA, sources, binaries)) - - print("Option number", count) - print("Name :", name) - print("PPA :", PPA) - print("Sources :", sources) - print("Binaries :", binaries) - print("") - - - print("Please select PPA", 0, "to", len(results)) - index = int(input("Number: ")) - - print("Adding PPA", results[index-1][1], "with command 'sudo add-apt-repository ppa:" + results[index-1][1] + "'" + str(index-1)) - os.system("sudo add-apt-repository ppa:" + results[index-1][1]) - - print("Updating packages") - os.system("sudo apt update") - - print("Installing", results[index-1][0]) - os.system("sudo apt install " + results[index-1][0]) -else: - print("No results where found for", sys.argv[1]) diff --git a/Scripts/Rex2T1000.py b/Scripts/Rex2T1000.py deleted file mode 100755 index 87e4204..0000000 --- a/Scripts/Rex2T1000.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python - -# URXVT Colors -> Terminator config file format by Stolid. Enjoy. I can't promise it will work every time. - -import subprocess, os - -urxvt_cfg = os.path.expanduser('~')+'/.Xresources' - -colors = [] -def getColorSetting(search): - p1 = subprocess.Popen(['grep', search, urxvt_cfg], stdout=subprocess.PIPE) - output = subprocess.Popen(['head', '-n1'], stdin=p1.stdout, stdout=subprocess.PIPE) - r = ' '.join(output.communicate()[0].split()) - r = '#' + r.split('#')[-1] - return r -for i in range(0,15+1): - p1 = subprocess.Popen(['grep', 'color'+str(i), urxvt_cfg], stdout=subprocess.PIPE) - p2 = subprocess.Popen(['head', '-n1'], stdin=p1.stdout, stdout=subprocess.PIPE) - output = p2.communicate()[0] - color = ' '.join(output.split()) - color = color.split('#')[-1] - colors.append('#'+color) -#print colors -print( '\nColors parsed out of ~/.Xresources and terminator-config-file-ized (replace the relevant lines in your ~/.config/terminator/config):\n') -print( 'palette = "' + (':'.join(colors)) + '"') -print( 'background_color = "' + getColorSetting('*background:') + '"') -print( 'foreground_color = "' + getColorSetting('*foreground:') + '"') -print( 'cursor_color = "' + getColorSetting('cursorColor:') + '"') diff --git a/Scripts/Scanner.py b/Scripts/Scanner.py deleted file mode 100755 index 04538c4..0000000 --- a/Scripts/Scanner.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python - -import getch -import os - -page = 0 - -name = input("Enter name of pdf: ") - -while(1): - print("Press q for exit, Space for scanning, and d for done") - x = getch.getch() - if(x == 'q'): - exit() - elif(x == ' '): - print("Starting scan of page " + str(page+1)) - os.system("scanimage --device genesys:libusb:001:004 --format=tiff > scan" + str(page) + ".tiff") - page += 1 - print("Scan done") - elif(x == 'd'): - print("Collecting tiff pages") - os.system("tiffcp scan*.tiff magazine.tiff"); - print("Making pdf file") - os.system("convert magazine.tiff '" + name + ".pdf'") - print("Removing tiffs") - os.system("rm *.tiff") - print("Done resetting vars") - page = 0 - name = input("Enter name of pdf: ") - - diff --git a/Scripts/Screenshotmania.sh b/Scripts/Screenshotmania.sh deleted file mode 100755 index d2d35bc..0000000 --- a/Scripts/Screenshotmania.sh +++ /dev/null @@ -1,7 +0,0 @@ -i="0" - -while true; -do -scrot "lol$i.png" -i=$[$i+1] -done diff --git a/Scripts/__pycache__/getch.cpython-35.pyc b/Scripts/__pycache__/getch.cpython-35.pyc Binary files differdeleted file mode 100755 index 4aabcf7..0000000 --- a/Scripts/__pycache__/getch.cpython-35.pyc +++ /dev/null diff --git a/Scripts/autoStart.sh b/Scripts/autoStart.sh deleted file mode 100644 index 3c437e3..0000000 --- a/Scripts/autoStart.sh +++ /dev/null @@ -1,4 +0,0 @@ -xcape -e 'Super_L=Super_L|w' & -#sh /home/julian/Conky/start.sh & -albert & - diff --git a/Scripts/checkIfActive.sh b/Scripts/checkIfActive.sh deleted file mode 100644 index ecf40d1..0000000 --- a/Scripts/checkIfActive.sh +++ /dev/null @@ -1,5 +0,0 @@ -if pgrep "$1" > /dev/null; then - echo Active -else - echo Inactive -fi diff --git a/Scripts/cleanup_scans.sh b/Scripts/cleanup_scans.sh deleted file mode 100755 index 42fd127..0000000 --- a/Scripts/cleanup_scans.sh +++ /dev/null @@ -1,222 +0,0 @@ -#!/bin/bash - -# -# cleanup_scans.sh -# -# Bash script to deskew and deborder scanned images -# -# Copyright (C) 2008, 2015 Moreno Marzolla -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# Version history: -# -# Version 0.1, 2008/08/03 - initial version -# Version 0.2, 2015/04/11 - changed /bin/sh to /bin/bash -# -# Author: moreno.marzolla (at) unibo.it -# http://www.moreno.marzolla.name/ - - -# -# This script is used to process a bunch of color, grayscale or B/W scans -# Syntax: -# -# cleanup_scans.sh <file1> <file2> ... -# -# This will process file1, file2... and produce file1.tiff file2.tiff... -# in the current directory. -# -# Color scans will be converted into color TIFFs; Grayscale or black/white -# scans will be converted into B/W tiffs (unless the --forcecolor option -# is used). Both color and grayscale pages are automatically deskewed. -# -# At the moment this script contains some hardcoded defaults, which need -# to be removed before using it as a general-purpose scan-to-tiff processor -# -# This script requires the following external applications: -# - ImageMagick (convert and mogrify) -# - netpbm, the current development version from svn (it uses the pamtilt -# utility which is not included into the stable netpbm distribution) -# - perl (for evaluating a simple expression; I was unable to do that -# using only bash) -# - -convert=convert -pamtilt=pamtilt -crop_geometry=2400x3250+0+0 -deskew=yes -forcecolor=no -deborder=yes - -function process_color_image { -# Adjust color levels and crop - local base=`basename $1 .image` - local skew=0 - local deborder_cmd=(-fuzz 10% -fill white -draw "color 2540,3500 floodfill" ) - - echo -n "Processing COLOR image $1..." - - if [ $deborder == "no" ]; then - deborder_cmd=(); - fi - - if [ $deskew == "yes" ]; then - echo -n "Tilt" - - skew=`$convert -quiet $1 \ - -crop $crop_geometry \ - +repage \ - -level 10%,80%,1 \ - -monochrome \ - "pnm:-" | $pamtilt` - - skew=`perl -e "if (abs($skew)>0.1 && abs($skew)<3.0) { print (- $skew) } else { print 0 }"` - echo -n "(${skew})..." - fi - - echo -n "converting..." - convert $1 \ - -background white \ - -rotate $skew \ - +matte "${deborder_cmd[@]}" \ - -level 10%,80%,1 \ - -crop $crop_geometry \ - +repage \ - +matte \ - -format tiff \ - $base.tiff - - \rm -f $base.pnm - echo "done" -} - - -function process_gray_image { - local base=`basename $1 .image` - local skew=0 - local deborder_cmd=(-stroke black -fill black -draw "rectangle 0,0 50,3505" -draw "rectangle 0,0 2548,50" -draw "rectangle 0,3405 2548,3505" -draw "rectangle 2448,0 2548,3505" -fill white -draw "color 0,0 floodfill") - - if [ $deborder == "no" ]; then - deborder_cmd=(); - fi - - echo -n "Processing GRAY image $1..." - -# If the image is already black and white, then simpler operations must be performed - local bitssample=`tiffinfo $1 | grep Bits | tr -c -d [:digit:]` - if [ $bitssample -ne "1" ]; then - echo -n "B/W (slow)..." - $convert -quiet $1 \ - -colorspace gray \ - -level 10%,90%,1 \ - -blur 2 \ - +dither \ - -monochrome \ - -flatten "${deborder_cmd[@]}" \ - -crop $crop_geometry \ - +repage \ - \( -write $base.pnm \) \ - +matte $base.tiff - else - echo -n "B/W (fast)..." - $convert -quiet $1 "${deborder_cmd[@]}" \ - -crop $crop_geometry \ - +repage \ - \( -write $base.pnm \) \ - +matte $base.tiff - fi - - if [ $deskew == "yes" ]; then - echo -n "Tilt" - skew=`$pamtilt $base.pnm` - skew=`perl -e "if (abs($skew)>0.1 && abs($skew)<3) { print (- $skew) } else { print 0 }"` - echo -n "(${skew})..." - fi - - echo -n "Rotate..." - mogrify -quiet \ - +dither \ - -rotate $skew \ - -monochrome \ - +matte \ - -format tiff \ - -compress Group4 \ - $base.tiff - - \rm -f $base.pnm - echo "done" -} - -function print_usage { -cat<<EOF - -Usage: $0 [--help] [--nodeskew] [--forcecolor] [--nodeborder] <inputfile> ... - ---nodeskew Do not deskew the image (default: deskew) ---forcecolor Do not convert grayscale images to B/W (default: convert to B/W) ---nodeborder Do not attempt to remove the black border (default: remove) ---help Print this message - -EOF - -exit -1; -} - -if [ $# -lt 1 ]; then - print_usage; -fi - -while [ $# -gt 0 ]; do - file=$1 - - shift; - - if [ $file == "--help" ]; then - print_usage; - fi - - if [ $file == "--nodeskew" ]; then - deskew=no - continue - fi - - if [ $file == "--forcecolor" ]; then - forcecolor=yes - continue - fi - - if [ $file == "--nodeborder" ]; then - deborder="no"; - continue - fi - - if [ ! -f $file ]; then - echo "$file does not exist" - continue - fi - - if [ $forcecolor == "yes" ]; then - process_color_image $file - else - photoint=`tiffinfo ${file} | grep -i "Photometric Interpretation"` - - case $photoint in - *"RGB color") process_color_image $file ;; - *) process_gray_image $file ;; - esac - fi - -done diff --git a/Scripts/getch.py b/Scripts/getch.py deleted file mode 100755 index be6203f..0000000 --- a/Scripts/getch.py +++ /dev/null @@ -1,38 +0,0 @@ -class _Getch: - """Gets a single character from standard input. Does not echo to the -screen.""" - def __init__(self): - try: - self.impl = _GetchWindows() - except ImportError: - self.impl = _GetchUnix() - - def __call__(self): return self.impl() - - -class _GetchUnix: - def __init__(self): - import tty, sys - - def __call__(self): - import sys, tty, termios - fd = sys.stdin.fileno() - old_settings = termios.tcgetattr(fd) - try: - tty.setraw(sys.stdin.fileno()) - ch = sys.stdin.read(1) - finally: - termios.tcsetattr(fd, termios.TCSADRAIN, old_settings) - return ch - - -class _GetchWindows: - def __init__(self): - import msvcrt - - def __call__(self): - import msvcrt - return msvcrt.getch() - - -getch = _Getch() diff --git a/Scripts/installSouceCodePro.sh b/Scripts/installSouceCodePro.sh deleted file mode 100644 index c22908f..0000000 --- a/Scripts/installSouceCodePro.sh +++ /dev/null @@ -1,23 +0,0 @@ -echo "\n* Downloading version $version of source code pro font" -rm -f SourceCodePro_FontsOnly-$version.zip -rm -rf SourceCodePro_FontsOnly-$version -wget https://github.com/downloads/adobe/source-code-pro/SourceCodePro_FontsOnly-$version.zip - -echo "\n* Unziping package" -unzip SourceCodePro_FontsOnly-$version.zip -mkdir -p ~/.fonts - -echo "\n* Copying fonts to ~/fonts" -cp SourceCodePro_FontsOnly-$version/OTF/*.otf ~/.fonts/ - -echo "\n* Updating font cache" -sudo fc-cache -f -v - -echo "\n* Looking for 'Source Code Pro' in installed fonts" -fc-list | grep "Source Code Pro" - -echo "\n* Now, you can use the 'Source Code Pro' fonts, ** for sublime text ** just add the lines bellow to 'Preferences > Settings':" -echo '\n "font_face": "Source Code Pro",' -echo ' "font_size": 10' - -echo "\n* Finished :)\n" diff --git a/Scripts/makeGif.py b/Scripts/makeGif.py deleted file mode 100755 index 5a5ac98..0000000 --- a/Scripts/makeGif.py +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env python -import sys -import argparse -import os - -parser = argparse.ArgumentParser() -parser.add_argument('-s', '--start', - required=False, - type=int, - default=0, - dest="start", - help="Time to start gif at. [0]" ) -parser.add_argument('-l', '--lenght', - required=True, - type=int, - dest="lenght", - help="Lenght of gif in seconds" ) -parser.add_argument('-i', '--infile', - required=True, - type=str, - dest="infile", - help="Movie to convert" ) -parser.add_argument('-o', '--outfile', - required=False, - type=str, - default="output.gif", - dest="outfile", - help="Output gif name. [output.gif]") -parser.add_argument('-f', '--fps', - required=False, - type=int, - default=10, - dest="fps", - help="Frames per second. [10]") -parser.add_argument('-r', '--resolution', - required=False, - type=int, - default=320, - dest="res", - help="Resolution. [320]") -args = parser.parse_args() - - -os.system("ffmpeg -y -ss " + str(args.start) + " -t " + str(args.lenght) + " -i '" + args.infile + "' -vf fps=" + str(args.fps) + ",scale=" + str(args.res) + ":-1:flags=lanczos,palettegen palette.png") - -string = 'fps=' + str(args.fps) + ',scale=' + str(args.res) + ':-1:flags=lanczos[x];[x][1:v]paletteuse' - -os.system('ffmpeg -ss ' + str(args.start) + ' -t ' + str(args.lenght) + ' -i "' + args.infile + '" -i palette.png -filter_complex "' + string + '" "' + args.outfile + '"') - -os.remove("palette.png") - -print("\n\nDONE - your file " + args.outfile + " is ready. Have a nice day :-D") diff --git a/Scripts/mayHem.py b/Scripts/mayHem.py deleted file mode 100644 index 6ac90d6..0000000 --- a/Scripts/mayHem.py +++ /dev/null @@ -1,30 +0,0 @@ -import os -import tkinter as tk -import time -root = tk.Tk() -root.withdraw() - -control_c_sequence = '''keydown Shift_L; -key Left; -keyup Shift_L; -keydown Control_L; -key x; -keyup Control_L -''' - -left = 'key Left' -right = 'key Right' - -def keypress(sequence): - #print(sequence.replace('\n', '')) - for item in sequence.replace('\n', '').split(';'): - print("xdotool " + item) - os.system("xdotool " + item) - - -keypress(right) -while(True): - keypress(control_c_sequence) - keypress("keydown Shift_L key " + root.clipboard_get() + " keyup Shift_L") - keypress(right) - keypress(right) diff --git a/Scripts/overleafUp.sh b/Scripts/overleafUp.sh deleted file mode 100644 index 59f4355..0000000 --- a/Scripts/overleafUp.sh +++ /dev/null @@ -1,4 +0,0 @@ -cd /home/julian/Dokumenter/overleaf/fysikCirkelBevægelse - -git pull -pdflatex main.tex diff --git a/Scripts/pythonSocket.py b/Scripts/pythonSocket.py deleted file mode 100644 index 06c434b..0000000 --- a/Scripts/pythonSocket.py +++ /dev/null @@ -1,23 +0,0 @@ -import socket -sock = socket.socket() - -server_addr = ('192.168.43.86', 5001) -sock.bind(server_addr) - -sock.listen(1) -print("Waiting for connection on " + str(server_addr)) -while True: - connection, client_address = sock.accept() - try: - print ('connection from', client_address) - - # Receive the data in small chunks and retransmit it - while True: - data = connection.recv(16) - print('received ' ,data) - if not data: - print('no more data from', client_address) - break - finally: - # Clean up the connection - connection.close()
\ No newline at end of file diff --git a/Scripts/reload2bwm.sh b/Scripts/reload2bwm.sh deleted file mode 100755 index 6f9756f..0000000 --- a/Scripts/reload2bwm.sh +++ /dev/null @@ -1,4 +0,0 @@ -cd /home/julian/Software/2bwm -rm *.tar -sudo pacman --noconfirm -R 2bwm -makepkg -esi diff --git a/Scripts/rofi b/Scripts/rofi deleted file mode 100755 index b6423f4..0000000 --- a/Scripts/rofi +++ /dev/null @@ -1,59 +0,0 @@ -# --- APPLY XRES BEGIN -c_red_l="CC6666" -c_green_l="BDE077" -c_cyan_d="72AD8C" -c_cursor="fff000" -c_yellow_d="FEA63C" -c_green_d="B7CE42" -c_yellow_l="FFE863" -c_foreground="ddeedd" -c_blue_l="AACCBB" -c_magenta_l="ff5879" -c_black_d="25374A" -c_background="131D24" -c_magenta_d="F26B9E" -c_black_l="3A526B" -c_blue_d="66AABB" -c_white_l="FFFFFF" -c_cyan_l="9FE3BC" -c_red_d="BD4A4A" -c_white_d="DDEEDD" -# --- APPLY XRES END - -tod="Morning" - -bg="$c_background" # Default background for undefined times of day -fg="$c_foreground" -case $tod in - "Late Night") - bg="$c_black_d" - fg="$c_black_l" - ;; - "Early Morning") - bg="$c_blue_d" - fg="$c_black_d" - ;; - "Morning") - bg="$c_cyan_d" - fg="$c_white_l" - ;; - "Afternoon") - bg="$c_white_l" - fg="$c_black_l" - ;; - "Late Afternoon") - bg="$c_yellow_d" - fg="$c_black_d" - ;; - "Evening") - bg="$c_background" - fg="$c_yellow_d" - ;; - "Night") - bg="$c_black_d" - fg="$c_blue_l" - ;; -esac - -width=1366 -rofi -show run -width $width -fg "#$fg" -bg "#$bg" -hlbg "#$fg" -hlfg "#$bg" -bc "#$c_background" -location 0 -lines 8 -bw 0 -font "Inconsolata Bold 16" -padding 400 -separator-style none -opacity 85 diff --git a/Scripts/setUpeveryThing b/Scripts/setUpeveryThing deleted file mode 100644 index 2e9efb0..0000000 --- a/Scripts/setUpeveryThing +++ /dev/null @@ -1,41 +0,0 @@ -sudo apt -y update -sudo apt -y upgrade - -sudo apt -y install zsh -sudo apt -y install cowsay -sudo apt -y install fortune -sudo apt -y install htop -sudo apt -y install python -sudo apt -y install python-pip -sudo apt -y install python3 -sudo apt -y install python3-pip -sudo apt -y install git -sudo apt -y install playonlinux - -sudo apt -y install emacs -sudo apt -y install vim -sudo apt -y install nano - -sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - - - - - -sudo apt -y install terminator - - -sudo apt -y install conky -sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 -echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list -sudo apt update - -sudo apt -y install spotify-client -sudo apt -y install virtualbox - -sudo apt -y install texlive -sudo apt -y install texlive-lang-european -sudo apt -y install texmaker - - - diff --git a/Scripts/skoopy b/Scripts/skoopy deleted file mode 100755 index 3cf65cf..0000000 --- a/Scripts/skoopy +++ /dev/null @@ -1,79 +0,0 @@ ---Definitely not my best work, first script I've done in Lua 5.2 -function draw() - nissue = { - "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;33m", - ",~~~~~~~~~~~~~, \027[0;31m..:::::::::.. \027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", - "\027[1;33m:\027[1;32m .-======-,\027[1;33m : \027[0;31m ..:::\027[1;37maad8888888baa\027[0;31m:::.. \027[1;33m:\027[1;34mExploit-the \027[1;33m :\027[1;32m", - "\027[1;33m:\027[1;32m ||\027[0;31mH4CK3R\027[1;32m|# \027[1;33m : \027[0;31m .::::\027[1;37md:?88888888888?::8b\027[0;31m::::. \027[1;33m :\027[0;31m.-------,./|\027[1;33m :\027[1;32m", - "\027[1;33m:\027[1;32m ||______|| \027[1;33m :\027[1;34m&&&& \027[0;31m.:::\027[1;37md8888:?88888888??a888888b\027[0;31m:::. \027[1;34m &&&&\027[1;33m:\027[0;31m{ \027[1;33m VIRUS \027[0;31m /\027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m | ___ | \027[1;33m : \027[1;34m + \027[0;31m.:::\027[1;37md8888888a8888888aa8888888888b\027[0;31m:::. \027[1;34m + \027[1;33m :\027[0;31m \\\027[1;33m DROPPER\027[0;31m 7\027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m | |\027[1;35m[]\027[1;32m | | \027[1;33m : \027[1;34m &\027[0;31m::::\027[1;37mdP\027[0;31m\023\022\021\020\019\018\017\016\027[1;37m88888888888\027[0;31m\023\022\021\020\019\018\017\016\027[1;37mYb\027[0;31m::::\027[1;34m&&\027[1;33m :\027[0;31m ~. ,--.( \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m `-------' \027[1;33m : \027[0;31m::::\027[1;37mdP\027[0;31m\024:::::::\015\027[1;37mY888888888P\027[0;31m\024:::::::\015\027[1;37mYb\027[0;31m::::\027[1;33m : \027[0;31m '~ `;\027[1;33m :\027[1;33m", - "\027[1;33m:\027[0;31mReverse- \027[1;33m : \027[0;31m::::\027[1;37md8\027[0;31m\001:::::::::\014\027[1;37mY8888888P\027[0;31m\001:::::::::\014\027[1;37m8b\027[0;31m::::\027[1;33m :\027[1;34mNation's-\027[0;31mData\027[1;33m:\027[1;33m", - "\027[1;33m:\027[0;31mEngineering \027[1;33m: \027[0;31m.::::\027[1;37m88\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37mY88888P\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37m88\027[0;31m::::.\027[1;33m `~~~~~~~~~~~~'\027[1;33m", - "\027[1;33m `~~~~~~~~~~~~' \027[0;31m:::::\027[1;37mY8baaaaaaaaaa88P\027[0;31m:\027[1;37mT\027[0;31m:\027[1;37mY88aaaaaaaaaad8P\027[0;31m::::: \027[0;31m", - "\027[0;31m :::::::\027[1;37mY88888888888P\027[0;31m::\027[1;37m|\027[0;31m::\027[1;37mY88888888888P\027[0;31m::::::: \027[0;31m", - "\027[1;33m,~~~~~~~~~~~~~, \027[0;31m::::::::::::::::\027[1;37m888\027[0;31m:::\027[1;37m|\027[0;31m:::\027[1;37m888\027[0;31m::::::::::::::::\027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", - "\027[1;33m:\027[1;34m R00T-KITS \027[1;33m : \027[0;31m`:::::::::::::::\027[1;37m8888888888888b\027[0;31m::::::::::::::' \027[1;33m :\027[0;31mHoM3-$w33t\027[1;33m :\027[1;37m", - "\027[1;33m:\027[0;31m ____ \027[1;37m __ \027[1;33m : \027[0;31m:::::::::::::::\027[1;37m88888888888888\027[0;31m:::::::::::::: \027[1;33m :\027[1;34m (I\027[1;33m :\027[1;33m", - "\027[1;33m: \027[0;31m| |\027[1;37m |\027[0;31m-_\027[1;37m| \027[1;33m:\027[0;31m :::::::::::::\027[1;37md88888888888888\027[0;31m::::::::::::: \027[1;33m :\027[1;36m^^^\027[1;34m |\027[1;36m ^^^\027[1;33m:\027[1;33m", - "\027[1;33m:\027[0;31m |____|\027[1;33m_\027[1;37m|\027[0;31m=_\027[1;37m|\027[1;33m :\027[0;31m ::::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::::\027[1;33m :\027[1;34m|u|_\027[1;36m^^^^^\027[1;34m_|u|\027[1;33m:\027[1;33m", - "\027[1;33m:\027[1;37m ____\027[1;33m)\027[1;37m_\027[1;37m.\027[1;37m___\027[1;33m : \027[0;31m`::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::' \027[1;33m :\027[1;34m|_ u _ u _|\027[1;33m:\027[1;33m", - "\027[1;33m: \027[1;37m/\027[1;34m:::::;\027[1;37m|\027[1;34m _\027[1;37m)\027[1;33m:\027[1;34m &\027[0;31m`:::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37mP\027[0;31m::::\027[1;37m88\027[0;31m:::::::::'\027[1;34m& \027[1;33m:\027[1;34m |__|\027[1;37m;\027[1;34m|__| \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;37m `======'\027[1;34m |_|\027[1;33m: \027[1;34m+ \027[0;31m `:::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::::::\027[1;37m88\027[0;31m:::::::' \027[1;34m + \027[1;33m :\027[1;34m /_/ \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;34mUr-Computer-\027[1;33m :\027[1;34m&&&&&&& \027[0;31m ``:::::::::::::::::::::::''\027[1;34m &&&&&&&\027[1;33m:\027[0;31mH4x0r-HoM3- \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;34mis-MY-\027[0;31mSlave \027[1;33m : \027[0;31m ``::::::::::::::''\027[1;33m :\027[0;31m *\027[1;37m127\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m1\027[0;31m* \027[1;33m:\027[1;33m", - "\027[1;33m `~~~~~~~~~~~~' `~~~~~~~~~~~~'\027[1;33m", - "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;37m", - "\027[0;31m -======- \027[1;37m +\027[0;31mWARNING\027[1;37m+\027[1;33m\"\027[0;31mIllegal\027[1;37m_\027[0;31mNetwork\027[1;37m_\027[0;31mConnections\027[1;37m_\027[0;31mBeyond\027[1;37m_\027[0;31mLogin\027[1;33m\" \027[0;31m -======-\027[0;31m", - "\027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m| \027[1;34m -== \027[1;37m You are at the point of \027[0;31mNO RETURN \027[1;34m ==- \027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m|\027[0;31m", - "\027[0;31m |______|\027[0;31mYour Activities\027[1;37m:\027[1;33mWill\027[1;37m_\027[1;33mbe\027[1;37m_\027[1;33mKeylogged\027[1;37m_\027[1;33mand\027[1;37m_\027[1;33mTimestamped \027[1;34m\"\027[0;31mUSER_BEWARE\027[1;34m\"\027[0;31m|______|\027[0;31m", - "\027[0;31mHacking Sites\027[1;37m:\027[0;31m https\027[1;37m:\027[1;33m//\027[0;31msites\027[1;37m.\027[0;31mgoogle\027[1;37m.\027[0;31mcom\027[1;33m/\027[0;31msite\027[1;33m/\027[0;31mlazyboxx \027[1;35m*\027[0;31m http\027[1;37m:\027[1;33m//\027[0;31mwww\027[1;37m.\027[0;31mfreebsd\027[1;37m.\027[0;31morg \027[1;33m" - } - io.write("\027[1;1H") --reset cursor - for a = 7,11 do - for b = 1,24 do - if b == position then - nissue[a] = string.gsub(nissue[a],string.char(b),"\027[1;31m@\027[0;31m") - else - nissue[a] = string.gsub(nissue[a],string.char(b),":") - end - end - end - for a = 5,21 do - if bool then - nissue[a] = string.gsub(nissue[a],"&","\027[31;1m=\027[37;1m") - nissue[a] = string.gsub(nissue[a],"+","\027[31;1m|\027[37;1m") - else - nissue[a] = string.gsub(nissue[a],"&","=") - nissue[a] = string.gsub(nissue[a],"+","|") - end - end - for i = 1,28 do - print(nissue[i]) - end - bool = not bool -end -function changepos(num) - if position == 24 and num == 1 then - position = 1 - elseif position == 1 and num == -1 then - position = 24 - else - position = position + num - end -end -position = 14 -bool = true -dirs = {1,-1} -draw() -while true do - move = math.random(1,6) - dir = dirs[math.random(1,2)] - draw() - for m = 1,move do - changepos(dir) - draw() - os.execute("sleep 0.1") --Replace it with some other way to wait one tenth of a second if you're using Windows or don't have "sleep" - end --On the subject of Windows compatibility, Ansicon is a perfect way to make the Ansi escape codes work. -end diff --git a/Scripts/spam.sh b/Scripts/spam.sh deleted file mode 100755 index 7ff0db6..0000000 --- a/Scripts/spam.sh +++ /dev/null @@ -1,3 +0,0 @@ -xdotool type regfcrfcxraards -xdotool key KP_Enter -sh ~/Scripts/spam.sh diff --git a/Scripts/spooky.lua b/Scripts/spooky.lua deleted file mode 100755 index 3cf65cf..0000000 --- a/Scripts/spooky.lua +++ /dev/null @@ -1,79 +0,0 @@ ---Definitely not my best work, first script I've done in Lua 5.2 -function draw() - nissue = { - "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;33m", - ",~~~~~~~~~~~~~, \027[0;31m..:::::::::.. \027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", - "\027[1;33m:\027[1;32m .-======-,\027[1;33m : \027[0;31m ..:::\027[1;37maad8888888baa\027[0;31m:::.. \027[1;33m:\027[1;34mExploit-the \027[1;33m :\027[1;32m", - "\027[1;33m:\027[1;32m ||\027[0;31mH4CK3R\027[1;32m|# \027[1;33m : \027[0;31m .::::\027[1;37md:?88888888888?::8b\027[0;31m::::. \027[1;33m :\027[0;31m.-------,./|\027[1;33m :\027[1;32m", - "\027[1;33m:\027[1;32m ||______|| \027[1;33m :\027[1;34m&&&& \027[0;31m.:::\027[1;37md8888:?88888888??a888888b\027[0;31m:::. \027[1;34m &&&&\027[1;33m:\027[0;31m{ \027[1;33m VIRUS \027[0;31m /\027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m | ___ | \027[1;33m : \027[1;34m + \027[0;31m.:::\027[1;37md8888888a8888888aa8888888888b\027[0;31m:::. \027[1;34m + \027[1;33m :\027[0;31m \\\027[1;33m DROPPER\027[0;31m 7\027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m | |\027[1;35m[]\027[1;32m | | \027[1;33m : \027[1;34m &\027[0;31m::::\027[1;37mdP\027[0;31m\023\022\021\020\019\018\017\016\027[1;37m88888888888\027[0;31m\023\022\021\020\019\018\017\016\027[1;37mYb\027[0;31m::::\027[1;34m&&\027[1;33m :\027[0;31m ~. ,--.( \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m `-------' \027[1;33m : \027[0;31m::::\027[1;37mdP\027[0;31m\024:::::::\015\027[1;37mY888888888P\027[0;31m\024:::::::\015\027[1;37mYb\027[0;31m::::\027[1;33m : \027[0;31m '~ `;\027[1;33m :\027[1;33m", - "\027[1;33m:\027[0;31mReverse- \027[1;33m : \027[0;31m::::\027[1;37md8\027[0;31m\001:::::::::\014\027[1;37mY8888888P\027[0;31m\001:::::::::\014\027[1;37m8b\027[0;31m::::\027[1;33m :\027[1;34mNation's-\027[0;31mData\027[1;33m:\027[1;33m", - "\027[1;33m:\027[0;31mEngineering \027[1;33m: \027[0;31m.::::\027[1;37m88\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37mY88888P\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37m88\027[0;31m::::.\027[1;33m `~~~~~~~~~~~~'\027[1;33m", - "\027[1;33m `~~~~~~~~~~~~' \027[0;31m:::::\027[1;37mY8baaaaaaaaaa88P\027[0;31m:\027[1;37mT\027[0;31m:\027[1;37mY88aaaaaaaaaad8P\027[0;31m::::: \027[0;31m", - "\027[0;31m :::::::\027[1;37mY88888888888P\027[0;31m::\027[1;37m|\027[0;31m::\027[1;37mY88888888888P\027[0;31m::::::: \027[0;31m", - "\027[1;33m,~~~~~~~~~~~~~, \027[0;31m::::::::::::::::\027[1;37m888\027[0;31m:::\027[1;37m|\027[0;31m:::\027[1;37m888\027[0;31m::::::::::::::::\027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", - "\027[1;33m:\027[1;34m R00T-KITS \027[1;33m : \027[0;31m`:::::::::::::::\027[1;37m8888888888888b\027[0;31m::::::::::::::' \027[1;33m :\027[0;31mHoM3-$w33t\027[1;33m :\027[1;37m", - "\027[1;33m:\027[0;31m ____ \027[1;37m __ \027[1;33m : \027[0;31m:::::::::::::::\027[1;37m88888888888888\027[0;31m:::::::::::::: \027[1;33m :\027[1;34m (I\027[1;33m :\027[1;33m", - "\027[1;33m: \027[0;31m| |\027[1;37m |\027[0;31m-_\027[1;37m| \027[1;33m:\027[0;31m :::::::::::::\027[1;37md88888888888888\027[0;31m::::::::::::: \027[1;33m :\027[1;36m^^^\027[1;34m |\027[1;36m ^^^\027[1;33m:\027[1;33m", - "\027[1;33m:\027[0;31m |____|\027[1;33m_\027[1;37m|\027[0;31m=_\027[1;37m|\027[1;33m :\027[0;31m ::::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::::\027[1;33m :\027[1;34m|u|_\027[1;36m^^^^^\027[1;34m_|u|\027[1;33m:\027[1;33m", - "\027[1;33m:\027[1;37m ____\027[1;33m)\027[1;37m_\027[1;37m.\027[1;37m___\027[1;33m : \027[0;31m`::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::' \027[1;33m :\027[1;34m|_ u _ u _|\027[1;33m:\027[1;33m", - "\027[1;33m: \027[1;37m/\027[1;34m:::::;\027[1;37m|\027[1;34m _\027[1;37m)\027[1;33m:\027[1;34m &\027[0;31m`:::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37mP\027[0;31m::::\027[1;37m88\027[0;31m:::::::::'\027[1;34m& \027[1;33m:\027[1;34m |__|\027[1;37m;\027[1;34m|__| \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;37m `======'\027[1;34m |_|\027[1;33m: \027[1;34m+ \027[0;31m `:::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::::::\027[1;37m88\027[0;31m:::::::' \027[1;34m + \027[1;33m :\027[1;34m /_/ \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;34mUr-Computer-\027[1;33m :\027[1;34m&&&&&&& \027[0;31m ``:::::::::::::::::::::::''\027[1;34m &&&&&&&\027[1;33m:\027[0;31mH4x0r-HoM3- \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;34mis-MY-\027[0;31mSlave \027[1;33m : \027[0;31m ``::::::::::::::''\027[1;33m :\027[0;31m *\027[1;37m127\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m1\027[0;31m* \027[1;33m:\027[1;33m", - "\027[1;33m `~~~~~~~~~~~~' `~~~~~~~~~~~~'\027[1;33m", - "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;37m", - "\027[0;31m -======- \027[1;37m +\027[0;31mWARNING\027[1;37m+\027[1;33m\"\027[0;31mIllegal\027[1;37m_\027[0;31mNetwork\027[1;37m_\027[0;31mConnections\027[1;37m_\027[0;31mBeyond\027[1;37m_\027[0;31mLogin\027[1;33m\" \027[0;31m -======-\027[0;31m", - "\027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m| \027[1;34m -== \027[1;37m You are at the point of \027[0;31mNO RETURN \027[1;34m ==- \027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m|\027[0;31m", - "\027[0;31m |______|\027[0;31mYour Activities\027[1;37m:\027[1;33mWill\027[1;37m_\027[1;33mbe\027[1;37m_\027[1;33mKeylogged\027[1;37m_\027[1;33mand\027[1;37m_\027[1;33mTimestamped \027[1;34m\"\027[0;31mUSER_BEWARE\027[1;34m\"\027[0;31m|______|\027[0;31m", - "\027[0;31mHacking Sites\027[1;37m:\027[0;31m https\027[1;37m:\027[1;33m//\027[0;31msites\027[1;37m.\027[0;31mgoogle\027[1;37m.\027[0;31mcom\027[1;33m/\027[0;31msite\027[1;33m/\027[0;31mlazyboxx \027[1;35m*\027[0;31m http\027[1;37m:\027[1;33m//\027[0;31mwww\027[1;37m.\027[0;31mfreebsd\027[1;37m.\027[0;31morg \027[1;33m" - } - io.write("\027[1;1H") --reset cursor - for a = 7,11 do - for b = 1,24 do - if b == position then - nissue[a] = string.gsub(nissue[a],string.char(b),"\027[1;31m@\027[0;31m") - else - nissue[a] = string.gsub(nissue[a],string.char(b),":") - end - end - end - for a = 5,21 do - if bool then - nissue[a] = string.gsub(nissue[a],"&","\027[31;1m=\027[37;1m") - nissue[a] = string.gsub(nissue[a],"+","\027[31;1m|\027[37;1m") - else - nissue[a] = string.gsub(nissue[a],"&","=") - nissue[a] = string.gsub(nissue[a],"+","|") - end - end - for i = 1,28 do - print(nissue[i]) - end - bool = not bool -end -function changepos(num) - if position == 24 and num == 1 then - position = 1 - elseif position == 1 and num == -1 then - position = 24 - else - position = position + num - end -end -position = 14 -bool = true -dirs = {1,-1} -draw() -while true do - move = math.random(1,6) - dir = dirs[math.random(1,2)] - draw() - for m = 1,move do - changepos(dir) - draw() - os.execute("sleep 0.1") --Replace it with some other way to wait one tenth of a second if you're using Windows or don't have "sleep" - end --On the subject of Windows compatibility, Ansicon is a perfect way to make the Ansi escape codes work. -end diff --git a/Scripts/start2bwm b/Scripts/start2bwm deleted file mode 100755 index e35fd21..0000000 --- a/Scripts/start2bwm +++ /dev/null @@ -1,9 +0,0 @@ -compton --config /home/julian/.config/compton & - -xsetroot -cursor_name arrow -fg white -bg black & - -feh --bg-scale /home/julian/Billeder/Wallpapers/B* & - -export _JAVA_AWT_WM_NONREPARENTING=1 & - -2bwm diff --git a/Scripts/virtualWifi.conf b/Scripts/virtualWifi.conf deleted file mode 100755 index b1e04e6..0000000 --- a/Scripts/virtualWifi.conf +++ /dev/null @@ -1,4 +0,0 @@ -interface=wlp2s0 -driver=nl80211 -ssid=julian -channel=1 diff --git a/Scripts/volume-change.py b/Scripts/volume-change.py deleted file mode 100755 index d279ce6..0000000 --- a/Scripts/volume-change.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/python3 -# By: Garrett Holbrook -# Date: August 27th, 2015 -# -# Usage: Changes the system volume through amixer and then -# makes a dbus method call to the gnome shell to get the -# gnome volume OSD (On Screen Display) -# -# Requires: python3 and python-dbus (on Arch) or python3-dbus -# (on Debian) or equivalent -# -# Git link: https://github.com/garrett92895/gnome-volume-step-osd -import dbus -import sys -from subprocess import getoutput - -# Getting the dbus interface to communicate with gnome's OSD -session_bus = dbus.SessionBus() -proxy = session_bus.get_object('org.gnome.Shell', '/org/gnome/Shell') -interface = dbus.Interface(proxy, 'org.gnome.Shell') - -# Interpreting how to affect the volume and by what percentage and -# then creating a bash command that will reduce the stdout to the -# new percentage volume. Vol = volume -vol_action = sys.argv[1] -vol_percent_change = sys.argv[2] - -command = 'amixer -D pulse sset Master ' + vol_percent_change + '%' - -if vol_action == 'increase': - command += '+ > /dev/null && amixer -D pulse set Master unmute' -else: - command += '-' - -command += ' | grep -oP "\[\d*%\]" | head -n 1 | sed s:[][%]::g' - -current_vol_percentage = int(getoutput(command)) -# If it's 0 then add mute flag (tigger sub-action, keyboard ligth for example) -if current_vol_percentage == 0: - getoutput('amixer -D pulse set Master mute'); - -# Determining which logo to use based off of the percentage -logo = 'audio-volume-' -if current_vol_percentage == 0: - logo += 'muted' -elif current_vol_percentage < 30: - logo += 'low' -elif current_vol_percentage < 70: - logo += 'medium' -else: - logo += 'high' -logo += '-symbolic' - -# Make the dbus method call -interface.ShowOSD({"icon":logo, "level":current_vol_percentage}) - diff --git a/Scripts/whileUdDown.sh b/Scripts/whileUdDown.sh deleted file mode 100644 index 2ca8f07..0000000 --- a/Scripts/whileUdDown.sh +++ /dev/null @@ -1,12 +0,0 @@ -C=1 -RED=$(curl -Ls -o /dev/null -w %{url_effective} http://uddataplus.dk) -echo "$C $RED" -COM="https://www.uddata.dk/uddataplus-nede/" -while [ "$RED" == "$COM" ] -do - C=$((C+1)) - RED=$(curl -Ls -o /dev/null -w %{url_effective} http://uddataplus.dk) - echo "$C $RED" - sleep 30 -done -notify-send 'Yo!' 'Uddata virker måske igen' --icon=dialog-information diff --git a/Scripts/wiki2P.py b/Scripts/wiki2P.py deleted file mode 100644 index 316c7e9..0000000 --- a/Scripts/wiki2P.py +++ /dev/null @@ -1,46 +0,0 @@ -import requests, bs4, re - - - - -def calculate(site): - - print("Downloading wikipedia site: " + site) - - - res = requests.get("https://en.wikipedia.org" + site) - - print("Download completed analysing") - - soup = bs4.BeautifulSoup(res.text, "html.parser") - - - element = soup.find("div", {"class": "mw-content-ltr"}).find("p") - - - #print(element) - - elements = element.find_all("a") - - - - - pattern = re.compile("\/wiki\/(?!File|Help).*") - - results = "" - - - for i in elements: - if pattern.match(i["href"]) : - results = i["href"] - break - - return results - - - -siter = "/wiki/Linux" - -while siter is not "philosophy": - input(siter) - siter = calculate(siter) diff --git a/Scripts/wiki2P.py.save b/Scripts/wiki2P.py.save deleted file mode 100755 index d9677e7..0000000 --- a/Scripts/wiki2P.py.save +++ /dev/null @@ -1,16 +0,0 @@ -import requests, bs4 - -#res = requests.get("https://en.wikipedia.org/wiki/Special:Random") -res = requests.get("https://en.wikipedia.org/wiki/Study") - - -soup = bs4.BeautifulSoup(res.text) - - -element = soup.select("#mw-content-text a[title]") - -print(element) - - -for i in element: - if(i[title]) |