dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 9ccfe57ad007dd7e473ac1567f91a76b2dc40602
parent 8a683fb5ed0c07bd306e168b4f18aebe7a59f25c
Author: hhvn <hayden@haydenvh.com>
Date:   Mon, 26 Oct 2020 17:12:25 +0000

remove gnu.matrix dns scripts

Diffstat:
M.config/nvim/colors/haydenh.vim | 2+-
M.scripts/bin/dotadd | 2--
D.scripts/bin/getdns | 17-----------------
D.scripts/bin/hl-dns | 25-------------------------
D.scripts/bin/updatehosts | 6------
5 files changed, 1 insertion(+), 51 deletions(-)

diff --git a/.config/nvim/colors/haydenh.vim b/.config/nvim/colors/haydenh.vim @@ -36,7 +36,7 @@ hi Visual cterm=reverse gui=reverse " hi DiffText guibg=olivedrab " hi DiffAdd guibg=slateblue " hi DiffDelete guibg=coral -hi Folded cterm=bold,underline ctermfg=255 ctermbg=none guifg=#aaaaaa guibg=#555555 gui=bold,underline +hi Folded cterm=bold ctermfg=255 ctermbg=none guifg=#aaaaaa guibg=#555555 gui=bold hi FoldColumn cterm=none ctermfg=249 ctermbg=1 guifg=#b2b2b2 gui=none " hi cIf0 guifg=gray " hi diffOnly guifg=red gui=bold diff --git a/.scripts/bin/dotadd b/.scripts/bin/dotadd @@ -37,7 +37,6 @@ gitadd .config/neomutt/mailcap gitadd .config/neomutt/signatures gitadd .config/git/ gitadd .config/nvim/ -gitadd .config/surf/cookies.txt gitadd .config/surf/script.js gitadd .config/surf/styles git rm --cache .config/nvim/.netrwhist @@ -47,7 +46,6 @@ git rm --cache .config/irssi/config.autosave git rm --cache .config/irssi/default.theme git rm --cache .config/irssi/saved_nick_colors git rm -rf --cache .config/irssi/nicklist* -git rm --cache .config/surf/bookmarks.txt gitadd .config/galias gitadd .config/redshift/ gitadd .ssh/config diff --git a/.scripts/bin/getdns b/.scripts/bin/getdns @@ -1,17 +0,0 @@ -#!/bin/sh - -mkdir -p sources -sources="gnu.matrix 45.32.178.12" # each host is seperated by a space char, priority from left to right - -for s in $sources -do - curl -s gopher://$s/1/dns > sources/$s - touch sources/$s -done - -for s in $sources -do - sf="$sf sources/$s" -done - -cat $(echo "$sf" | sed 's/^ //g') | sort | uniq > hosts diff --git a/.scripts/bin/hl-dns b/.scripts/bin/hl-dns @@ -1,25 +0,0 @@ -#!/bin/sh - -path="/tmp" # change this depending on the base of your gopher server -cd $path - -mkdir -p sources -touch dns.custom -sources="gnu.matrix 45.32.178.12" # each host is seperated by a space char, priority from left to right - -for s in $sources -do - curl gopher://$s/1/dns > sources/$s - touch sources/$s -done - -for s in $sources -do - sf="$sf sources/$s" -done - -cat $(echo "$sf" | sed 's/^ //g') dns.custom | sort | uniq > dns -[ ! -f /etc/hosts.old ] && cp /etc/hosts /etc/hosts.old -cat /etc/hosts.old dns > /etc/hosts - -rm -rf sources diff --git a/.scripts/bin/updatehosts b/.scripts/bin/updatehosts @@ -1,6 +0,0 @@ -#!/bin/sh - -[ -z $1 ] && echo "usage: script /path/to/dnsfile" && exit 1 - -[ ! -f /etc/hosts.old ] && cp /etc/hosts /etc/hosts.old && echo "Copying /etc/hosts to /etc/hosts.old - if you want to manually add to your hosts, please append /etc/hosts.old, and rerun this script, as anything added to /etc/hosts will be overwritten in next run of this script." -cat /etc/hosts.old hosts > newhosts && echo "new hosts file saved to 'newhosts'"