diff options
-rw-r--r-- | fish/config.fish | 4 | ||||
-rw-r--r-- | flake8 | 4 | ||||
-rw-r--r-- | mutt/cache/headers | bin | 817152 -> 868608 bytes | |||
l--------- | newsboat/cache.db | 1 | ||||
-rw-r--r-- | newsboat/config | 72 | ||||
-rw-r--r-- | newsboat/queue | 0 | ||||
-rw-r--r-- | newsboat/urls | 71 | ||||
-rw-r--r-- | newsboat/urls-bak | 24 | ||||
-rw-r--r-- | pdbrc | 30 | ||||
-rw-r--r-- | pdbrc.py | 63 | ||||
-rw-r--r-- | vim/vimrc | 4 |
11 files changed, 269 insertions, 4 deletions
diff --git a/fish/config.fish b/fish/config.fish index 05767f0..08341bc 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -16,7 +16,7 @@ alias xclip='xclip -selection c' set fish_greeting "" set -gx TERM screen-256color #set -gx TERM xterm-256color -set -gx SHELL /usr/local//bin/fish +set -gx SHELL /usr/bin/fish set -gx LESS '-iMRS -x2' set -gx PATH ~/.local/bin $PATH set -gx PATH ~/scripts $PATH @@ -28,7 +28,7 @@ set -gx BOOKMARK_PY_EMAIL bookmark@matthewlemon.com # set this when needed in shells: #BOOKMARK_PY_SMTP_PWD="$(pass AppPasswords/mbsync_fastmail_may2022)" set -gx BOOKMARK_PY_SMTP_PWD TBC -set -gx FZF_DEFAULT_COMMAND 'ag --nocolor -g ""' +set -gx FZF_DEFAULT_COMMAND 'ag --nocolor -g ""' set -gx FZF_CTRL_T_COMMAND $FZF_DEFAULT_COMMAND set -gx FZF_ALT_C_COMMAND $FZF_DEFAULT_COMMAND set -gx FZF_DEFAULT_OPTS '--color info:108,prompt:109,spinner:108,pointer:168,marker:168' @@ -0,0 +1,4 @@ +[flake8] +ignore = E203,E501,E303,E261,E26,E731,E702,F403,F405,W503,W504,E203,D100,D101,D102,D103,D104,D105,D107,D300,D400,C0111 +exclude = .git,__pycache__,docs/source/conf.py,old,build,dist +max-line-length = 88 diff --git a/mutt/cache/headers b/mutt/cache/headers Binary files differindex af0e864..f139ef9 100644 --- a/mutt/cache/headers +++ b/mutt/cache/headers diff --git a/newsboat/cache.db b/newsboat/cache.db new file mode 120000 index 0000000..7d35aa5 --- /dev/null +++ b/newsboat/cache.db @@ -0,0 +1 @@ +/home/lemon/newsboatsync/cache.db
\ No newline at end of file diff --git a/newsboat/config b/newsboat/config new file mode 100644 index 0000000..5c4888a --- /dev/null +++ b/newsboat/config @@ -0,0 +1,72 @@ +#browser "w3m %u" +auto-reload no + +# confirm-mark-feed-read no + +run-on-startup toggle-show-read-feeds + +bind-key j down +bind-key k up +bind-key j next articlelist +bind-key k prev articlelist +bind-key J next-feed articlelist +bind-key K prev-feed articlelist +bind-key G end +bind-key g home +bind-key d pagedown +bind-key u pageup +#bind-key l open +bind-key h quit +bind-key a toggle-article-read +bind-key n next-unread +bind-key N prev-unread +bind-key D pb-download +bind-key U show-urls +bind-key x pb-delete + +refresh-on-startup no +define-filter "Linux articles" "title =~ \"Linux\"" +color info color15 color6 +#macro y set browser "mpv %u"; open-in-browser ; set browser "elinks %u" +#color listfocus color15 color0 +color listfocus color14 color0 +color listfocus_unread color15 color0 bold +#highlight-article "title =~ \"Productivity\"" white red bold +#highlight-article "title =~ \"Setup\"" yellow red bold +#highlight all "Linux" yellow red bold +notify-program "notify-send" +notify-screen yes +notify-xterm yes + +max-items 40 +download-path "~/Downloads" + +player mpv +browser /home/lemon/bin/lynx +macro m set browser "mpv %u" ; open-in-browser ; set browser "/home/lemon/dotfiles/lynx/lynx %u" +# +# press ,y to log the url - you can type a comment to prefix the URL in the log file but it doesn't prompt you... +# massive hack but it works +macro y set browser "get-newsboat-comment.sh %u" ; open-in-browser ; set browser "/home/lemon/dotfiles/lynx/lynx %u" + +# color light +#include /usr/local/share/doc/newsboat/contrib/colorschemes/light + +# # solarized +# color background default default +# color listnormal default default +# color listnormal_unread default default +# color listfocus black cyan +# color listfocus_unread black cyan +# color info default black +# color article default default + +#confirm-mark-all-feeds-read no +#confirm-mark-feed-read no + +show-read-articles no + +# highlights +highlight article "^(Title):.*$" blue default +highlight article "https?://[^ ]+" red default +highlight article "\\[image\\ [0-9]+\\]" green default diff --git a/newsboat/queue b/newsboat/queue new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/newsboat/queue diff --git a/newsboat/urls b/newsboat/urls new file mode 100644 index 0000000..bef8009 --- /dev/null +++ b/newsboat/urls @@ -0,0 +1,71 @@ +https://hnrss.org/newcomments?q=openbsd +https://hnrss.org/newest?q=openbsd +https://hnrss.org/newest?q=plaintext +https://hnrss.org/newest?q=taskwarrior +https://hnrss.org/newest?q=Roam +https://hnrss.org/newest +https://herbertlui.net/feed/ +https://cheapskatesguide.org/cheapskates-guide-rss-feed.xml +https://reallifemag.com/rss +https://yulqen.org/blog/index.xml +https://yulqen.org/stream/index.xml +https://perso.pw/openbsd-current.xml +https://dataswamp.org/~solene/rss.xml +https://baty.net/feed/ +https://bsdly.blogspot.com/feeds/posts/default +https://sivers.org/en.atom +http://feeds.bbci.co.uk/news/rss.xml +http://feeds.bbci.co.uk/sport/rugby-union/rss.xml?edition=uk +https://krebsonsecurity.com/feed/ +https://www.computerweekly.com/rss/IT-security.xml +https://undeadly.org/errata/errata.rss +https://eli.thegreenplace.net/feeds/all.atom.xml +https://m-chrzan.xyz/rss.xml +https://plaintextproject.online/feed.xml +http://ebb.org/bkuhn/blog/rss.xml +https://usesthis.com/feed.atom +http://www.linuxjournal.com/node/feed +http://www.linuxinsider.com/perl/syndication/rssfull.pl +http://feeds.feedburner.com/mylinuxrig +https://landchad.net/rss.xml +https://lukesmith.xyz/rss.xml +https://yewtu.be/feed/channel/UCs6KfncB4OV6Vug4o_bzijg +https://idle.nprescott.com/ +https://eradman.com/ +https://hunden.linuxkompis.se/feed.xml +https://greghendershott.com/ +https://www.romanzolotarev.com/rss.xml +https://feeds.feedburner.com/StudyHacks +https://www.theregister.com/Design/page/feeds.html +https://stevenpressfield.com/feed +https://www.youtube.com/feeds/videos.xml?channel_id=UCrqM0Ym_NbK1fqeQG2VIohg "Tsoding" +https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "Luke Smith" +https://www.youtube.com/feeds/videos.xml?channel_id=UCittVh8imKanO_5KohzDbpg "Paul Joseph Watson" +https://www.youtube.com/feeds/videos.xml?channel_id=UChWbNrHQHvKK6paclLp7WYw "Ben Hoff" +https://www.youtube.com/feeds/videos.xml?channel_id=UC5A6gpksxKgudZxrTOpz0XA "fstori" +https://www.reddit.com/r/stallmanwasright.rss +http://feeds2.feedburner.com/Command-line-fu +https://www.debian.org/News/news +https://opensource.org/news.xml +https://www.fsf.org/static/fsforg/rss/news.xml +https://jordanorelli.com/rss +https://www.c0ffee.net/rss/ +http://tonsky.me/blog/atom.xml +https://akkshaya.blog/feed +https://miguelmota.com/index.xml +https://web3isgoinggreat.com/feed.xml +https://feeds.feedburner.com/arstechnica/open-source +https://karl-voit.at/feeds/lazyblorg-all.atom_1.0.links-only.xml +https://nitter.net/openbsdnow/rss +https://nitter.net/openbsd/rss +https://nitter.net/webzinepuffy/rss +https://nitter.net/bsdnow/rss +https://nitter.net/jcs/rss +https://nitter.net/openbsdjournal/rss +https://nitter.net/pitrh/rss +https://nitter.net/sizeofvoid/rss +https://nitter.net/canadianbryan/rss +https://nitter.net/wesley974/rss +https://nitter.net/slashdot/rss +https://www.romanzolotarev.com/rss.xml +https://www.romanzolotarev.com/n/rss.xml diff --git a/newsboat/urls-bak b/newsboat/urls-bak new file mode 100644 index 0000000..7f8c4d4 --- /dev/null +++ b/newsboat/urls-bak @@ -0,0 +1,24 @@ +https://www.youtube.com/channel/UC2eYFnH61tmytImy1mTYvhA +https://taskwarrior.org/feed.rss +http://feeds2.feedburner.com/Command-line-fu +http://feeds.feedburner.com/mylinuxrig +http://feeds.doughellmann.com/PyMOTW +https://plaintextproject.online/feed.xml +https://www.reddit.com/r/linuxmasterrace/.rss +http://feedproxy.google.com/linuxtoday/linux +https://www.reddit.com/r/rugbyunion/.rss +http://planetpython.org/rss20.xml +http://www.linuxjournal.com/node/feed +http://www.linuxinsider.com/perl/syndication/rssfull.pl +http://usesthis.com/feed/ +http://joeyh.name/blog/index.rss +https://www.debian.org/News/news +http://planet.debian.org/rss20.xml +https://opensource.org/news.xml +http://blog.canonical.com/feed +http://feeds2.feedburner.com/Command-line-fu +https://www.fsf.org/static/fsforg/rss/news.xml +http://feeds.doughellmann.com/PyMOTW +http://feeds.feedburner.com/mylinuxrig +https://blog.nightly.mozilla.org/feed/ +https://www.gamingonlinux.com/article_rss.php @@ -0,0 +1,30 @@ +Ned's .pdbrc + +# Print a dictionary, sorted. %1 is the dict, %2 is the prefix for the names. +alias p_ for k in sorted(%1.keys()): print "%s%-15s= %-80.80s" % ("%2",k,repr(%1[k])) + +# Print the instance variables of a thing. +alias pi p_ %1.__dict__ %1. + +# Print the instance variables of self. +alias ps pi self + +# Print the locals. +alias pl p_ locals() local: + +# Next and list, and step and list. +alias nl n;;l +alias sl s;;l + +# Short cuts for walking up and down the stack +alias uu u;;u +alias uuu u;;u;;u +alias uuuu u;;u;;u;;u +alias uuuuu u;;u;;u;;u;;u +alias dd d;;d +alias ddd d;;d;;d +alias dddd d;;d;;d;;d +alias ddddd d;;d;;d;;d;;d + + +# Taken from https://stackoverflow.com/questions/1623039/python-debugging-tips diff --git a/pdbrc.py b/pdbrc.py new file mode 100644 index 0000000..b3a8675 --- /dev/null +++ b/pdbrc.py @@ -0,0 +1,63 @@ +# import pdb +# +# +# class Config(pdb.DefaultConfig): +# sticky_by_default = True +# current_line_color = 93 +# use_pygments = True +# colorscheme = +# +# +# def _pdbrc_init(): +# # Save history across sessions +# import readline +# histfile = ".pdb-pyhist" +# try: +# readline.read_history_file(histfile) +# except IOError: +# pass +# import atexit +# atexit.register(readline.write_history_file, histfile) +# readline.set_history_length(500) +# +# +# _pdbrc_init() +# del _pdbrc_init + + +import readline +import pdb + + +class Config(pdb.DefaultConfig): + + editor = 'e' + stdin_paste = 'epaste' + filename_color = pdb.Color.lightgray + use_terminal256formatter = False + sticky_by_default = True + #exec_if_unfocused = "play ~/sounds/dialtone.wav 2> /dev/null &" + + def __init__(self): + # readline.parse_and_bind('set convert-meta on') + # readline.parse_and_bind('Meta-/: complete') + + try: + from pygments.formatters import terminal + except ImportError: + pass + else: + self.colorscheme = terminal.TERMINAL_COLORS.copy() + self.colorscheme.update({ + terminal.Keyword: ('darkred', 'red'), + terminal.Number: ('darkyellow', 'yellow'), + terminal.String: ('brown', 'green'), + terminal.Name.Function: ('darkgreen', 'blue'), + terminal.Name.Namespace: ('teal', 'turquoise'), + }) + + def setup(self, pdb): + # make 'l' an alias to 'longlist' + Pdb = pdb.__class__ + Pdb.do_l = Pdb.do_longlist + Pdb.do_st = Pdb.do_sticky @@ -89,7 +89,7 @@ noremap k gk set shell=/bin/sh set hi=500 set novisualbell -set nonumber "show line numbers +set number "show line numbers set wildmenu "enable a menu that shows tab completion options in the status bar set wildchar=<TAB> set showmatch "highlights matching brackets on cursor hover @@ -122,7 +122,7 @@ set equalalways set showmode set nobackup set listchars=tab:»→,trail:␣ -set grepprg=/usr/local/bin/ag +set grepprg=/usr/bin/ag " i don't bother with folding, but it's here if i need it. if has('folding') |