From 3e00fc23117a6fbb91d5ca09602f8006c3f2365a Mon Sep 17 00:00:00 2001 From: Julian Teu Date: Tue, 10 Apr 2018 18:07:28 +0200 Subject: Cleanup --- .Xresources | 39 --- .bashrc | 14 -- .colors/5 | 24 -- .colors/blaquemagick.Xcolors | 32 --- .colors/colory | 24 -- .colors/contrast_need | 37 --- .colors/molokai | 30 --- .colors/solarized_dark | 57 ----- .colors/solarized_light | 57 ----- .colors/sourcerer.Xcolors | 45 ---- .colors/sourcerer_mod | 45 ---- .config/2bwm.config.h | 212 ----------------- .config/htop/htoprc | 12 +- .config/mpd/mpd.conf | 42 ---- .config/terminator/config | 1 + .emacs | 241 ------------------- .i3/config | 174 -------------- .spacemacs | 396 ------------------------------- Conky/conkymain | 79 ------ Conky/getInternalIp.sh | 3 - Conky/spotify-nowplaying-length | 3 - Conky/spotify-nowplaying.sh | 3 - Conky/start.sh | 5 - Scripts/#wiki2P.py# | 26 -- Scripts/.vscode/launch.json | 169 ------------- Scripts/.vscode/settings.json | 3 - Scripts/2spooky.lua | 79 ------ Scripts/InstallPpaPackage.sh | 3 - Scripts/JUUPPA.py | 52 ---- Scripts/Rex2T1000.py | 28 --- Scripts/Scanner.py | 31 --- Scripts/Screenshotmania.sh | 7 - Scripts/__pycache__/getch.cpython-35.pyc | Bin 1832 -> 0 bytes Scripts/autoStart.sh | 4 - Scripts/checkIfActive.sh | 5 - Scripts/cleanup_scans.sh | 222 ----------------- Scripts/getch.py | 38 --- Scripts/installSouceCodePro.sh | 23 -- Scripts/makeGif.py | 52 ---- Scripts/mayHem.py | 30 --- Scripts/overleafUp.sh | 4 - Scripts/pythonSocket.py | 23 -- Scripts/reload2bwm.sh | 4 - Scripts/rofi | 59 ----- Scripts/setUpeveryThing | 41 ---- Scripts/skoopy | 79 ------ Scripts/spam.sh | 3 - Scripts/spooky.lua | 79 ------ Scripts/start2bwm | 9 - Scripts/virtualWifi.conf | 4 - Scripts/volume-change.py | 56 ----- Scripts/whileUdDown.sh | 12 - Scripts/wiki2P.py | 46 ---- Scripts/wiki2P.py.save | 16 -- Software/2bwm | 1 - 55 files changed, 7 insertions(+), 2776 deletions(-) delete mode 100644 .Xresources delete mode 100644 .bashrc delete mode 100644 .colors/5 delete mode 100644 .colors/blaquemagick.Xcolors delete mode 100644 .colors/colory delete mode 100644 .colors/contrast_need delete mode 100644 .colors/molokai delete mode 100644 .colors/solarized_dark delete mode 100644 .colors/solarized_light delete mode 100644 .colors/sourcerer.Xcolors delete mode 100644 .colors/sourcerer_mod delete mode 100644 .config/2bwm.config.h delete mode 100644 .config/mpd/mpd.conf delete mode 100644 .emacs delete mode 100644 .i3/config delete mode 100644 .spacemacs delete mode 100644 Conky/conkymain delete mode 100755 Conky/getInternalIp.sh delete mode 100755 Conky/spotify-nowplaying-length delete mode 100755 Conky/spotify-nowplaying.sh delete mode 100644 Conky/start.sh delete mode 100755 Scripts/#wiki2P.py# delete mode 100644 Scripts/.vscode/launch.json delete mode 100644 Scripts/.vscode/settings.json delete mode 100644 Scripts/2spooky.lua delete mode 100644 Scripts/InstallPpaPackage.sh delete mode 100644 Scripts/JUUPPA.py delete mode 100755 Scripts/Rex2T1000.py delete mode 100755 Scripts/Scanner.py delete mode 100755 Scripts/Screenshotmania.sh delete mode 100755 Scripts/__pycache__/getch.cpython-35.pyc delete mode 100644 Scripts/autoStart.sh delete mode 100644 Scripts/checkIfActive.sh delete mode 100755 Scripts/cleanup_scans.sh delete mode 100755 Scripts/getch.py delete mode 100644 Scripts/installSouceCodePro.sh delete mode 100755 Scripts/makeGif.py delete mode 100644 Scripts/mayHem.py delete mode 100644 Scripts/overleafUp.sh delete mode 100644 Scripts/pythonSocket.py delete mode 100755 Scripts/reload2bwm.sh delete mode 100755 Scripts/rofi delete mode 100644 Scripts/setUpeveryThing delete mode 100755 Scripts/skoopy delete mode 100755 Scripts/spam.sh delete mode 100755 Scripts/spooky.lua delete mode 100755 Scripts/start2bwm delete mode 100755 Scripts/virtualWifi.conf delete mode 100755 Scripts/volume-change.py delete mode 100644 Scripts/whileUdDown.sh delete mode 100644 Scripts/wiki2P.py delete mode 100755 Scripts/wiki2P.py.save delete mode 160000 Software/2bwm diff --git a/.Xresources b/.Xresources deleted file mode 100644 index f8364ec..0000000 --- a/.Xresources +++ /dev/null @@ -1,39 +0,0 @@ -!#include ".colors/sourcerer_mod" -!#include ".colors/self_light" -#include ".colors/contrast_need" -!#include ".colors/colory" -!#include ".colors/google" -URxvt*termName: rxvt-unicode - -URxvt*cursorBlink: true - -URxvt.scrollBar: false - -!URxvt*font: xft:Droid\ Sans\ Mono:regular:size=9:antialias=true:hinting=true -URxvt*font: xft:terminus:regular:size=10:antialias=true:hinting=true -URxvt*font: xft:Terminess Powerline:size=10 - -URxvt.perl-ext-common: default,matcher,clipboard,keyboard-select,url-select -URxvt.url-launcher: /usr/bin/surf -URxvt.urlButton: 1 -URxvt.underlineURLs: True - -URxvt.clipboard.autocopy: true -URxvt.clipboard.copycmd: xclip -in -selection clipboard -URxvt.clipboard.pastecmd: xclip -o -selection clipboard - -! Keybindings -URxvt.keysym.Mod4-c: perl:clipboard:copy -URxvt.keysym.Mod4-v: perl:clipboard:paste -URxvt.keysym.Mod4-C-v: perl:clipboard:paste_escaped -URxvt.keysym.M-c: perl:clipboard:copy -URxvt.keysym.M-v: perl:clipboard:paste -URxvt.keysym.M-C-v: perl:clipboard:paste_escaped -URxvt.keysym.M-Escape: perl:keyboard-select:activate -URxvt.keysym.C-Escape: perl:keyboard-select:activate -URxvt.keysym.M-u: perl:url-select:select_next -URxvt.url-select.launcher: surf -URxvt.url-select.video: mpv -URxvt.url-select.button: 1 - -! Mine farver diff --git a/.bashrc b/.bashrc deleted file mode 100644 index 305e787..0000000 --- a/.bashrc +++ /dev/null @@ -1,14 +0,0 @@ -# -# ~/.bashrc -# - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -alias ls='ls --color=auto' -PS1='[\u@\h \W]\$ ' -# >>>>BEGIN ADDED BY CNCHI INSTALLER<<<< # -BROWSER=/usr/bin/chromium -EDITOR=/usr/bin/nano -# >>>>>END ADDED BY CNCHI INSTALLER<<<<< # -#Test diff --git a/.colors/5 b/.colors/5 deleted file mode 100644 index ff0b4ad..0000000 --- a/.colors/5 +++ /dev/null @@ -1,24 +0,0 @@ - -! special -*.foreground: #FFFFFF -*.background: #1e1e1e -*.cursorColor: #a7a7a7 - - -! colors -*color0: #212121 -*color1: #2b2b2b -*color2: #b1b1b1 -*color3: #b1b1b1 -*color4: #4c8dcc -*color5: #add8e6 -*color6: #e0e0e0 -*color7: #ffffff -URxvt*color8: #cc6666 -URxvt*color9: #de935f -URxvt*color10: #f0c674 -URxvt*color11: #b5bd68 -URxvt*color12: #8abeb7 -URxvt*color13: #81a2be -URxvt*color14: #b294bb -URxvt*color15: #a3685a diff --git a/.colors/blaquemagick.Xcolors b/.colors/blaquemagick.Xcolors deleted file mode 100644 index a894478..0000000 --- a/.colors/blaquemagick.Xcolors +++ /dev/null @@ -1,32 +0,0 @@ -! █▓▒░ blaque magick -*.foreground: #c2c2b0 -*.background: #121212 -*.cursorColor: #c2c2b0 -! black -*.color0: #121212 -*.color8: #121212 -! red -*.color1: #5F8787 -*.color9: #5F8787 -! green -*.color2: #444444 -*.color10: #444444 -! yellow -*.color3: #666666 -*.color11: #666666 -! blue -*.color4: #888888 -*.color12: #888888 -! magenta -*.color5: #999999 -*.color13: #999999 -! cyan -*.color6: #aaaaaa -*.color14: #aaaaaa -! white -*.color7: #c1c1c1 -*.color15: #c1c1c1 -! others -URxvt.colorIT: #5F8787 -URxvt.colorBD: #d3d3d3 -URxvt.colorUL: #5F8787 diff --git a/.colors/colory b/.colors/colory deleted file mode 100644 index c7a6d22..0000000 --- a/.colors/colory +++ /dev/null @@ -1,24 +0,0 @@ - -! special -*.foreground: #FFFFFF -*.background: #1B1B1B -*.cursorColor: #c5c8c6 - - -! colors -*.color0: #212121 -*.color1: #2b2b2b -*.color2: #b1b1b1 -*.color3: #b1b1b1 -*.color4: #4c8dcc -*.color5: #add8e6 -*.color6: #e0e0e0 -*.color7: #ffffff -*.color8: #cc6666 -*.color9: #de935f -*.color10: #f0c674 -*.color11: #b5bd68 -*.color12: #8abeb7 -*.color13: #81a2be -*.color14: #b294bb -*.color15: #a3685a diff --git a/.colors/contrast_need b/.colors/contrast_need deleted file mode 100644 index ae7dd6a..0000000 --- a/.colors/contrast_need +++ /dev/null @@ -1,37 +0,0 @@ - -! special -*.foreground: #FFFFFF -*.background: #1e1e1e -*.cursorColor: #a7a7a7 - -! black -*.color0: #050505 -*.color8: #1c1b19 - -! red -*.color1: #B81109 -*.color9: #E8160C - -! green -*.color2: #1CB228 -*.color10: #24E534 - -! yellow -*.color3: #BAA407 -*.color11: #FCDF09 - -! blue -*.color4: #2C5FAD -*.color12: #408AFC - -! magenta -*.color5: #e35682 -*.color13: #e02c6d - -! cyan -*.color6: #16a085 -*.color14: #1abc9c - -! white -*.color7: #FFFFFF -*.color15: #EBE3E3 diff --git a/.colors/molokai b/.colors/molokai deleted file mode 100644 index 96b46e1..0000000 --- a/.colors/molokai +++ /dev/null @@ -1,30 +0,0 @@ -*background : #101010 -*foreground : #FFFFFF - -! black -*color0 : #1b1d1e -*color8 : #505354 -! red -*color1 : #f92672 -*color9 : #B52E2F -! green -*color2 : #82b414 -*color10 : #b6e354 -! yellow -*color3 : #fd971f -*color11 : #95C32E -! blue -*color4 : #56c2d6 -*color12 : #E5BB8B -! magenta -*color5 : #8c54fe -*color13 : #DC8E3A -! cyan -*color6 : #465457 -*color14 : #899ca1 -! white -*color7 : #ccccc6 -*color15 : #f8f8f2 - -*colorUL : #82b414 -*cursorColor : #82b414 diff --git a/.colors/solarized_dark b/.colors/solarized_dark deleted file mode 100644 index 5b9d961..0000000 --- a/.colors/solarized_dark +++ /dev/null @@ -1,57 +0,0 @@ - -#define S_base03 #002b36 -#define S_base02 #073642 -#define S_base01 #586e75 -#define S_base00 #657b83 -#define S_base0 #839496 -#define S_base1 #93a1a1 -#define S_base2 #eee8d5 -#define S_base3 #fdf6e3 -#define S_yellow #b58900 -#define S_orange #cb4b16 -#define S_red #dc322f -#define S_magenta #d33682 -#define S_violet #6c71c4 -#define S_blue #268bd2 -#define S_cyan #2aa198 -#define S_green #859900 - -*background: S_base03 -*foreground: S_base00 -*fading: 40 -*fadeColor: S_base03 -*cursorColor: S_base1 -*pointerColorBackground:S_base01 -*pointerColorForeground:S_base1 - -! black dark/light -*color0: S_base02 -*color8: S_base03 - -! red dark/light -*color1: S_red -*color9: S_orange - -! green dark/light -*color2: S_green -*color10: S_base01 - -! yellow dark/light -*color3: S_yellow -*color11: S_base00 - -! blue dark/light -*color4: S_blue -*color12: S_base0 - -! magenta dark/light -*color5: S_magenta -*color13: S_violet - -! cyan dark/light -*color6: S_cyan -*color14: S_base1 - -! white dark/light -*color7: S_base2 -*color15: S_base3 diff --git a/.colors/solarized_light b/.colors/solarized_light deleted file mode 100644 index ef0890e..0000000 --- a/.colors/solarized_light +++ /dev/null @@ -1,57 +0,0 @@ -#define S_base03 #002b36 -#define S_base02 #073642 -#define S_base01 #586e75 -#define S_base00 #657b83 -#define S_base0 #839496 -#define S_base1 #93a1a1 -#define S_base2 #eee8d5 -#define S_base3 #fdf6e3 - -*background: S_base3 -*foreground: S_base00 -*fadeColor: S_base3 -*cursorColor: S_base01 -*pointerColorBackground:S_base1 -*pointerColorForeground:S_base01 - -#define S_yellow #b58900 -#define S_orange #cb4b16 -#define S_red #dc322f -#define S_magenta #d33682 -#define S_violet #6c71c4 -#define S_blue #268bd2 -#define S_cyan #2aa198 -#define S_green #859900 - -!! black dark/light -*color0: S_base02 -*color8: S_base03 - -!! red dark/light -*color1: S_red -*color9: S_orange - -!! green dark/light -*color2: S_green -*color10: S_base01 - -!! yellow dark/light -*color3: S_yellow -*color11: S_base00 - -!! blue dark/light -*color4: S_blue -*color12: S_base0 - -!! magenta dark/light -*color5: S_magenta -*color13: S_violet - -!! cyan dark/light -*color6: S_cyan -*color14: S_base1 - -!! white dark/light -*color7: S_base2 -*color15: S_base3 - diff --git a/.colors/sourcerer.Xcolors b/.colors/sourcerer.Xcolors deleted file mode 100644 index 9dfb7f8..0000000 --- a/.colors/sourcerer.Xcolors +++ /dev/null @@ -1,45 +0,0 @@ -! ██████ ██████ ██ ██ ██████ █████ █████ ██████ █████ ██████ -! ██░░░░ ██░░░░██░██ ░██░░██░░████░░░██ ██░░░██░░██░░████░░░██░░██░░██ -! ░░█████ ░██ ░██░██ ░██ ░██ ░░░██ ░░ ░███████ ░██ ░░░███████ ░██ ░░ -! ░░░░░██░██ ░██░██ ░██ ░██ ░██ ██░██░░░░ ░██ ░██░░░░ ░██ -! ██████ ░░██████ ░░██████░███ ░░█████ ░░██████░███ ░░██████░███ -! ░░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░░ ░░░ ░░░░░░ ░░░ -! r e a d c o d e l i k e a w i z a r d -! -! sourcerer by xero harrison (http://xero.nu) -! ├─ based on sorcerer by Jeet Sukumaran (http://jeetworks.org) -! └─ based on mustang by Henrique C. Alves (hcarvalhoalves@gmail.com) - -! █▓▒░ scorcerer colors -*.foreground: #c2c2b0 -*.background: #222222 -*.cursorColor: #c2c2b0 -! black -*.color0: #222222 -*.color8: #272822 -! red -*.color1: #aa4450 -*.color9: #ff6a6a -! green -*.color2: #719611 -*.color10: #b1d631 -! yellow -!*.color3: #cc8800 -*.color3: #ff9800 -*.color11: #87875f -! blue -*.color4: #6688aa -*.color12: #90b0d1 -! magenta -*.color5: #8f6f8f -*.color13: #8181a6 -! cyan -*.color6: #528b8b -*.color14: #87ceeb -! white -*.color7: #d3d3d3 -*.color15: #c1cdc1 -! others -URxvt.colorIT: #719611 -URxvt.colorBD: #d3d3d3 -URxvt.colorUL: #528b8b diff --git a/.colors/sourcerer_mod b/.colors/sourcerer_mod deleted file mode 100644 index ccc4cf4..0000000 --- a/.colors/sourcerer_mod +++ /dev/null @@ -1,45 +0,0 @@ -! ██████ ██████ ██ ██ ██████ █████ █████ ██████ █████ ██████ -! ██░░░░ ██░░░░██░██ ░██░░██░░████░░░██ ██░░░██░░██░░████░░░██░░██░░██ -! ░░█████ ░██ ░██░██ ░██ ░██ ░░░██ ░░ ░███████ ░██ ░░░███████ ░██ ░░ -! ░░░░░██░██ ░██░██ ░██ ░██ ░██ ██░██░░░░ ░██ ░██░░░░ ░██ -! ██████ ░░██████ ░░██████░███ ░░█████ ░░██████░███ ░░██████░███ -! ░░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░░ ░░░ ░░░░░░ ░░░ -! r e a d c o d e l i k e a w i z a r d -! -! sourcerer by xero harrison (http://xero.nu) -! ├─ based on sorcerer by Jeet Sukumaran (http://jeetworks.org) -! └─ based on mustang by Henrique C. Alves (hcarvalhoalves@gmail.com) - -! █▓▒░ scorcerer colors -*.foreground: #c2c2b0 -*.background: #151515 -*.cursorColor: #c2c2b0 -! black -*.color0: #151515 -*.color8: #272822 -! red -*.color1: #aa4450 -*.color9: #ff6a6a -! green -*.color2: #719611 -*.color10: #b1d631 -! yellow -!*.color3: #cc8800 -*.color3: #ff9800 -*.color11: #87875f -! blue -*.color4: #6688aa -*.color12: #90b0d1 -! magenta -*.color5: #8f6f8f -*.color13: #8181a6 -! cyan -*.color6: #528b8b -*.color14: #87ceeb -! white -*.color7: #d3d3d3 -*.color15: #c1cdc1 -! others -URxvt.colorIT: #719611 -URxvt.colorBD: #d3d3d3 -URxvt.colorUL: #528b8b diff --git a/.config/2bwm.config.h b/.config/2bwm.config.h deleted file mode 100644 index 150b226..0000000 --- a/.config/2bwm.config.h +++ /dev/null @@ -1,212 +0,0 @@ -///---User configurable stuff---/// -///---Modifiers---/// -#define MOD XCB_MOD_MASK_4 /* Super/Windows key or check xmodmap(1) with -pm*/ -///--Speed---/// -/* Move this many pixels when moving or resizing with keyboard unless the window has hints saying otherwise. - *0)move step slow 1)move step fast - *2)mouse slow 3)mouse fast */ -static const uint16_t movements[] = {20,40,15,400}; -/* resize by line like in mcwm -- jmbi */ -static const bool resize_by_line = true; -/* the ratio used when resizing and keeping the aspect */ -static const float resize_keep_aspect_ratio= 1.03; -///---Offsets---/// -/*0)offsetx 1)offsety - *2)maxwidth 3)maxheight */ -static const uint8_t offsets[] = {0,0,0,24}; -///---Colors---/// -/*0)focuscol 1)unfocuscol - *2)fixedcol 3)unkilcol - *4)fixedunkilcol 5)outerbordercol - *6)emptycol */ -//static const char *colors[] = {"#304848","#787878","#183048","#E06A6A","#CC4E11","#606060","#000000"}; - -static const char *colors[] = {"#3A7D44","#C9DBCC","#30C5FF","#AC3931","#FBB13C","#C9DBCC","#556677"}; - -/* if this is set to true the inner border and outer borders colors will be swapped */ -static const bool inverted_colors = false; -///---Cursor---/// -/* default position of the cursor: - * correct values are: - * TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, MIDDLE - * All these are relative to the current window. */ -#define CURSOR_POSITION MIDDLE -///---Borders---/// -/*0) Outer border size. If you put this negative it will be a square. - *1) Full borderwidth 2) Magnet border size - *3) Resize border size */ -static const uint8_t borders[] = {3,8,3,8}; -/* Windows that won't have a border.*/ -#define LOOK_INTO "WM_NAME" -static const char *ignore_names[] = {"bar", "xclock", "xfdesktop"}; -///--Menus and Programs---/// - -static const char *menucmd[] = { "rofi","-show", "DRun" ,NULL }; -static const char *gmrun[] = { "rofi", "-show", "run",NULL}; -static const char *terminal[] = { "urxvt", NULL }; -static const char *click1[] = { "xdotool","click", "1", NULL }; -static const char *click2[] = { "xdotool","click", "2", NULL }; -static const char *click3[] = { "xdotool","click", "3", NULL }; - -static const char *vol_up[] = { "amixer", "-D","pulse", "sset", "Master", "3%+", "-q", NULL }; -static const char *vol_down[] = { "amixer", "-D","pulse", "sset", "Master", "3%-", "-q", NULL }; -static const char *vol_mute[] = { "amixer", "-D","pulse", "sset", "Master", "1+","toggle", "-q", NULL }; - -///--Custom foo---/// -static void halfandcentered(const Arg *arg) -{ - Arg arg2 = {.i=2}; - maxhalf(&arg2); - Arg arg3 = {.i=0}; - teleport(&arg3); -} -///---Shortcuts---/// -/* Check /usr/include/X11/keysymdef.h for the list of all keys - * 0x000000 is for no modkey - * For AZERTY keyboards XK_1...0 should be replaced by : - * DESKTOPCHANGE( XK_ampersand, 0) - * DESKTOPCHANGE( XK_eacute, 1) - * DESKTOPCHANGE( XK_quotedbl, 2) - * DESKTOPCHANGE( XK_apostrophe, 3) - * DESKTOPCHANGE( XK_parenleft, 4) - * DESKTOPCHANGE( XK_minus, 5) - * DESKTOPCHANGE( XK_egrave, 6) - * DESKTOPCHANGE( XK_underscore, 7) - * DESKTOPCHANGE( XK_ccedilla, 8) - * DESKTOPCHANGE( XK_agrave, 9)* - */ -#define DESKTOPCHANGE(K,N) \ -{ MOD , K, changeworkspace, {.i=N}}, \ -{ MOD |SHIFT, K, sendtoworkspace, {.i=N}}, -static key keys[] = { - /* modifier key function argument */ - // Focus to next/previous window - { ALT , XK_Tab, focusnext, {.i=0}}, - { ALT |SHIFT, XK_Tab, focusnext, {.i=1}}, - // Kill a window - { ALT , XK_F4, deletewin, {.i=0}}, - // Resize a window - { MOD |SHIFT, XK_k, resizestep, {.i=2}}, - { MOD |SHIFT, XK_j, resizestep, {.i=1}}, - { MOD |SHIFT, XK_l, resizestep, {.i=3}}, - { MOD |SHIFT, XK_h, resizestep, {.i=0}}, - // Resize a window slower - { MOD |SHIFT|CONTROL,XK_k, resizestep, {.i=6}}, - { MOD |SHIFT|CONTROL,XK_j, resizestep, {.i=5}}, - { MOD |SHIFT|CONTROL,XK_l, resizestep, {.i=7}}, - { MOD |SHIFT|CONTROL,XK_h, resizestep, {.i=4}}, - // Move a window - { MOD , XK_k, movestep, {.i=2}}, - { MOD , XK_j, movestep, {.i=1}}, - { MOD , XK_l, movestep, {.i=3}}, - { MOD , XK_h, movestep, {.i=0}}, - // Move a window slower - { MOD |CONTROL, XK_k, movestep, {.i=6}}, - { MOD |CONTROL, XK_j, movestep, {.i=5}}, - { MOD |CONTROL, XK_l, movestep, {.i=7}}, - { MOD |CONTROL, XK_h, movestep, {.i=4}}, - // Teleport the window to an area of the screen. - // Center: - { MOD , XK_g, teleport, {.i=0}}, - // Center y: - { MOD |SHIFT, XK_g, teleport, {.i=3}}, - // Center x: - { MOD |CONTROL, XK_g, teleport, {.i=-3}}, - // Top left: - { MOD , XK_y, teleport, {.i=2}}, - // Top right: - { MOD , XK_u, teleport, {.i=-2}}, - // Bottom left: - { MOD , XK_b, teleport, {.i=1}}, - // Bottom right: - { MOD , XK_n, teleport, {.i=-1}}, - // Resize while keeping the window aspect - { MOD , XK_Home, resizestep_aspect, {.i=0}}, - { MOD , XK_End, resizestep_aspect, {.i=1}}, - // Full screen window without borders - { MOD , XK_x, maximize, {.i=1}}, - //Full screen window without borders overiding offsets - { MOD |SHIFT , XK_x, maximize, {.i=0}}, - // Maximize vertically - { MOD , XK_m, maxvert_hor, {.i=1}}, - // Maximize horizontally - { MOD |SHIFT, XK_m, maxvert_hor, {.i=0}}, - // Maximize and move - // vertically left - { MOD |SHIFT, XK_y, maxhalf, {.i=2}}, - // vertically right - { MOD |SHIFT, XK_u, maxhalf, {.i=1}}, - // horizontally left - { MOD |SHIFT, XK_b, maxhalf, {.i=-1}}, - // horizontally right - { MOD |SHIFT, XK_n, maxhalf, {.i=-2}}, - //fold half vertically - { MOD |SHIFT|CONTROL,XK_y, maxhalf, {.i=4}}, - //fold half horizontally - { MOD |SHIFT|CONTROL,XK_b, maxhalf, {.i=-4}}, - //unfold vertically - { MOD |SHIFT|CONTROL,XK_u, maxhalf, {.i=3}}, - //unfold horizontally - { MOD |SHIFT|CONTROL,XK_n, maxhalf, {.i=-3}}, - // Next/Previous screen - { MOD , XK_comma, changescreen, {.i=1}}, - { MOD , XK_period, changescreen, {.i=0}}, - // Raise or lower a window - { MOD , XK_r, raiseorlower, {.i=0}}, - // Next/Previous workspace - { ALT |CONTROL, XK_e, nextworkspace, {.i=0}}, - { ALT |CONTROL , XK_q, prevworkspace, {.i=0}}, - // Move to Next/Previous workspace - { ALT |SHIFT|CONTROL , XK_e, sendtonextworkspace,{.i=0}}, - { ALT |SHIFT|CONTROL , XK_q, sendtoprevworkspace,{.i=0}}, - // Iconify the window - { MOD , XK_i, hide, {.i=0}}, - // Make the window unkillable - { MOD , XK_a, unkillable, {.i=0}}, - // Make the window appear always on top - { MOD, XK_t, always_on_top, {.i=0}}, - // Make the window stay on all workspaces - { MOD , XK_f, fix, {.i=0}}, - // Move the cursor - { MOD , XK_Up, cursor_move, {.i=4}}, - { MOD , XK_Down, cursor_move, {.i=5}}, - { MOD , XK_Right, cursor_move, {.i=6}}, - { MOD , XK_Left, cursor_move, {.i=7}}, - // Move the cursor faster - { MOD |SHIFT, XK_Up, cursor_move, {.i=0}}, - { MOD |SHIFT, XK_Down, cursor_move, {.i=1}}, - { MOD |SHIFT, XK_Right, cursor_move, {.i=2}}, - { MOD |SHIFT, XK_Left, cursor_move, {.i=3}}, - // Start programs - { CONTROL |ALT, XK_t, start, {.com = terminal}}, - { MOD , XK_w, start, {.com = menucmd}}, - { MOD |SHIFT, XK_w, start, {.com = gmrun}}, - // Exit or restart 2bwm - { MOD |CONTROL, XK_q, twobwm_exit, {.i=0}}, - { MOD |CONTROL, XK_r, twobwm_restart, {.i=0}}, - { MOD , XK_space, halfandcentered, {.i=0}}, - // Fake clicks using xdotool - { MOD |CONTROL, XK_Up, start, {.com = click1}}, - { MOD |CONTROL, XK_Down, start, {.com = click2}}, - { MOD |CONTROL, XK_Right, start, {.com = click3}}, - // Change current workspace - DESKTOPCHANGE( XK_1, 0) - DESKTOPCHANGE( XK_2, 1) - DESKTOPCHANGE( XK_3, 2) - DESKTOPCHANGE( XK_4, 3) - DESKTOPCHANGE( XK_5, 4) - DESKTOPCHANGE( XK_6, 5) - DESKTOPCHANGE( XK_7, 6) - DESKTOPCHANGE( XK_8, 7) - DESKTOPCHANGE( XK_9, 8) - DESKTOPCHANGE( XK_0, 9) -}; -static Button buttons[] = { - { MOD ,XCB_BUTTON_INDEX_1, mousemotion, {.i=TWOBWM_MOVE}}, - { MOD ,XCB_BUTTON_INDEX_3, mousemotion, {.i=TWOBWM_RESIZE}}, - { MOD|CONTROL,XCB_BUTTON_INDEX_3, start, {.com = menucmd}}, - { MOD|SHIFT, XCB_BUTTON_INDEX_1, changeworkspace, {.i=0}}, - { MOD|SHIFT, XCB_BUTTON_INDEX_3, changeworkspace, {.i=1}}, - { MOD|ALT, XCB_BUTTON_INDEX_1, changescreen, {.i=1}}, - { MOD|ALT, XCB_BUTTON_INDEX_3, changescreen, {.i=0}} -}; diff --git a/.config/htop/htoprc b/.config/htop/htoprc index 0d355a4..f4728fd 100644 --- a/.config/htop/htoprc +++ b/.config/htop/htoprc @@ -1,7 +1,7 @@ # Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. -fields=0 6 48 17 18 38 39 40 2 46 47 49 1 -sort_key=48 +fields=0 6 48 17 18 38 39 40 2 46 47 49 1 +sort_key=46 sort_direction=1 hide_threads=0 hide_kernel_threads=1 @@ -20,7 +20,7 @@ update_process_names=0 account_guest_in_cpu_meter=0 color_scheme=5 delay=15 -left_meters=CPU AllCPUs Blank Memory Swap -left_meter_modes=1 1 2 1 1 -right_meters=Clock Tasks LoadAverage Uptime Hostname Battery -right_meter_modes=2 2 2 2 2 2 +left_meters=CPU AllCPUs Blank Memory Swap +left_meter_modes=1 1 2 1 1 +right_meters=Clock Tasks LoadAverage Uptime Hostname Battery +right_meter_modes=2 2 2 2 2 2 diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf deleted file mode 100644 index 10d4661..0000000 --- a/.config/mpd/mpd.conf +++ /dev/null @@ -1,42 +0,0 @@ -# An example configuration file for MPD. -# Read the user manual for documentation: http://www.musicpd.org/doc/user/ -# or /usr/share/doc/mpd/user-manual.html - - -# Required files -db_file "~/.config/mpd/database" -log_file "~/.config/mpd/log" - -# Optional -music_directory "/media/julian/JUUSB/Musik/" -playlist_directory "~/.config/mpd/playlists" -pid_file "~/.config/mpd/pid" -state_file "~/.config/mpd/state" -sticker_file "~/.config/mpd/sticker.sql" - - -# Options -bind_to_address "localhost" - -gapless_mp3_playback "yes" - -restore_paused "yes" - - -auto_update "yes" - -volume_normalization "yes" - - -audio_output { - type "pulse" - name "PulseAudio" -} - -audio_output { - type "fifo" - name "my_fifo" - path "/tmp/mpd.fifo" - format "44100:16:2" -} - diff --git a/.config/terminator/config b/.config/terminator/config index c408a3a..41d4574 100644 --- a/.config/terminator/config +++ b/.config/terminator/config @@ -1,5 +1,6 @@ [global_config] focus = system + inactive_color_offset = 1.0 suppress_multiple_term_dialog = True title_transmit_bg_color = "#d30102" [keybindings] diff --git a/.emacs b/.emacs deleted file mode 100644 index fcd70e3..0000000 --- a/.emacs +++ /dev/null @@ -1,241 +0,0 @@ - -(add-to-list 'load-path "~/.emacs.d/load") -(require 'package) ;; You might already have this line -(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) - (not (gnutls-available-p)))) - (url (concat (if no-ssl "http" "https") "://melpa.org/packages/"))) - (add-to-list 'package-archives (cons "melpa" url) t)) -(when (< emacs-major-version 24) - ;; For important compatibility libraries like cl-lib - (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))) -(add-to-list 'package-archives - '("melpa" . "http://melpa.milkbox.net/packages/") t) -(package-initialize) ;; You might already have this line -(add-to-list 'package-archives - '("melpa-stable" . "https://stable.melpa.org/packages/") t) -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(ansi-color-faces-vector - [default bold shadow italic underline bold bold-italic bold]) - '(ansi-color-names-vector - ["#757575" "#CD5542" "#4A8F30" "#7D7C21" "#4170B3" "#9B55C3" "#68A5E9" "gray43"]) - '(beacon-color "#cc6666") - '(column-number-mode t) - '(custom-enabled-themes nil) - '(custom-safe-themes - (quote - ("cec19046bfe0bd715cb30d3e8e841411f4e59042d8538a8c9da4bf66b08664d9" "e297f54d0dc0575a9271bb0b64dad2c05cff50b510a518f5144925f627bb5832" "938d8c186c4cb9ec4a8d8bc159285e0d0f07bad46edf20aa469a89d0d2a586ea" "6de7c03d614033c0403657409313d5f01202361e35490a3404e33e46663c2596" "ed317c0a3387be628a48c4bbdb316b4fa645a414838149069210b66dd521733f" "d6922c974e8a78378eacb01414183ce32bc8dbf2de78aabcc6ad8172547cb074" "4e63466756c7dbd78b49ce86f5f0954b92bf70b30c01c494b37c586639fa3f6f" "06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "628278136f88aa1a151bb2d6c8a86bf2b7631fbea5f0f76cba2a0079cd910f7d" "bb08c73af94ee74453c90422485b29e5643b73b05e8de029a6909af6a3fb3f58" "1b8d67b43ff1723960eb5e0cba512a2c7a2ad544ddb2533a90101fd1852b426e" "82d2cac368ccdec2fcc7573f24c3f79654b78bf133096f9b40c20d97ec1d8016" default))) - '(electric-pair-mode t) - '(fci-rule-color "#373b41") - '(flycheck-color-mode-line-face-to-color (quote mode-line-buffer-id)) - '(org-agenda-time-grid - (quote - ((daily today require-timed) - "----------------" - (800 1000 1200 1400 1600 1800 2000)))) - '(org-hide-leading-stars t) - '(org-highlight-latex-and-related (quote (latex))) - '(package-selected-packages - (quote - (projectile ample-theme tangotango-theme cyberpunk-theme color-theme-sanityinc-tomorrow))) - '(vc-annotate-background nil) - '(vc-annotate-color-map - (quote - ((20 . "#cc6666") - (40 . "#de935f") - (60 . "#f0c674") - (80 . "#b5bd68") - (100 . "#8abeb7") - (120 . "#81a2be") - (140 . "#b294bb") - (160 . "#cc6666") - (180 . "#de935f") - (200 . "#f0c674") - (220 . "#b5bd68") - (240 . "#8abeb7") - (260 . "#81a2be") - (280 . "#b294bb") - (300 . "#cc6666") - (320 . "#de935f") - (340 . "#f0c674") - (360 . "#b5bd68")))) - '(vc-annotate-very-old-color nil)) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(default ((t (:family "Source Code Pro" :foundry "ADBO" :slant normal :weight normal :height 113 :width normal)))) - '(org-agenda-structure ((t (:inherit default :underline nil :slant normal :weight normal :height 2.0 :width normal :foundry "MS " :family "Source Code Pro"))))) - - - -(setq org-log-done 'time) - - -(setq-default org-display-custom-times t) -(setq org-time-stamp-custom-formats '("<%a %e-%b-%Y>" . "<%a %e-%b-%Y %H:%M>")) - -(setq org-agenda-files '("~/Dropbox/Noter")) - - - -(ac-config-default) - -(add-to-list 'load-path "/some/path/neotree") -(require 'neotree) -(global-set-key [f8] 'neotree-toggle) - -(setq c-default-style "k&r" - c-basic-offset 4) - -;;(add-hook 'c-mode-common-hook '(lambda () (c-toggle-auto-state 1))) - -(add-to-list 'auto-mode-alist '("\\.ino\\'" . c++-mode)) - - -(setq backup-directory-alist - `(("." . ,(concat user-emacs-directory "backups")))) - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Custom splitting functions ;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -(defun vsplit-last-buffer () - (interactive) - (split-window-vertically) - (other-window 1 nil) - (switch-to-next-buffer) - ) -(defun hsplit-last-buffer () - (interactive) - (split-window-horizontally) - (other-window 1 nil) - (switch-to-next-buffer) - ) - -(global-set-key (kbd "C-x 2") 'vsplit-last-buffer) -(global-set-key (kbd "C-x 3") 'hsplit-last-buffer) - - -(global-set-key (kbd "C-å C-b") 'windmove-left) -(global-set-key (kbd "C-å C-f") 'windmove-right) -(global-set-key (kbd "C-å C-p") 'windmove-up) -(global-set-key (kbd "C-å C-n") 'Windmove-down) - - -(windmove-default-keybindings) - -(require 'buffer-move) -(global-set-key (kbd "") 'buf-move-up) -(global-set-key (kbd "") 'buf-move-down) -(global-set-key (kbd "") 'buf-move-left) -(global-set-key (kbd "") 'buf-move-right) - - - -(defun switch-to-last-buffer () - (interactive) - (switch-to-buffer nil)) - -(global-set-key (kbd "C-") 'switch-to-last-buffer) - -(defun eval-and-replace () - "Replace the preceding sexp with its value." - (interactive) - (backward-kill-sexp) - (condition-case nil - (prin1 (eval (read (current-kill 0))) - (current-buffer)) - (error (message "Invalid expression") - (insert (current-kill 0))))) - -(global-set-key (kbd "C-c e") 'eval-and-replace) - - -(require 'iy-go-to-char) -(global-set-key (kbd "M-m") 'iy-go-to-char) - - -(require 'expand-region) -(global-set-key (kbd "M-n") 'er/expand-region) - -(define-key global-map (kbd "C-c SPC") 'ace-jump-mode) - -(require 'multiple-cursors) - -(global-set-key (kbd "M-p e") 'mc/edit-lines) -(global-set-key (kbd "M-p f") 'mc/mark-next-like-this) -(global-set-key (kbd "M-p b") 'mc/mark-previous-like-this) -(global-set-key (kbd "M-p h") 'mc/mark-all-like-this) - - -(require 'dashboard) -(dashboard-setup-startup-hook) - -(require 'fortune) -(setq fortune-dir "/usr/share/games/fortunes") -(setq fortune-file "/usr/share/games/fortunes/fortunes") - -(defun dashboard-fortune (hej) - (insert "Fortune:\n") - (insert (with-temp-buffer - (shell-command "fortune" t) - (buffer-string))) - ) - - -(add-to-list 'dashboard-item-generators '(custom . dashboard-fortune)) - -(setq dashboard-items '((recents . 5) - (bookmarks . 5) - (custom . 3) - )) - -(show-paren-mode 1) - - -(require 'dired-single) - -(defun my-dired-init () - "Bunch of stuff to run for dired, either immediately or when it's - loaded." - ;; - (define-key dired-mode-map [return] 'dired-single-buffer) - (define-key dired-mode-map [mouse-1] 'dired-single-buffer-mouse) - (define-key dired-mode-map "^" - (function - (lambda nil (interactive) (dired-single-buffer ".."))))) - -;; if dired's already loaded, then the keymap will be bound -(if (boundp 'dired-mode-map) - ;; we're good to go; just add our bindings - (my-dired-init) - ;; it's not loaded yet, so add our bindings to the load-hook - (add-hook 'dired-load-hook 'my-dired-init)) - - - -(org-babel-do-load-languages - 'org-babel-load-languages - '((R . t) - (emacs-lisp . t) - (python . t) - (sh . t) - (haskell . t) - (js . t) - (latex . t) - (C . t) - )) - -(require 'evil) -(evil-mode 1) - -(require 'evil-surround) -(global-evil-surround-mode 1) - -(display-time-mode 1) -(display-battery-mode 1) diff --git a/.i3/config b/.i3/config deleted file mode 100644 index 49c5727..0000000 --- a/.i3/config +++ /dev/null @@ -1,174 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see http://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod4 -set $alt Alt - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -font pango:monospace 8 - -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 - -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -bindsym $mod+d exec dmenu_run -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. -# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+ae focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+ae move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - -# switch to workspace -bindsym $mod+1 workspace 1 -bindsym $mod+2 workspace 2 -bindsym $mod+3 workspace 3 -bindsym $mod+4 workspace 4 -bindsym $mod+5 workspace 5 -bindsym $mod+6 workspace 6 -bindsym $mod+7 workspace 7 -bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace 1 -bindsym $mod+Shift+2 move container to workspace 2 -bindsym $mod+Shift+3 move container to workspace 3 -bindsym $mod+Shift+4 move container to workspace 4 -bindsym $mod+Shift+5 move container to workspace 5 -bindsym $mod+Shift+6 move container to workspace 6 -bindsym $mod+Shift+7 move container to workspace 7 -bindsym $mod+Shift+8 move container to workspace 8 -bindsym $mod+Shift+9 move container to workspace 9 -bindsym $mod+Shift+0 move container to workspace 10 - -#Awesome bindkeys -bindsym Control+Mod1+q workspace prev -bindsym Control+Mod1+e workspace next -bindsym Control+Shift+Mod1+q exec "i3-msg move to workspace prev && i3-msg workspace prev" -bindsym Control+Shift+Mod1+e exec "i3-msg move to workspace next && i3-msg workspace next" - - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym ae resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+r mode "resize" - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - status_command i3status - tray_output primary -} - -# Mine config ting -gap_size 10 -new_window pixel 3 - - -# Autoexec -exec xcompmgr -c & - diff --git a/.spacemacs b/.spacemacs deleted file mode 100644 index ca052f6..0000000 --- a/.spacemacs +++ /dev/null @@ -1,396 +0,0 @@ -;; -*- mode: emacs-lisp -*- -;; This file is loaded by Spacemacs at startup. -;; It must be stored in your home directory. - -(defun dotspacemacs/layers () - "Configuration Layers declaration. -You should not put any user code in this function besides modifying the variable -values." - (setq-default - ;; Base distribution to use. This is a layer contained in the directory - ;; `+distribution'. For now available distributions are `spacemacs-base' - ;; or `spacemacs'. (default 'spacemacs) - dotspacemacs-distribution 'spacemacs - ;; Lazy installation of layers (i.e. layers are installed only when a file - ;; with a supported type is opened). Possible values are `all', `unused' - ;; and `nil'. `unused' will lazy install only unused layers (i.e. layers - ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will - ;; lazy install any layer that support lazy installation even the layers - ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy - ;; installation feature and you have to explicitly list a layer in the - ;; variable `dotspacemacs-configuration-layers' to install it. - ;; (default 'unused) - dotspacemacs-enable-lazy-installation 'unused - ;; If non-nil then Spacemacs will ask for confirmation before installing - ;; a layer lazily. (default t) - dotspacemacs-ask-for-lazy-installation t - ;; If non-nil layers with lazy install support are lazy installed. - ;; List of additional paths where to look for configuration layers. - ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') - dotspacemacs-configuration-layer-path '() - ;; List of configuration layers to load. - dotspacemacs-configuration-layers - '( - python - markdown - html - javascript - auto-completion - ;; ---------------------------------------------------------------- - ;; Example of useful layers you may want to use right away. - ;; Uncomment some layer names and press (Vim style) or - ;; (Emacs style) to install them. - ;; ---------------------------------------------------------------- - helm - ;; auto-completion - ;; better-defaults - emacs-lisp - ;; git - ;; markdown - ;; org - ;; (shell :variables - ;; shell-default-height 30 - ;; shell-default-position 'bottom) - ;; spell-checking - ;; syntax-checking - ;; version-control - ) - ;; List of additional packages that will be installed without being - ;; wrapped in a layer. If you need some configuration for these - ;; packages, then consider creating a layer. You can also put the - ;; configuration in `dotspacemacs/user-config'. - dotspacemacs-additional-packages '() - ;; A list of packages that cannot be updated. - dotspacemacs-frozen-packages '() - ;; A list of packages that will not be installed and loaded. - dotspacemacs-excluded-packages '() - ;; Defines the behaviour of Spacemacs when installing packages. - ;; Possible values are `used-only', `used-but-keep-unused' and `all'. - ;; `used-only' installs only explicitly used packages and uninstall any - ;; unused packages as well as their unused dependencies. - ;; `used-but-keep-unused' installs only the used packages but won't uninstall - ;; them if they become unused. `all' installs *all* packages supported by - ;; Spacemacs and never uninstall them. (default is `used-only') - dotspacemacs-install-packages 'used-only)) - -(defun dotspacemacs/init () - "Initialization function. -This function is called at the very startup of Spacemacs initialization -before layers configuration. -You should not put any user code in there besides modifying the variable -values." - ;; This setq-default sexp is an exhaustive list of all the supported - ;; spacemacs settings. - (setq-default - ;; If non nil ELPA repositories are contacted via HTTPS whenever it's - ;; possible. Set it to nil if you have no way to use HTTPS in your - ;; environment, otherwise it is strongly recommended to let it set to t. - ;; This variable has no effect if Emacs is launched with the parameter - ;; `--insecure' which forces the value of this variable to nil. - ;; (default t) - dotspacemacs-elpa-https t - ;; Maximum allowed time in seconds to contact an ELPA repository. - dotspacemacs-elpa-timeout 5 - ;; If non nil then spacemacs will check for updates at startup - ;; when the current branch is not `develop'. Note that checking for - ;; new versions works via git commands, thus it calls GitHub services - ;; whenever you start Emacs. (default nil) - dotspacemacs-check-for-update nil - ;; If non-nil, a form that evaluates to a package directory. For example, to - ;; use different package directories for different Emacs versions, set this - ;; to `emacs-version'. - dotspacemacs-elpa-subdirectory nil - ;; One of `vim', `emacs' or `hybrid'. - ;; `hybrid' is like `vim' except that `insert state' is replaced by the - ;; `hybrid state' with `emacs' key bindings. The value can also be a list - ;; with `:variables' keyword (similar to layers). Check the editing styles - ;; section of the documentation for details on available variables. - ;; (default 'vim) - dotspacemacs-editing-style 'emacs - ;; If non nil output loading progress in `*Messages*' buffer. (default nil) - dotspacemacs-verbose-loading nil - ;; Specify the startup banner. Default value is `official', it displays - ;; the official spacemacs logo. An integer value is the index of text - ;; banner, `random' chooses a random text banner in `core/banners' - ;; directory. A string value must be a path to an image format supported - ;; by your Emacs build. - ;; If the value is nil then no banner is displayed. (default 'official) - dotspacemacs-startup-banner 'official - ;; List of items to show in startup buffer or an association list of - ;; the form `(list-type . list-size)`. If nil then it is disabled. - ;; Possible values for list-type are: - ;; `recents' `bookmarks' `projects' `agenda' `todos'." - ;; List sizes may be nil, in which case - ;; `spacemacs-buffer-startup-lists-length' takes effect. - dotspacemacs-startup-lists '((recents . 5) - (projects . 7)) - ;; True if the home buffer should respond to resize events. - dotspacemacs-startup-buffer-responsive t - ;; Default major mode of the scratch buffer (default `text-mode') - dotspacemacs-scratch-mode 'text-mode - ;; List of themes, the first of the list is loaded when spacemacs starts. - ;; Press T n to cycle to the next theme in the list (works great - ;; with 2 themes variants, one dark and one light) - dotspacemacs-themes '(spacemacs-dark - spacemacs-light) - ;; If non nil the cursor color matches the state color in GUI Emacs. - dotspacemacs-colorize-cursor-according-to-state t - ;; Default font, or prioritized list of fonts. `powerline-scale' allows to - ;; quickly tweak the mode-line size to make separators look not too crappy. - dotspacemacs-default-font '("Source Code Pro" - :size 13 - :weight normal - :width normal - :powerline-scale 1.1) - ;; The leader key - dotspacemacs-leader-key "SPC" - ;; The key used for Emacs commands (M-x) (after pressing on the leader key). - ;; (default "SPC") - dotspacemacs-emacs-command-key "SPC" - ;; The key used for Vim Ex commands (default ":") - dotspacemacs-ex-command-key ":" - ;; The leader key accessible in `emacs state' and `insert state' - ;; (default "M-m") - dotspacemacs-emacs-leader-key "M-m" - ;; Major mode leader key is a shortcut key which is the equivalent of - ;; pressing ` m`. Set it to `nil` to disable it. (default ",") - dotspacemacs-major-mode-leader-key "," - ;; Major mode leader key accessible in `emacs state' and `insert state'. - ;; (default "C-M-m") - dotspacemacs-major-mode-emacs-leader-key "C-M-m" - ;; These variables control whether separate commands are bound in the GUI to - ;; the key pairs C-i, TAB and C-m, RET. - ;; Setting it to a non-nil value, allows for separate commands under - ;; and TAB or and RET. - ;; In the terminal, these pairs are generally indistinguishable, so this only - ;; works in the GUI. (default nil) - dotspacemacs-distinguish-gui-tab nil - ;; If non nil `Y' is remapped to `y$' in Evil states. (default nil) - dotspacemacs-remap-Y-to-y$ nil - ;; If non-nil, the shift mappings `<' and `>' retain visual state if used - ;; there. (default t) - dotspacemacs-retain-visual-state-on-shift t - ;; If non-nil, J and K move lines up and down when in visual mode. - ;; (default nil) - dotspacemacs-visual-line-move-text nil - ;; If non nil, inverse the meaning of `g' in `:substitute' Evil ex-command. - ;; (default nil) - dotspacemacs-ex-substitute-global nil - ;; Name of the default layout (default "Default") - dotspacemacs-default-layout-name "Default" - ;; If non nil the default layout name is displayed in the mode-line. - ;; (default nil) - dotspacemacs-display-default-layout nil - ;; If non nil then the last auto saved layouts are resume automatically upon - ;; start. (default nil) - dotspacemacs-auto-resume-layouts nil - ;; Size (in MB) above which spacemacs will prompt to open the large file - ;; literally to avoid performance issues. Opening a file literally means that - ;; no major mode or minor modes are active. (default is 1) - dotspacemacs-large-file-size 1 - ;; Location where to auto-save files. Possible values are `original' to - ;; auto-save the file in-place, `cache' to auto-save the file to another - ;; file stored in the cache directory and `nil' to disable auto-saving. - ;; (default 'cache) - dotspacemacs-auto-save-file-location 'cache - ;; Maximum number of rollback slots to keep in the cache. (default 5) - dotspacemacs-max-rollback-slots 5 - ;; If non nil, `helm' will try to minimize the space it uses. (default nil) - dotspacemacs-helm-resize nil - ;; if non nil, the helm header is hidden when there is only one source. - ;; (default nil) - dotspacemacs-helm-no-header nil - ;; define the position to display `helm', options are `bottom', `top', - ;; `left', or `right'. (default 'bottom) - dotspacemacs-helm-position 'bottom - ;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching - ;; in all non-asynchronous sources. If set to `source', preserve individual - ;; source settings. Else, disable fuzzy matching in all sources. - ;; (default 'always) - dotspacemacs-helm-use-fuzzy 'always - ;; If non nil the paste micro-state is enabled. When enabled pressing `p` - ;; several times cycle between the kill ring content. (default nil) - dotspacemacs-enable-paste-transient-state nil - ;; Which-key delay in seconds. The which-key buffer is the popup listing - ;; the commands bound to the current keystroke sequence. (default 0.4) - dotspacemacs-which-key-delay 0.4 - ;; Which-key frame position. Possible values are `right', `bottom' and - ;; `right-then-bottom'. right-then-bottom tries to display the frame to the - ;; right; if there is insufficient space it displays it at the bottom. - ;; (default 'bottom) - dotspacemacs-which-key-position 'bottom - ;; If non nil a progress bar is displayed when spacemacs is loading. This - ;; may increase the boot time on some systems and emacs builds, set it to - ;; nil to boost the loading time. (default t) - dotspacemacs-loading-progress-bar t - ;; If non nil the frame is fullscreen when Emacs starts up. (default nil) - ;; (Emacs 24.4+ only) - dotspacemacs-fullscreen-at-startup nil - ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen. - ;; Use to disable fullscreen animations in OSX. (default nil) - dotspacemacs-fullscreen-use-non-native nil - ;; If non nil the frame is maximized when Emacs starts up. - ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. - ;; (default nil) (Emacs 24.4+ only) - dotspacemacs-maximized-at-startup nil - ;; A value from the range (0..100), in increasing opacity, which describes - ;; the transparency level of a frame when it's active or selected. - ;; Transparency can be toggled through `toggle-transparency'. (default 90) - dotspacemacs-active-transparency 90 - ;; A value from the range (0..100), in increasing opacity, which describes - ;; the transparency level of a frame when it's inactive or deselected. - ;; Transparency can be toggled through `toggle-transparency'. (default 90) - dotspacemacs-inactive-transparency 90 - ;; If non nil show the titles of transient states. (default t) - dotspacemacs-show-transient-state-title t - ;; If non nil show the color guide hint for transient state keys. (default t) - dotspacemacs-show-transient-state-color-guide t - ;; If non nil unicode symbols are displayed in the mode line. (default t) - dotspacemacs-mode-line-unicode-symbols t - ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth - ;; scrolling overrides the default behavior of Emacs which recenters point - ;; when it reaches the top or bottom of the screen. (default t) - dotspacemacs-smooth-scrolling t - ;; If non nil line numbers are turned on in all `prog-mode' and `text-mode' - ;; derivatives. If set to `relative', also turns on relative line numbers. - ;; (default nil) - dotspacemacs-line-numbers nil - ;; Code folding method. Possible values are `evil' and `origami'. - ;; (default 'evil) - dotspacemacs-folding-method 'evil - ;; If non-nil smartparens-strict-mode will be enabled in programming modes. - ;; (default nil) - dotspacemacs-smartparens-strict-mode nil - ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes - ;; over any automatically added closing parenthesis, bracket, quote, etc… - ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil) - dotspacemacs-smart-closing-parenthesis nil - ;; Select a scope to highlight delimiters. Possible values are `any', - ;; `current', `all' or `nil'. Default is `all' (highlight any scope and - ;; emphasis the current one). (default 'all) - dotspacemacs-highlight-delimiters 'all - ;; If non nil, advise quit functions to keep server open when quitting. - ;; (default nil) - dotspacemacs-persistent-server nil - ;; List of search tool executable names. Spacemacs uses the first installed - ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'. - ;; (default '("ag" "pt" "ack" "grep")) - dotspacemacs-search-tools '("ag" "pt" "ack" "grep") - ;; The default package repository used if no explicit repository has been - ;; specified with an installed package. - ;; Not used for now. (default nil) - dotspacemacs-default-package-repository nil - ;; Delete whitespace while saving buffer. Possible values are `all' - ;; to aggressively delete empty line and long sequences of whitespace, - ;; `trailing' to delete only the whitespace at end of lines, `changed'to - ;; delete only whitespace for changed lines or `nil' to disable cleanup. - ;; (default nil) - dotspacemacs-whitespace-cleanup nil - )) - - - -(defun dotspacemacs/user-init () - "Initialization function for user code. -It is called immediately after `dotspacemacs/init', before layer configuration -executes. - This function is mostly useful for variables that need to be set -before packages are loaded. If you are unsure, you should try in setting them in -`dotspacemacs/user-config' first." - - - ) - - -(defun dotspacemacs/user-config () - "Configuration function for user code. -This function is called at the very end of Spacemacs initialization after -layers configuration. -This is the place where most of your configurations should be done. Unless it is -explicitly specified that a variable should be set before a package is loaded, -you should place your code here." - - (defun gcm-scroll-up () - (interactive) - (scroll-down 1)) - (defun gcm-scroll-down () - (interactive) - (scroll-up 1)) - - ;(global-set-key (kbd "") 'gcm-scroll-up) - ;(global-set-key (kbd "") 'gcm-scroll-down) - - - (defun my-setup-indent (n) - (interactive) - (setq-default indent-tabs-mode nil) - ;; java/c/c++ - (setq-local c-basic-offset n) - ;; web development - (setq-local coffee-tab-width n) ; coffeescript - (setq-local javascript-indent-level n) ; javascript-mode - (setq-local js-indent-level n) ; js-mode - (setq-local js2-basic-offset n) ; js2-mode, in latest js2-mode, it's alias of js-indent-level - (setq-local web-mode-markup-indent-offset n) ; web-mode, html tag in html file - (setq-local web-mode-css-indent-offset n) ; web-mode, css in html file - (setq-local web-mode-code-indent-offset n) ; web-mode, js code in html file - (setq-local css-indent-offset n) ; css-mode - ) - - - (defun my-switch-buffer () - "Switch buffers, but don't record the change until the last one." - (interactive) - (let ((blist (copy-sequence (buffer-list))) - current - (key-for-this (this-command-keys)) - (key-for-this-string (format-kbd-macro (this-command-keys))) - done) - (while (not done) - (setq current (car blist)) - (setq blist (append (cdr blist) (list current))) - (when (and (not (get-buffer-window current)) - (not (minibufferp current))) - (switch-to-buffer current t) - (message "Type %s to continue cycling" key-for-this-string) - (when (setq done (not (equal key-for-this (make-vector 1 (read-event))))) - (switch-to-buffer current) - (clear-this-command-keys t) - (setq unread-command-events (list last-input-event))))))) - - (global-set-key (kbd "M-q") 'my-switch-buffer) - (global-linum-mode) - (my-setup-indent 2) - - ) - -;; Do not write anything past this comment. This is where Emacs will -;; auto-generate custom variable definitions. -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(ansi-color-faces-vector - [default default default italic underline success warning error]) - '(ansi-color-names-vector - ["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"]) - '(clean-aindent-mode t) - '(custom-enabled-themes (quote (wombat))) - '(custom-safe-themes - (quote - ("bffa9739ce0752a37d9b1eee78fc00ba159748f50dc328af4be661484848e476" default))) - '(evil-indent-convert-tabs nil) - '(evil-want-Y-yank-to-eol nil) - '(indent-tabs-mode nil) - '(js-indent-level 1) - '(js2-basic-offset 2) - '(tab-always-indent (quote complete)) - '(tab-stop-list nil) - '(tab-width 1)) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - ) diff --git a/Conky/conkymain b/Conky/conkymain deleted file mode 100644 index 61971e7..0000000 --- a/Conky/conkymain +++ /dev/null @@ -1,79 +0,0 @@ - -background no -use_xft yes --- xftfont Liberation Mono:size=10 --- xftfont Courier 10 Pitch:size=10 -xftfont Ubuntu Mono:size=10 -xftalpha 0.5 -update_interval 5.0 -total_run_times 0 -own_window yes -own_window_class Conky -own_window_transparent yes -own_window_type desktop -own_window_hints below,skip_taskbar,skip_pager -own_window_colour 000000 -own_window_argb_visual yes -own_window_argb_value 110 -own_window_transparent yes -double_buffer yes -maximum_width 664 - -draw_shades no -draw_outline no -draw_borders no -draw_graph_borders yes -default_color grey -default_shade_color red -default_outline_color green -alignment top_right -gap_x 12 -gap_y 50 -no_buffers yes -uppercase no -cpu_avg_samples 4 -override_utf8_locale no -text_buffer_size 1024 - - - -TEXT -${color orange}SYSTEM${hr 2} -${color white}$sysname $kernel on $machine ${color grey} -Uptime: $alignr ${color green} $uptime ${color grey} -Mean Load: $alignr ${color green} $loadavg -${color white}$processes processes ${color magenta}($running_processes running) ${color green} -CPU0 ${cpu cpu0}% ${color purple}${cpubar cpu0} ${color green} -CPU1 ${cpu cpu1}% ${color purple}${cpubar cpu1} -${color grey}MEM $alignc $mem / $memmax $alignr $memperc% -$membar -swap $alignc $swap / $swapmax $alignr $swapperc% -${swapbar} -${color orange}TOP PROCESSOR USAGE ${hr 2} -${color gray}NAME PID CPU MEM -${color white}1. ${top name 1}${top pid 1} ${top cpu 1} ${top mem 1} -2. ${top name 2}${top pid 2} ${top cpu 2} ${top mem 2} -3. ${top name 3}${top pid 3} ${top cpu 3} ${top mem 3} -4. ${top name 4}${top pid 4} ${top cpu 4} ${top mem 4} -5. ${top name 5}${top pid 5} ${top cpu 5} ${top mem 5} -${color orange}TOP MEMORY USAGE ${hr 2} -${color gray}NAME PID CPU MEM -${color white}1. ${top_mem name 1}${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1} -2. ${top_mem name 2}${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} -3. ${top_mem name 3}${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3} -4. ${top_mem name 4}${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4} -5. ${top_mem name 5}${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5} -${color orange}MUSIC${hr 2} -${if_running spotify}${color white}Song: - ${color gray}${exec /home/julian/Conky/spotify-nowplaying.sh} -${else}${color gray}Spotify is closed -${endif}${color orange}NETWORK${hr 2} -${color white}Hostname: -${color gray} ${exec hostname} -${color white}Internal Ip: -${color gray}${if_existing /proc/net/route wlan0} Wlan: ${exec /home/julian/Conky/getInternalIp.sh} -${else}${if_existing /proc/net/route enp4s0} Eth: ${exec /home/julian/Conky/getInternalIp.sh enp4s0}${else} Network disconnected${endif}${endif} -${color orange}Services ${hr 2} -${color white} Dropbox: ${color gray}${exec dropbox status} -${color white} SSHD: ${color gray}${exec systemctl is-active ssh} - diff --git a/Conky/getInternalIp.sh b/Conky/getInternalIp.sh deleted file mode 100755 index 8894199..0000000 --- a/Conky/getInternalIp.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -ifconfig $1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' \ No newline at end of file diff --git a/Conky/spotify-nowplaying-length b/Conky/spotify-nowplaying-length deleted file mode 100755 index 45a0158..0000000 --- a/Conky/spotify-nowplaying-length +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -echo `dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "length"|egrep -v "length"|egrep -v "array"|cut -b 43-|cut -d '"' -f 1|egrep -v ^$` \ No newline at end of file diff --git a/Conky/spotify-nowplaying.sh b/Conky/spotify-nowplaying.sh deleted file mode 100755 index 47a960d..0000000 --- a/Conky/spotify-nowplaying.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -echo `dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$` "-" `dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$` \ No newline at end of file diff --git a/Conky/start.sh b/Conky/start.sh deleted file mode 100644 index 5f38b77..0000000 --- a/Conky/start.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -sleep 10 && # 0 good for Xfce - use 20 to 30 for Gnome -conky -c ~/Conky/conkymain & -#sleep 0 && -#conky -c ~/Conky/conkyforecast & \ No newline at end of file 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 deleted file mode 100755 index 4aabcf7..0000000 Binary files a/Scripts/__pycache__/getch.cpython-35.pyc and /dev/null differ 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 ... -# -# 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< ... - ---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]) diff --git a/Software/2bwm b/Software/2bwm deleted file mode 160000 index 43dbbc5..0000000 --- a/Software/2bwm +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 43dbbc5915ad32d6d041a8a5932724f834ae63d4 -- cgit v1.2.3