diff options
author | Julian <julianteule@gmail.com> | 2017-01-24 18:46:34 +0100 |
---|---|---|
committer | Julian <julianteule@gmail.com> | 2017-01-24 18:46:34 +0100 |
commit | c8eb10a6e5a9be31ac703cf9efce6f40817760da (patch) | |
tree | 62bc8a0a46e3f908ef840d867833276ee56416a2 | |
parent | 076f4801a51216d1d5f4aec9ccfbcf77382fea87 (diff) |
Added more scripts
-rwxr-xr-x | Scripts/#wiki2P.py# | 26 | ||||
-rw-r--r-- | Scripts/.vscode/launch.json | 169 | ||||
-rw-r--r-- | Scripts/.vscode/settings.json | 3 | ||||
-rw-r--r-- | Scripts/InstallPpaPackage.sh | 3 | ||||
-rw-r--r-- | Scripts/JUUPPA.py | 6 | ||||
-rwxr-xr-x | Scripts/Rex2T1000.py | 28 | ||||
-rwxr-xr-x | Scripts/Screenshotmania.sh | 7 | ||||
-rwxr-xr-x | Scripts/__pycache__/getch.cpython-35.pyc | bin | 0 -> 1832 bytes | |||
-rw-r--r-- | Scripts/autoStart.sh | 3 | ||||
-rwxr-xr-x | Scripts/cleanup_scans.sh | 222 | ||||
-rwxr-xr-x | Scripts/getch.py | 38 | ||||
-rwxr-xr-x | Scripts/pacman | 35 | ||||
-rwxr-xr-x | Scripts/reload2bwm.sh | 4 | ||||
-rw-r--r-- | Scripts/setUpeveryThing | 49 | ||||
-rwxr-xr-x | Scripts/spam.sh | 3 | ||||
-rwxr-xr-x | Scripts/spooky.lua | 79 | ||||
-rwxr-xr-x | Scripts/start2bwm | 7 | ||||
-rwxr-xr-x | Scripts/wiki2P.py.save | 16 |
18 files changed, 695 insertions, 3 deletions
diff --git a/Scripts/#wiki2P.py# b/Scripts/#wiki2P.py# new file mode 100755 index 0000000..2fb1a10 --- /dev/null +++ b/Scripts/#wiki2P.py# @@ -0,0 +1,26 @@ +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 new file mode 100644 index 0000000..fff7d3c --- /dev/null +++ b/Scripts/.vscode/launch.json @@ -0,0 +1,169 @@ +{ + "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 new file mode 100644 index 0000000..fe71598 --- /dev/null +++ b/Scripts/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.linting.pylintEnabled": false +}
\ No newline at end of file diff --git a/Scripts/InstallPpaPackage.sh b/Scripts/InstallPpaPackage.sh new file mode 100644 index 0000000..e625c4e --- /dev/null +++ b/Scripts/InstallPpaPackage.sh @@ -0,0 +1,3 @@ +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 index cc70ff5..75abc0c 100644 --- a/Scripts/JUUPPA.py +++ b/Scripts/JUUPPA.py @@ -46,7 +46,7 @@ if element != None: print("Updating packages") os.system("sudo apt update") - print("Installing", "grub-customizer") - os.system("sudo apt install " + "grub-customizer") + 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])
\ No newline at end of file + print("No results where found for", sys.argv[1]) diff --git a/Scripts/Rex2T1000.py b/Scripts/Rex2T1000.py new file mode 100755 index 0000000..87e4204 --- /dev/null +++ b/Scripts/Rex2T1000.py @@ -0,0 +1,28 @@ +#!/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/Screenshotmania.sh b/Scripts/Screenshotmania.sh new file mode 100755 index 0000000..d2d35bc --- /dev/null +++ b/Scripts/Screenshotmania.sh @@ -0,0 +1,7 @@ +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 differnew file mode 100755 index 0000000..4aabcf7 --- /dev/null +++ b/Scripts/__pycache__/getch.cpython-35.pyc diff --git a/Scripts/autoStart.sh b/Scripts/autoStart.sh new file mode 100644 index 0000000..3fecfac --- /dev/null +++ b/Scripts/autoStart.sh @@ -0,0 +1,3 @@ +xcape -e 'Super_L=Super_L|w' +sh /home/julian/Conky/start.sh + diff --git a/Scripts/cleanup_scans.sh b/Scripts/cleanup_scans.sh new file mode 100755 index 0000000..42fd127 --- /dev/null +++ b/Scripts/cleanup_scans.sh @@ -0,0 +1,222 @@ +#!/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 new file mode 100755 index 0000000..be6203f --- /dev/null +++ b/Scripts/getch.py @@ -0,0 +1,38 @@ +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/pacman b/Scripts/pacman new file mode 100755 index 0000000..b3f4aa0 --- /dev/null +++ b/Scripts/pacman @@ -0,0 +1,35 @@ +#!/bin/bash + +#Name: pacman.sh +#This is a pacman script for archlinux users on ubuntu +#Autor: Stjepan Horvat aka schef +#Date: 2011-05-13 + +USAGE="Usage: Arch Linux like pacman." + +if [ $# -eq 0 ]; then + echo $USAGE + exit +elif [ $# -gt 2 ];then + echo $USAGE + exit + +elif [ $1 = -Ss ]; then + apt search $2 + +elif [ $1 = -S ]; then + apt install $2 + +elif [ $1 = -Sy ]; then + apt update + +elif [ $1 = -Su ]; then + apt upgrade + +elif [ $1 = -Syu ]; then + apt update && apt upgrade + +else + echo $USAGE + exit +fi diff --git a/Scripts/reload2bwm.sh b/Scripts/reload2bwm.sh new file mode 100755 index 0000000..6f9756f --- /dev/null +++ b/Scripts/reload2bwm.sh @@ -0,0 +1,4 @@ +cd /home/julian/Software/2bwm +rm *.tar +sudo pacman --noconfirm -R 2bwm +makepkg -esi diff --git a/Scripts/setUpeveryThing b/Scripts/setUpeveryThing new file mode 100644 index 0000000..ddf6c96 --- /dev/null +++ b/Scripts/setUpeveryThing @@ -0,0 +1,49 @@ +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 emacs-nox +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)" + + +git clone --bare https://bitbucket.org/durdn/cfg.git $HOME/.cfg +function config { + /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ +} +mkdir -p .config-backup +config checkout +if [ $? = 0 ]; then + echo "Checked out config."; + else + echo "Backing up pre-existing dot files."; + config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{} +fi; +config checkout +config config status.showUntrackedFiles no + +sudo apt -y install terminator + +sudo apt -y install texlive + +sudo apt -y install texlive-lang-european + +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 + diff --git a/Scripts/spam.sh b/Scripts/spam.sh new file mode 100755 index 0000000..7ff0db6 --- /dev/null +++ b/Scripts/spam.sh @@ -0,0 +1,3 @@ +xdotool type regfcrfcxraards +xdotool key KP_Enter +sh ~/Scripts/spam.sh diff --git a/Scripts/spooky.lua b/Scripts/spooky.lua new file mode 100755 index 0000000..3cf65cf --- /dev/null +++ b/Scripts/spooky.lua @@ -0,0 +1,79 @@ +--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 new file mode 100755 index 0000000..c3f5cfc --- /dev/null +++ b/Scripts/start2bwm @@ -0,0 +1,7 @@ +compton --config /home/julian/.config/compton & + +xsetroot -cursor_name arrow -fg white -bg black + +feh --bg-scale /home/julian/Billeder/Wallpapers/m3* & + +2bwm diff --git a/Scripts/wiki2P.py.save b/Scripts/wiki2P.py.save new file mode 100755 index 0000000..d9677e7 --- /dev/null +++ b/Scripts/wiki2P.py.save @@ -0,0 +1,16 @@ +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]) |