diff options
author | Julian <Julianteule@gmail.com> | 2017-02-01 10:36:42 +0100 |
---|---|---|
committer | Julian <Julianteule@gmail.com> | 2017-02-01 10:36:42 +0100 |
commit | 2eb28948556f464980cf4296c09d044c21bc84de (patch) | |
tree | a71c8976591986341020b0bc678057b584240047 | |
parent | 076f4801a51216d1d5f4aec9ccfbcf77382fea87 (diff) |
cool
-rw-r--r-- | Scripts/2spooky.lua | 79 | ||||
-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 | |||
-rwxr-xr-x | Scripts/cleanup_scans.sh | 222 | ||||
-rwxr-xr-x | Scripts/getch.py | 38 | ||||
-rw-r--r-- | Scripts/installSouceCodePro.sh | 23 | ||||
-rwxr-xr-x | Scripts/reload2bwm.sh | 4 | ||||
-rwxr-xr-x | Scripts/rofi | 59 | ||||
-rwxr-xr-x | Scripts/skoopy | 79 | ||||
-rwxr-xr-x | Scripts/spam.sh | 3 | ||||
-rwxr-xr-x | Scripts/start2bwm | 9 | ||||
-rwxr-xr-x | Scripts/virtualWifi.conf | 4 | ||||
-rw-r--r-- | Scripts/wiki2P.py | 47 |
15 files changed, 592 insertions, 16 deletions
diff --git a/Scripts/2spooky.lua b/Scripts/2spooky.lua new file mode 100644 index 0000000..a0ebc5d --- /dev/null +++ b/Scripts/2spooky.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/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/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/installSouceCodePro.sh b/Scripts/installSouceCodePro.sh new file mode 100644 index 0000000..c22908f --- /dev/null +++ b/Scripts/installSouceCodePro.sh @@ -0,0 +1,23 @@ +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/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/rofi b/Scripts/rofi new file mode 100755 index 0000000..b6423f4 --- /dev/null +++ b/Scripts/rofi @@ -0,0 +1,59 @@ +# --- 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/skoopy b/Scripts/skoopy new file mode 100755 index 0000000..3cf65cf --- /dev/null +++ b/Scripts/skoopy @@ -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/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/start2bwm b/Scripts/start2bwm new file mode 100755 index 0000000..e35fd21 --- /dev/null +++ b/Scripts/start2bwm @@ -0,0 +1,9 @@ +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 new file mode 100755 index 0000000..b1e04e6 --- /dev/null +++ b/Scripts/virtualWifi.conf @@ -0,0 +1,4 @@ +interface=wlp2s0 +driver=nl80211 +ssid=julian +channel=1 diff --git a/Scripts/wiki2P.py b/Scripts/wiki2P.py index 84f4d82..316c7e9 100644 --- a/Scripts/wiki2P.py +++ b/Scripts/wiki2P.py @@ -1,25 +1,46 @@ 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") +def calculate(site): -element = soup.select("#mw-content-text a[title]") + print("Downloading wikipedia site: " + site) -pattern = re.compile("^\/.*") + res = requests.get("https://en.wikipedia.org" + site) + print("Download completed analysing") -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 + 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) |