From 6efac1a12c8ab0b7d96a8d342fbd74fce35e8c42 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Tue, 18 Aug 2015 02:38:33 +0200 Subject: Organise everything systematically. --- config/bspwm/bspwmrc | 23 - config/bspwm/colors | 6 - config/compton.conf | 15 - config/ranger/__pycache__/commands.cpython-34.pyo | Bin 39277 -> 0 bytes config/ranger/bookmarks | 10 - config/ranger/commands.py | 1244 --------------------- config/ranger/history | 11 - config/ranger/rc.conf | 533 --------- config/ranger/rifle.conf | 192 ---- config/ranger/rifle.conf.save | 189 ---- config/ranger/scope.sh | 84 -- config/ranger/tagged | 4 - config/ratpoison/.tools | 1 - config/ratpoison/README.md | 41 - config/ratpoison/borderscript | 11 - config/ratpoison/bordtoggle | 12 - config/ratpoison/clipboard | 106 -- config/ratpoison/cmusplaying | 1 - config/ratpoison/cmusvolind | 34 - config/ratpoison/create_frame | Bin 9832 -> 0 bytes config/ratpoison/exec_to_workspace | 13 - config/ratpoison/firesend | 2 - config/ratpoison/functions | 6 - config/ratpoison/imgur | 8 - config/ratpoison/lock | 6 - config/ratpoison/menu/anti-forensic | 15 - config/ratpoison/menu/automation | 79 -- config/ratpoison/menu/backdoor | 26 - config/ratpoison/menu/binary | 118 -- config/ratpoison/menu/bluetooth | 36 - config/ratpoison/menu/code-audit | 38 - config/ratpoison/menu/cracker | 257 ----- config/ratpoison/menu/crypto | 56 - config/ratpoison/menu/cryptography | 17 - config/ratpoison/menu/database | 12 - config/ratpoison/menu/debugger | 30 - config/ratpoison/menu/decompiler | 14 - config/ratpoison/menu/defensive | 98 -- config/ratpoison/menu/disassembler | 53 - config/ratpoison/menu/dos | 107 -- config/ratpoison/menu/drone | 11 - config/ratpoison/menu/exploitation | 247 ---- config/ratpoison/menu/fingerprint | 61 - config/ratpoison/menu/firmware | 9 - config/ratpoison/menu/forensic | 262 ----- config/ratpoison/menu/fuzzer | 335 ------ config/ratpoison/menu/hardware | 52 - config/ratpoison/menu/honeypot | 27 - config/ratpoison/menu/keylogger | 11 - config/ratpoison/menu/main | 51 - config/ratpoison/menu/malware | 73 -- config/ratpoison/menu/misc | 155 --- config/ratpoison/menu/mobile | 122 -- config/ratpoison/menu/networking | 626 ----------- config/ratpoison/menu/nfc | 6 - config/ratpoison/menu/packer | 6 - config/ratpoison/menu/proxy | 71 -- config/ratpoison/menu/radio | 8 - config/ratpoison/menu/recon | 170 --- config/ratpoison/menu/reversing | 87 -- config/ratpoison/menu/scanner | 574 ---------- config/ratpoison/menu/sniffer | 171 --- config/ratpoison/menu/social | 18 - config/ratpoison/menu/spoof | 36 - config/ratpoison/menu/threat-model | 6 - config/ratpoison/menu/tunnel | 46 - config/ratpoison/menu/unpacker | 6 - config/ratpoison/menu/voip | 28 - config/ratpoison/menu/webapp | 191 ---- config/ratpoison/menu/windows | 15 - config/ratpoison/menu/wireless | 230 ---- config/ratpoison/mpdvolind | 34 - config/ratpoison/newtab | 2 - config/ratpoison/panel/audio_mon | 1 - config/ratpoison/panel/batterymon | 13 - config/ratpoison/panel/icons | 23 - config/ratpoison/panel/load | 7 - config/ratpoison/panel/monce | 25 - config/ratpoison/panel/music | 20 - config/ratpoison/panel/panel | 29 - config/ratpoison/panel/panel_bar | 144 --- config/ratpoison/panel/panel_colors | 15 - config/ratpoison/panel/profile | 8 - config/ratpoison/panel/signal | 19 - config/ratpoison/panel/windows | 3 - config/ratpoison/paneltoggle | 12 - config/ratpoison/py/color_detect.py | 108 -- config/ratpoison/py/colorz.py | 71 -- config/ratpoison/py/colorz.pyc | Bin 3064 -> 0 bytes config/ratpoison/ratcolor | 8 - config/ratpoison/ratmenu | Bin 24598 -> 0 bytes config/ratpoison/ratpoison.colors | 2 - config/ratpoison/ratpoisonrc.clipboard | 57 - config/ratpoison/ratpoisonrc.conf | 349 ------ config/ratpoison/rpbar | Bin 31106 -> 0 bytes config/ratpoison/rpbaro | Bin 31057 -> 0 bytes config/ratpoison/rpbarsend | Bin 13793 -> 0 bytes config/ratpoison/screen_run | 21 - config/ratpoison/spotlight | 4 - config/ratpoison/sprunge | 62 - config/ratpoison/taskbar | 2 - config/ratpoison/time | 7 - config/ratpoison/volind | 32 - config/ratpoison/window_menu | 40 - config/ratpoison/workspace_menu | 24 - config/ratpoison/wp | 259 ----- config/ratpoison/xtoolwait | Bin 13112 -> 0 bytes config/sxhkd/sxhkdrc | 262 ----- config/uzbl/config | 578 ---------- config/uzbl/scripts/download.sh | 69 -- config/uzbl/scripts/gonew.pl | 16 - config/uzbl/scripts/goto.pl | 16 - config/uzbl/scripts/gowiki.pl | 16 - config/uzbl/scripts/gowikio.pl | 16 - config/uzbl/scripts/youtube.pl | 4 - config/uzbl/style.css | 34 - config/vimb/config | 37 - 117 files changed, 9668 deletions(-) delete mode 100755 config/bspwm/bspwmrc delete mode 100755 config/bspwm/colors delete mode 100644 config/compton.conf delete mode 100644 config/ranger/__pycache__/commands.cpython-34.pyo delete mode 100644 config/ranger/bookmarks delete mode 100644 config/ranger/commands.py delete mode 100644 config/ranger/history delete mode 100644 config/ranger/rc.conf delete mode 100644 config/ranger/rifle.conf delete mode 100644 config/ranger/rifle.conf.save delete mode 100755 config/ranger/scope.sh delete mode 100644 config/ranger/tagged delete mode 120000 config/ratpoison/.tools delete mode 100644 config/ratpoison/README.md delete mode 100755 config/ratpoison/borderscript delete mode 100755 config/ratpoison/bordtoggle delete mode 100755 config/ratpoison/clipboard delete mode 100755 config/ratpoison/cmusplaying delete mode 100755 config/ratpoison/cmusvolind delete mode 100755 config/ratpoison/create_frame delete mode 100755 config/ratpoison/exec_to_workspace delete mode 100755 config/ratpoison/firesend delete mode 100644 config/ratpoison/functions delete mode 100755 config/ratpoison/imgur delete mode 100755 config/ratpoison/lock delete mode 100755 config/ratpoison/menu/anti-forensic delete mode 100755 config/ratpoison/menu/automation delete mode 100755 config/ratpoison/menu/backdoor delete mode 100755 config/ratpoison/menu/binary delete mode 100755 config/ratpoison/menu/bluetooth delete mode 100755 config/ratpoison/menu/code-audit delete mode 100755 config/ratpoison/menu/cracker delete mode 100755 config/ratpoison/menu/crypto delete mode 100755 config/ratpoison/menu/cryptography delete mode 100755 config/ratpoison/menu/database delete mode 100755 config/ratpoison/menu/debugger delete mode 100755 config/ratpoison/menu/decompiler delete mode 100755 config/ratpoison/menu/defensive delete mode 100755 config/ratpoison/menu/disassembler delete mode 100755 config/ratpoison/menu/dos delete mode 100755 config/ratpoison/menu/drone delete mode 100755 config/ratpoison/menu/exploitation delete mode 100755 config/ratpoison/menu/fingerprint delete mode 100755 config/ratpoison/menu/firmware delete mode 100755 config/ratpoison/menu/forensic delete mode 100755 config/ratpoison/menu/fuzzer delete mode 100755 config/ratpoison/menu/hardware delete mode 100755 config/ratpoison/menu/honeypot delete mode 100755 config/ratpoison/menu/keylogger delete mode 100755 config/ratpoison/menu/main delete mode 100755 config/ratpoison/menu/malware delete mode 100755 config/ratpoison/menu/misc delete mode 100755 config/ratpoison/menu/mobile delete mode 100755 config/ratpoison/menu/networking delete mode 100755 config/ratpoison/menu/nfc delete mode 100755 config/ratpoison/menu/packer delete mode 100755 config/ratpoison/menu/proxy delete mode 100755 config/ratpoison/menu/radio delete mode 100755 config/ratpoison/menu/recon delete mode 100755 config/ratpoison/menu/reversing delete mode 100755 config/ratpoison/menu/scanner delete mode 100755 config/ratpoison/menu/sniffer delete mode 100755 config/ratpoison/menu/social delete mode 100755 config/ratpoison/menu/spoof delete mode 100755 config/ratpoison/menu/threat-model delete mode 100755 config/ratpoison/menu/tunnel delete mode 100755 config/ratpoison/menu/unpacker delete mode 100755 config/ratpoison/menu/voip delete mode 100755 config/ratpoison/menu/webapp delete mode 100755 config/ratpoison/menu/windows delete mode 100755 config/ratpoison/menu/wireless delete mode 100755 config/ratpoison/mpdvolind delete mode 100755 config/ratpoison/newtab delete mode 100644 config/ratpoison/panel/audio_mon delete mode 100755 config/ratpoison/panel/batterymon delete mode 100755 config/ratpoison/panel/icons delete mode 100755 config/ratpoison/panel/load delete mode 100755 config/ratpoison/panel/monce delete mode 100755 config/ratpoison/panel/music delete mode 100755 config/ratpoison/panel/panel delete mode 100755 config/ratpoison/panel/panel_bar delete mode 100755 config/ratpoison/panel/panel_colors delete mode 100755 config/ratpoison/panel/profile delete mode 100755 config/ratpoison/panel/signal delete mode 100755 config/ratpoison/panel/windows delete mode 100755 config/ratpoison/paneltoggle delete mode 100644 config/ratpoison/py/color_detect.py delete mode 100644 config/ratpoison/py/colorz.py delete mode 100644 config/ratpoison/py/colorz.pyc delete mode 100755 config/ratpoison/ratcolor delete mode 100755 config/ratpoison/ratmenu delete mode 100644 config/ratpoison/ratpoison.colors delete mode 100644 config/ratpoison/ratpoisonrc.clipboard delete mode 100644 config/ratpoison/ratpoisonrc.conf delete mode 100755 config/ratpoison/rpbar delete mode 100755 config/ratpoison/rpbaro delete mode 100755 config/ratpoison/rpbarsend delete mode 100755 config/ratpoison/screen_run delete mode 100755 config/ratpoison/spotlight delete mode 100755 config/ratpoison/sprunge delete mode 100755 config/ratpoison/taskbar delete mode 100755 config/ratpoison/time delete mode 100755 config/ratpoison/volind delete mode 100755 config/ratpoison/window_menu delete mode 100755 config/ratpoison/workspace_menu delete mode 100755 config/ratpoison/wp delete mode 100755 config/ratpoison/xtoolwait delete mode 100644 config/sxhkd/sxhkdrc delete mode 100644 config/uzbl/config delete mode 100755 config/uzbl/scripts/download.sh delete mode 100755 config/uzbl/scripts/gonew.pl delete mode 100755 config/uzbl/scripts/goto.pl delete mode 100755 config/uzbl/scripts/gowiki.pl delete mode 100755 config/uzbl/scripts/gowikio.pl delete mode 100755 config/uzbl/scripts/youtube.pl delete mode 100644 config/uzbl/style.css delete mode 100644 config/vimb/config (limited to 'config') diff --git a/config/bspwm/bspwmrc b/config/bspwm/bspwmrc deleted file mode 100755 index 57f3916..0000000 --- a/config/bspwm/bspwmrc +++ /dev/null @@ -1,23 +0,0 @@ -# /bin/sh -# for multi-mon: bspc monitor HDMI1 -d 1 4 6 7 8 -source ~/.config/bspwm/colors - -bspc config border_width 3 -bspc config window_gap 12 - -bspc config split_ratio 0.50 - -bspc config focused_border_color $COLOR0 -bspc config active_border_color $COLOR0 -bspc config normal_border_color $COLOR11 - -bspc config top_padding 24 - -bspc config borderless_monocle true -bspc config gapless_monocle true -bspc config apply_floating_atom true -bspc config history_aware_focus true -bspc config ignore_ewmh_focus true - -bspc monitor -d I II III IV V VI VII VIII IX X XI XII XIII - diff --git a/config/bspwm/colors b/config/bspwm/colors deleted file mode 100755 index 63977ca..0000000 --- a/config/bspwm/colors +++ /dev/null @@ -1,6 +0,0 @@ -#! /bin/sh -source ~/.colors - -bspc config focused_border_color $COLOR11 -bspc config active_border_color $COLOR11 -bspc config normal_border_color $COLOR0 diff --git a/config/compton.conf b/config/compton.conf deleted file mode 100644 index 883e0f7..0000000 --- a/config/compton.conf +++ /dev/null @@ -1,15 +0,0 @@ -# Shadow - -backend = "glx"; -vsync = "opengl-swc"; - -shadow = true; -no-dnd-shadow = true; -no-dock-shadow = true; -clear-shadow = true; -shadow-radius = 6; -shadow-offset-x = -9; -shadow-offset-y = -8; -shadow-opacity = 0.7; -frame-opacity = 0.8; -shadow-exclude = [ "_BSPWM_FLOATING_WINDOW:32c = 0" ]; diff --git a/config/ranger/__pycache__/commands.cpython-34.pyo b/config/ranger/__pycache__/commands.cpython-34.pyo deleted file mode 100644 index 5809388..0000000 Binary files a/config/ranger/__pycache__/commands.cpython-34.pyo and /dev/null differ diff --git a/config/ranger/bookmarks b/config/ranger/bookmarks deleted file mode 100644 index b48b4c2..0000000 --- a/config/ranger/bookmarks +++ /dev/null @@ -1,10 +0,0 @@ -m:/home/vasko/Dropbox/School/Math -':/home/vasko -s:/home/vasko/Secure/School -c:/home/vasko/Dropbox/School/Chemistry -r:/ -k:/home/vasko/Downloads/leaked photos/Jennifer Lawrence -p:/home/vasko/Dropbox/School/Physics -e:/home/vasko/Sync/School/Exams -b:/home/vasko/Dropbox/School/Biology -d:/home/vasko/Downloads diff --git a/config/ranger/commands.py b/config/ranger/commands.py deleted file mode 100644 index 4d290e7..0000000 --- a/config/ranger/commands.py +++ /dev/null @@ -1,1244 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2009-2013 Roman Zimbelmann -# This configuration file is licensed under the same terms as ranger. -# =================================================================== -# This file contains ranger's commands. -# It's all in python; lines beginning with # are comments. -# -# Note that additional commands are automatically generated from the methods -# of the class ranger.core.actions.Actions. -# -# You can customize commands in the file ~/.config/ranger/commands.py. -# It has the same syntax as this file. In fact, you can just copy this -# file there with `ranger --copy-config=commands' and make your modifications. -# But make sure you update your configs when you update ranger. -# -# =================================================================== -# Every class defined here which is a subclass of `Command' will be used as a -# command in ranger. Several methods are defined to interface with ranger: -# execute(): called when the command is executed. -# cancel(): called when closing the console. -# tab(): called when is pressed. -# quick(): called after each keypress. -# -# The return values for tab() can be either: -# None: There is no tab completion -# A string: Change the console to this string -# A list/tuple/generator: cycle through every item in it -# -# The return value for quick() can be: -# False: Nothing happens -# True: Execute the command afterwards -# -# The return value for execute() and cancel() doesn't matter. -# -# =================================================================== -# Commands have certain attributes and methods that facilitate parsing of -# the arguments: -# -# self.line: The whole line that was written in the console. -# self.args: A list of all (space-separated) arguments to the command. -# self.quantifier: If this command was mapped to the key "X" and -# the user pressed 6X, self.quantifier will be 6. -# self.arg(n): The n-th argument, or an empty string if it doesn't exist. -# self.rest(n): The n-th argument plus everything that followed. For example, -# If the command was "search foo bar a b c", rest(2) will be "bar a b c" -# self.start(n): The n-th argument and anything before it. For example, -# If the command was "search foo bar a b c", rest(2) will be "bar a b c" -# -# =================================================================== -# And this is a little reference for common ranger functions and objects: -# -# self.fm: A reference to the "fm" object which contains most information -# about ranger. -# self.fm.notify(string): Print the given string on the screen. -# self.fm.notify(string, bad=True): Print the given string in RED. -# self.fm.reload_cwd(): Reload the current working directory. -# self.fm.thisdir: The current working directory. (A File object.) -# self.fm.thisfile: The current file. (A File object too.) -# self.fm.thistab.get_selection(): A list of all selected files. -# self.fm.execute_console(string): Execute the string as a ranger command. -# self.fm.open_console(string): Open the console with the given string -# already typed in for you. -# self.fm.move(direction): Moves the cursor in the given direction, which -# can be something like down=3, up=5, right=1, left=1, to=6, ... -# -# File objects (for example self.fm.thisfile) have these useful attributes and -# methods: -# -# cf.path: The path to the file. -# cf.basename: The base name only. -# cf.load_content(): Force a loading of the directories content (which -# obviously works with directories only) -# cf.is_directory: True/False depending on whether it's a directory. -# -# For advanced commands it is unavoidable to dive a bit into the source code -# of ranger. -# =================================================================== - -from ranger.api.commands import * - -class alias(Command): - """:alias - - Copies the oldcommand as newcommand. - """ - - context = 'browser' - resolve_macros = False - - def execute(self): - if not self.arg(1) or not self.arg(2): - self.fm.notify('Syntax: alias ', bad=True) - else: - self.fm.commands.alias(self.arg(1), self.rest(2)) - -class cd(Command): - """:cd [-r] - - The cd command changes the directory. - The command 'cd -' is equivalent to typing ``. - Using the option "-r" will get you to the real path. - """ - - def execute(self): - import os.path - if self.arg(1) == '-r': - self.shift() - destination = os.path.realpath(self.rest(1)) - if os.path.isfile(destination): - destination = os.path.dirname(destination) - else: - destination = self.rest(1) - - if not destination: - destination = '~' - - if destination == '-': - self.fm.enter_bookmark('`') - else: - self.fm.cd(destination) - - def tab(self): - import os - from os.path import dirname, basename, expanduser, join - - cwd = self.fm.thisdir.path - rel_dest = self.rest(1) - - bookmarks = [v.path for v in self.fm.bookmarks.dct.values() - if rel_dest in v.path ] - - # expand the tilde into the user directory - if rel_dest.startswith('~'): - rel_dest = expanduser(rel_dest) - - # define some shortcuts - abs_dest = join(cwd, rel_dest) - abs_dirname = dirname(abs_dest) - rel_basename = basename(rel_dest) - rel_dirname = dirname(rel_dest) - - try: - # are we at the end of a directory? - if rel_dest.endswith('/') or rel_dest == '': - _, dirnames, _ = next(os.walk(abs_dest)) - - # are we in the middle of the filename? - else: - _, dirnames, _ = next(os.walk(abs_dirname)) - dirnames = [dn for dn in dirnames \ - if dn.startswith(rel_basename)] - except (OSError, StopIteration): - # os.walk found nothing - pass - else: - dirnames.sort() - dirnames = bookmarks + dirnames - - # no results, return None - if len(dirnames) == 0: - return - - # one result. since it must be a directory, append a slash. - if len(dirnames) == 1: - return self.start(1) + join(rel_dirname, dirnames[0]) + '/' - - # more than one result. append no slash, so the user can - # manually type in the slash to advance into that directory - return (self.start(1) + join(rel_dirname, dirname) for dirname in dirnames) - - -class chain(Command): - """:chain ; ; ... - - Calls multiple commands at once, separated by semicolons. - """ - def execute(self): - for command in self.rest(1).split(";"): - self.fm.execute_console(command) - - -class shell(Command): - escape_macros_for_shell = True - - def execute(self): - if self.arg(1) and self.arg(1)[0] == '-': - flags = self.arg(1)[1:] - command = self.rest(2) - else: - flags = '' - command = self.rest(1) - - if not command and 'p' in flags: - command = 'cat %f' - if command: - if '%' in command: - command = self.fm.substitute_macros(command, escape=True) - self.fm.execute_command(command, flags=flags) - - def tab(self): - from ranger.ext.get_executables import get_executables - if self.arg(1) and self.arg(1)[0] == '-': - command = self.rest(2) - else: - command = self.rest(1) - start = self.line[0:len(self.line) - len(command)] - - try: - position_of_last_space = command.rindex(" ") - except ValueError: - return (start + program + ' ' for program \ - in get_executables() if program.startswith(command)) - if position_of_last_space == len(command) - 1: - selection = self.fm.thistab.get_selection() - if len(selection) == 1: - return self.line + selection[0].shell_escaped_basename + ' ' - else: - return self.line + '%s ' - else: - before_word, start_of_word = self.line.rsplit(' ', 1) - return (before_word + ' ' + file.shell_escaped_basename \ - for file in self.fm.thisdir.files \ - if file.shell_escaped_basename.startswith(start_of_word)) - -class open_with(Command): - def execute(self): - app, flags, mode = self._get_app_flags_mode(self.rest(1)) - self.fm.execute_file( - files = [f for f in self.fm.thistab.get_selection()], - app = app, - flags = flags, - mode = mode) - - def tab(self): - return self._tab_through_executables() - - def _get_app_flags_mode(self, string): - """Extracts the application, flags and mode from a string. - - examples: - "mplayer f 1" => ("mplayer", "f", 1) - "aunpack 4" => ("aunpack", "", 4) - "p" => ("", "p", 0) - "" => None - """ - - app = '' - flags = '' - mode = 0 - split = string.split() - - if len(split) == 0: - pass - - elif len(split) == 1: - part = split[0] - if self._is_app(part): - app = part - elif self._is_flags(part): - flags = part - elif self._is_mode(part): - mode = part - - elif len(split) == 2: - part0 = split[0] - part1 = split[1] - - if self._is_app(part0): - app = part0 - if self._is_flags(part1): - flags = part1 - elif self._is_mode(part1): - mode = part1 - elif self._is_flags(part0): - flags = part0 - if self._is_mode(part1): - mode = part1 - elif self._is_mode(part0): - mode = part0 - if self._is_flags(part1): - flags = part1 - - elif len(split) >= 3: - part0 = split[0] - part1 = split[1] - part2 = split[2] - - if self._is_app(part0): - app = part0 - if self._is_flags(part1): - flags = part1 - if self._is_mode(part2): - mode = part2 - elif self._is_mode(part1): - mode = part1 - if self._is_flags(part2): - flags = part2 - elif self._is_flags(part0): - flags = part0 - if self._is_mode(part1): - mode = part1 - elif self._is_mode(part0): - mode = part0 - if self._is_flags(part1): - flags = part1 - - return app, flags, int(mode) - - def _is_app(self, arg): - return not self._is_flags(arg) and not arg.isdigit() - - def _is_flags(self, arg): - from ranger.core.runner import ALLOWED_FLAGS - return all(x in ALLOWED_FLAGS for x in arg) - - def _is_mode(self, arg): - return all(x in '0123456789' for x in arg) - - -class set_(Command): - """:set