From 1547fc9797b25d9074007ce1818bf827b8d299c7 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Mon, 19 Mar 2018 21:20:20 -0500 Subject: [PATCH 01/27] Added working copy routine --- file_processing/archive_statements.pl | 75 ++++++++++++++++----------- 1 file changed, 45 insertions(+), 30 deletions(-) diff --git a/file_processing/archive_statements.pl b/file_processing/archive_statements.pl index a454926..2455608 100755 --- a/file_processing/archive_statements.pl +++ b/file_processing/archive_statements.pl @@ -2,11 +2,15 @@ use strict; use warnings; +# Script to archive the financial data from the previous year use Time::Piece; +use File::Basename; use File::Find::Rule; # find all the subdirectories of a given directory # http://search.cpan.org/~rclamp/File-Find-Rule-0.32/README use File::Path qw(make_path remove_tree); -use File::Copy; +#use File::Copy; +use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmove dirmove); +use List::MoreUtils qw(uniq); my $now = localtime; my $year = $now->year; @@ -14,19 +18,22 @@ print "Year is $year\n"; # Get year to archive from current year my $lastyear = $now->add_years(-1)->year; -my $lasttaxyear = $now->add_years(-2)->year; -print("Last year was $lastyear and tax year was $lasttaxyear\n"); +print("Last year was $lastyear\n"); # Define and create folders -my ( $financial_folder, $financial_archive_folder, $lastyear_folder, $lasttaxyear_folder ); -$financial_folder = '/home/tracey/Documents/financial/current_year/'; -$financial_archive_folder = '~/Documents/financial/1_financial_archives/'; -$lastyear_folder = $financial_archive_folder . $lastyear . 'FinancialArchives'; -$lasttaxyear_folder = $financial_archive_folder . $lasttaxyear . 'TaxArchives'; -my @folders = ( $financial_folder, $financial_archive_folder, $lastyear_folder, $lasttaxyear_folder ); +my (%files1, %files2); +my $financial_folder = '~/Documents/financial/current_year'; +my $financial_archive_folder = '~/Documents/financial/1_financial_archives/'; +my $lastyear_folder = $financial_archive_folder . $lastyear . 'FinancialArchives'; +my @folders = ( $financial_folder, $financial_archive_folder, $lastyear_folder ); +=begin comment +# Will be using this kind of thing to get only files with current year for deletion foreach my $folder ( @folders ) { + if ( -d $folder ) { + print("Folder exists: $folder\n"); + } unless( -d $folder ) { print("Creating the folder \"$folder\"\n"); die "Could not create directory! $!" unless make_path($folder); @@ -37,29 +44,37 @@ foreach my $folder ( @folders ) { my $find_rule = File::Find::Rule->new; $find_rule->nonempty->maxdepth(1)->mindepth(1)->relative; my @curr_subdirs = $find_rule->directory->in( $financial_folder ); +=end comment +=cut -print("Copying current directories to archives folder\n"); -foreach my $curr_subdir (@curr_subdirs) { - my $targetdir = $lastyear_folder . "/" . $curr_subdir; - print ("Target dir is $targetdir\n"); - #unless( -d $targetdir ){ - print("Copying directory \"$curr_subdir\"\n"); - print("Will copy to " . $targetdir . "/\n"); - # copy directories to archive directories the perl way - #copy( $curr_subdir, $lastyear_folder ) or die "Copy failed: $!"; - #} -} +print("Copying current directories to archive folder\n"); +print("From: $financial_folder\n"); +print("To: $lastyear_folder\n"); + +system('cp -rp ' . $financial_folder . '/* ' . $lastyear_folder); +die("Can't launch cp: $!\n") if $? == -1; +die("cp killed by signal ".($? & 0x7F)."\n") if $? & 0x7F; +die("cp exited with error ".($? >> 8)."\n") if $? >> 8; + +# Make sure contents match +#compare_dirs( $curr_subdir, $lastyear_folder ); + +# Delete all files from current year from archive folders # compare new directories to old directories to make sure they are the same -# Or DIE +sub compare_dirs { + my ( $dir1, $dir2 ) = @_; + File::DirCompare->compare($dir1, $dir2, sub { + my ($a, $b) = @_; + if (! $b) { + printf "Only in %s: %s\n", dirname($a), basename($a); + } elsif (! $a) { + printf "Only in %s: %s\n", dirname($b), basename($b); + } else { + print "Files $a and $b differ\n"; + } + }); +} -# For each CURR folder -# For each file -# If mtime year < this year -# Delete file - -# For each ARCH folder -# For each file -# If mtime year > last year -# Delete file +# Delete old directory From fd1568af8480e822feee23f74097c26ee41142d8 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Mon, 19 Mar 2018 21:22:25 -0500 Subject: [PATCH 02/27] Splitting out tax file processing to separate file --- file_processing/archive_taxes.pl | 65 ++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 file_processing/archive_taxes.pl diff --git a/file_processing/archive_taxes.pl b/file_processing/archive_taxes.pl new file mode 100644 index 0000000..a454926 --- /dev/null +++ b/file_processing/archive_taxes.pl @@ -0,0 +1,65 @@ +#!/usr/bin/perl +use strict; +use warnings; + +use Time::Piece; +use File::Find::Rule; # find all the subdirectories of a given directory +# http://search.cpan.org/~rclamp/File-Find-Rule-0.32/README +use File::Path qw(make_path remove_tree); +use File::Copy; + +my $now = localtime; +my $year = $now->year; +print "Year is $year\n"; + +# Get year to archive from current year +my $lastyear = $now->add_years(-1)->year; +my $lasttaxyear = $now->add_years(-2)->year; + +print("Last year was $lastyear and tax year was $lasttaxyear\n"); + +# Define and create folders +my ( $financial_folder, $financial_archive_folder, $lastyear_folder, $lasttaxyear_folder ); +$financial_folder = '/home/tracey/Documents/financial/current_year/'; +$financial_archive_folder = '~/Documents/financial/1_financial_archives/'; +$lastyear_folder = $financial_archive_folder . $lastyear . 'FinancialArchives'; +$lasttaxyear_folder = $financial_archive_folder . $lasttaxyear . 'TaxArchives'; +my @folders = ( $financial_folder, $financial_archive_folder, $lastyear_folder, $lasttaxyear_folder ); + +foreach my $folder ( @folders ) { + unless( -d $folder ) { + print("Creating the folder \"$folder\"\n"); + die "Could not create directory! $!" unless make_path($folder); + } +} + +# Get current folder list for nonempty directories +my $find_rule = File::Find::Rule->new; +$find_rule->nonempty->maxdepth(1)->mindepth(1)->relative; +my @curr_subdirs = $find_rule->directory->in( $financial_folder ); + +print("Copying current directories to archives folder\n"); +foreach my $curr_subdir (@curr_subdirs) { + my $targetdir = $lastyear_folder . "/" . $curr_subdir; + print ("Target dir is $targetdir\n"); + #unless( -d $targetdir ){ + print("Copying directory \"$curr_subdir\"\n"); + print("Will copy to " . $targetdir . "/\n"); + # copy directories to archive directories the perl way + #copy( $curr_subdir, $lastyear_folder ) or die "Copy failed: $!"; + #} +} + + +# compare new directories to old directories to make sure they are the same +# Or DIE + +# For each CURR folder +# For each file +# If mtime year < this year +# Delete file + +# For each ARCH folder +# For each file +# If mtime year > last year +# Delete file From 517c1f54b66e55beb289a09e93ec365cbd05b99b Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Tue, 20 Mar 2018 18:13:50 -0500 Subject: [PATCH 03/27] Got dircopy and directory compare suboutine working --- file_processing/archive_statements.pl | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/file_processing/archive_statements.pl b/file_processing/archive_statements.pl index 2455608..0e98b98 100755 --- a/file_processing/archive_statements.pl +++ b/file_processing/archive_statements.pl @@ -9,8 +9,10 @@ use File::Find::Rule; # find all the subdirectories of a given directory # http://search.cpan.org/~rclamp/File-Find-Rule-0.32/README use File::Path qw(make_path remove_tree); #use File::Copy; -use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmove dirmove); +#use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmove dirmove); +use File::Copy::Recursive qw(dircopy); use List::MoreUtils qw(uniq); +use File::DirCompare; my $now = localtime; my $year = $now->year; @@ -23,8 +25,8 @@ print("Last year was $lastyear\n"); # Define and create folders my (%files1, %files2); -my $financial_folder = '~/Documents/financial/current_year'; -my $financial_archive_folder = '~/Documents/financial/1_financial_archives/'; +my $financial_folder = '/home/tracey/Documents/financial/current_year/'; +my $financial_archive_folder = '/home/tracey/Documents/financial/1_financial_archives/'; my $lastyear_folder = $financial_archive_folder . $lastyear . 'FinancialArchives'; my @folders = ( $financial_folder, $financial_archive_folder, $lastyear_folder ); @@ -47,18 +49,13 @@ my @curr_subdirs = $find_rule->directory->in( $financial_folder ); =end comment =cut - print("Copying current directories to archive folder\n"); print("From: $financial_folder\n"); print("To: $lastyear_folder\n"); - -system('cp -rp ' . $financial_folder . '/* ' . $lastyear_folder); -die("Can't launch cp: $!\n") if $? == -1; -die("cp killed by signal ".($? & 0x7F)."\n") if $? & 0x7F; -die("cp exited with error ".($? >> 8)."\n") if $? >> 8; +dircopy($financial_folder, $lastyear_folder) or die $!; # Make sure contents match -#compare_dirs( $curr_subdir, $lastyear_folder ); +compare_dirs( $financial_folder, $lastyear_folder ); # Delete all files from current year from archive folders @@ -78,3 +75,8 @@ sub compare_dirs { } # Delete old directory +sub delete_dirs { + # For all files in archive dir that are newer than last year delete them + + # For all file in current folder that are older than this year delete them +} From 3475eadfe53e24e426e198951a98397e96cda3ee Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Tue, 17 Apr 2018 20:41:15 -0500 Subject: [PATCH 04/27] Added compare logic to archive statements --- file_processing/archive_statements.pl | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/file_processing/archive_statements.pl b/file_processing/archive_statements.pl index 0e98b98..30c9867 100755 --- a/file_processing/archive_statements.pl +++ b/file_processing/archive_statements.pl @@ -58,10 +58,12 @@ dircopy($financial_folder, $lastyear_folder) or die $!; compare_dirs( $financial_folder, $lastyear_folder ); # Delete all files from current year from archive folders +delete_dirs($financial_folder, $lastyear_folder, $year, $lastyear); # compare new directories to old directories to make sure they are the same sub compare_dirs { my ( $dir1, $dir2 ) = @_; + print("Making sure the copy was complete and all files match\n"); File::DirCompare->compare($dir1, $dir2, sub { my ($a, $b) = @_; if (! $b) { @@ -74,9 +76,19 @@ sub compare_dirs { }); } -# Delete old directory +# Delete old files sub delete_dirs { - # For all files in archive dir that are newer than last year delete them + my ( $new_dir, $old_dir, $curr_year, $last_year ) = @_; + print("Deleting files from current year in archives\ and"); + print("files from last year from current folder\n"); + # For all files in archive dir that are newer than last year delete them + my $find_rule = File::Find::Rule->new; +# $find_rule->nonempty->maxdepth(1)->mindepth(1)->relative; + $find_rule->name('*.' . $lastyear . '*'); + my @curr_subdirs = $find_rule->directory->in( $new_dir ); +foreach $subdir(@curr_subdirs) { + print("THING"); +} # For all file in current folder that are older than this year delete them } From 3ccd51e70f20b0cd5bcd3a58b606b386fe66b2c6 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 19 May 2018 14:06:20 -0500 Subject: [PATCH 05/27] Corrected keychain invocation in zshrc --- home_zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home_zsh/.zshrc b/home_zsh/.zshrc index 6ba5565..c898414 100644 --- a/home_zsh/.zshrc +++ b/home_zsh/.zshrc @@ -94,4 +94,4 @@ echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK; export SSH_AUTH_SOCK;" >>~/.thestuff #ssh-agent # Export key file to agent keychain -keychain --agents ssh --quick --quiet --noask /home/tracey/.ssh/* \ No newline at end of file +keychain --agents ssh --quick --quiet --noask /home/tracey/.ssh/*.pub From 0ec4d135bd33e1094b07ab41cc47e5f589599064 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 19 May 2018 14:31:26 -0500 Subject: [PATCH 06/27] Changed from emacs to vim bindings. Made notes --- home_zsh/.zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home_zsh/.zshrc b/home_zsh/.zshrc index c898414..6b09cc3 100644 --- a/home_zsh/.zshrc +++ b/home_zsh/.zshrc @@ -1,4 +1,6 @@ # Set up the prompt +# Note: Check the zsh underlying engine on the system +# Manjaro uses Prezto autoload -Uz promptinit promptinit @@ -14,7 +16,7 @@ bindkey '^H' backward-kill-word bindkey '^F' forward-word bindkey '^B' backward-word # Use emacs keybindings even if our EDITOR is set to vi -bindkey -e +# bindkey -e # Keep 1000 lines of history within the shell and save it to ~/.zsh_history: HISTSIZE=1000 @@ -52,9 +54,13 @@ else print "404: ~/.zsh/zshalias not found." fi +# Note: Only use this if keyagent is not installed / available eval `ssh-agent -s` && ssh-agent ssh-add .ssh/tlc_gitlab +# Export key file to agent keychain +#keychain --agents ssh --quick --quiet --noask /home/tracey/.ssh/*.pub + #------------------------------------------------------------- # Prompt bits #------------------------------------------------------------- From 74640cac00c5c7ca9a8a27ff4b7192445b405181 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sun, 20 May 2018 12:07:59 -0500 Subject: [PATCH 07/27] Cleaned up visible output --- file_processing/archive_statements.pl | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/file_processing/archive_statements.pl b/file_processing/archive_statements.pl index 30c9867..5eb9edd 100755 --- a/file_processing/archive_statements.pl +++ b/file_processing/archive_statements.pl @@ -8,11 +8,11 @@ use File::Basename; use File::Find::Rule; # find all the subdirectories of a given directory # http://search.cpan.org/~rclamp/File-Find-Rule-0.32/README use File::Path qw(make_path remove_tree); -#use File::Copy; #use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmove dirmove); use File::Copy::Recursive qw(dircopy); use List::MoreUtils qw(uniq); use File::DirCompare; +use Data::Dumper; my $now = localtime; my $year = $now->year; @@ -52,13 +52,13 @@ my @curr_subdirs = $find_rule->directory->in( $financial_folder ); print("Copying current directories to archive folder\n"); print("From: $financial_folder\n"); print("To: $lastyear_folder\n"); -dircopy($financial_folder, $lastyear_folder) or die $!; +dircopy( $financial_folder, $lastyear_folder ) or die $!; # Make sure contents match compare_dirs( $financial_folder, $lastyear_folder ); # Delete all files from current year from archive folders -delete_dirs($financial_folder, $lastyear_folder, $year, $lastyear); +delete_dirs( $financial_folder, $lastyear_folder, $year, $lastyear ); # compare new directories to old directories to make sure they are the same sub compare_dirs { @@ -79,16 +79,19 @@ sub compare_dirs { # Delete old files sub delete_dirs { my ( $new_dir, $old_dir, $curr_year, $last_year ) = @_; - print("Deleting files from current year in archives\ and"); - print("files from last year from current folder\n"); + print("Deleting files from current year in archives\n"); + print("and files from last year from current folder\n"); + print("New dir in the delete_dirs is $new_dir\n"); # For all files in archive dir that are newer than last year delete them my $find_rule = File::Find::Rule->new; # $find_rule->nonempty->maxdepth(1)->mindepth(1)->relative; $find_rule->name('*.' . $lastyear . '*'); my @curr_subdirs = $find_rule->directory->in( $new_dir ); -foreach $subdir(@curr_subdirs) { - print("THING"); + print("This is the current subdirs in delete_dirs\n\n"); + print Dumper(\@curr_subdirs); +foreach my $subdir(@curr_subdirs) { + print("Directory in current subdir is $subdir"); } # For all file in current folder that are older than this year delete them } From 57c1d77b2bceafb3830858fa6a89b7819f5b0940 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sun, 20 May 2018 12:11:38 -0500 Subject: [PATCH 08/27] removed unneded zsh history file --- home_zsh/.zsh_history | 1006 ----------------------------------------- 1 file changed, 1006 deletions(-) delete mode 100644 home_zsh/.zsh_history diff --git a/home_zsh/.zsh_history b/home_zsh/.zsh_history deleted file mode 100644 index e44c36c..0000000 --- a/home_zsh/.zsh_history +++ /dev/null @@ -1,1006 +0,0 @@ -kill 5314 -kill 5315 -pgrep -fla Pillar -sudo sed -i 's/false/true/g' /etc/apt/apt.conf.d/00recommends -which unrar -sudo apt-get install gnome-scan-common libgnomescan0 flegita -apt-cache search sane -sudo apt-get install - API library for scanners -- extra backends -sudo apt-get install libsane-extras -sudo apt-get install sane -sudo apt-get install xsane -sudo apt-get install sane-utils -ipconfig -mount |grep zorin -dd if=memtest86-usb.img of=/dev/sdd -sudo dd if=memtest86-usb.img of=/dev/sdd -cd ../ownCloud -find -iname "*.cfg" -find -iname "*n66u*" -find -iname "*asus*" -cd Documents/owncloud/documents/tech -rm ea4_install_log_2014.12.11.txt -ll asus_router_rma -vm asus_VE258_UserGuide_English.pdf user_manuals -cd linux_config -ll hexchat -head hexchat/hexchat.conf -head hexchat/servlist.conf -cd hexchat -more chanopt.conf -ll scrollback -grep voice * -grep -i voice * -rm * -mv servlist.conf servlist.conf.orig -mv hexchat.conf hexchat.conf.orig -rm -rf Notes.old -find -iname "*server*" -ag server |grep software -cd documents -cd tech -cd sysadmin -touch colo-server-software.txt -sudo apt-get install k3b -sudo apt-get install kcddb -sudo apt-cache search kcddb -sudo apt-get install libkcddb4 kde-config-cddb -which synthing -pgrep -fla synthing -ll .grsync -ll .sync -ll /usr/local/bin |grep sync -ll /opt |grep sync -find -iname "syncthing*" -cd syncthing -ll |grep sync -ptree |grep -B 2 -A 2 syncthing -pstree |grep -B 2 -A 2 syncthing -ll |grep var -pstree -/usr/bin/syncthing -/usr/bin/syncthing -upgrade -/usr/bin/syncthing -upgrade-check -sudo /usr/bin/syncthing -upgrade-check -(syncthing) & -find -iname "*music*" -find -iname "*music*" |grep note -ack cleanup Documents/* -ag cleanup Documents/* -ag cleanup Documents/* -l |grep music -gedit Documents/owncloud/documents/music_cleanup.txt -mount -mount |grep 20 -sudo mlabel -i /dev/sdd1 ::USB_Music -ip addr -pgrep -fla gnucash -ps -ef |grep cash -gnucash & -locomo -s -lomoco -s -apt-cache search easystroke -apt-cache search setpoint -apt-cache search logitech -apt-cache search logitech |grep -v remote -ll |grep hex -cp -R hexchat ~/ownCloud/backups -ll ~/ownCloud/backups -ll ~/ownCloud/backups/hexchat -sudo add-apt-repository ppa:fingerprint/fingerprint-gui -sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui -syncthing n95PRBHb9jdg44EDJ71t -sudo add-apt-repository ppa:linrunner/tlp -sudo apt-get install tlp tlp-rdw -ll |grep pid -sudo apt-get remove SpiderOak -rm -rf SpiderOak -ll |grep purp -find -iname "*purp*" -find -iname "*purp*" |grep -v opera -find -iname "*purp*" |grep -v opera |grep -v chrom -ll |grep moz -ll |grep thun -ll |grep libpu -ll|grep pid -ll|grep pidg -ll SpiderOak\ Hive -ll .mozilla -find -iname "*thunderb*" -ll .thunderbird -less .thunderbird/profiles.ini -rm -rf .thunderbird/3hn91gia.default -cp -R .thunderbird ownCloud/backups -rm -rf ownCloud/backups/.thunderbird/Crash\ Reports -ll .purple -cp -R .purple ownCloud/backups -cd ownCloud/backups -mv .purple purple -mv .thunderbird thunderbird -find -iname "budget*" -find -iname "*budg*" |grep 2016 -more ./Desktop/budget2016 -file ./Desktop/budget2016 -cd /tmp -ll hsperfdata_mdm -ll lu6597ticqkq.tmp -lkl sni-qt_owncloud_4008-kCbBXw -ll sni-qt_owncloud_4008-kCbBXw -find -iname "*budg*" -ll .local/share/Trash -ll .local/share/Trash/files -ll .local/share/Trash/expunged -ll Documents/owncloud -ll Documents/owncloud/documents/financial -cd .config/libreoffice/4/user/ -cd backup -find -iname "*bud*" -find -iname "*.od*"" -find -iname "*.od*" -find -iname "*.bak*" -sudo apt-cache search recuva -sudo apt-cache search foremost -sudo apt-get install foremost -mount |grep home -mkdir recovered -sudo foremost -t ods -i /dev/sda6 -o /home/tracey/recovered -man foremost -sudo vim /etc/foremost.conf -sudo foremost -t none -i /dev/sda6 -o /home/tracey/recovered -sudo foremost -i /dev/sda6 -o /home/tracey/recovered -cd recovered -ack -sudo apt-cache search ack |grep search -sudo apt-cache search ack |grep search|grep silver -ag budget * -sudo ag budget * -sudo ag budget * |grep 2016 -sudo ag -l visa * -sudo evince pdf/06094848.pdf -sudo evince pdf/11108352.pdf -ll xls -sudo ls -la xls -sudo ls -la xlsx -sudo ls -la ole -sudo grep chase ole/* -sudo chown -R tracey.tracey ole -ll ole |grep -v tracey -ll ole -ll sxw -sudo ls -la sxc -sudo ls -la sxw -sudo chown -R tracey.tracey sxw -ll ~/ |grep rash -ll ~/ |grep in -ll ~/ |grep cycl -ll ~/Desktop -ll ~/.config/libreoffice/3 -ll ~/.config/libreoffice/3/user -ll ~/.config/libreoffice/3/user/ba -ll ~/.config/libreoffice/3/user/backup -rm -rf ~/.config/libreoffice/3 -ll ~/.config/libreoffice/4 -ll ~/.config/libreoffice/4/cache -ll ~/.config/libreoffice/4/user -ll ~/.config/libreoffice/4/user/backup -ll ~/.config/libreoffice/4/user/database -ll ~/.config/libreoffice/4/user/temp -find /media/tracey/saturn -iname "*budg*" -find /media/tracey/saturn -iname "*budg*" |grep 2016 -sudo ag -l budget * -ll |grep .stver -ll |grep ods -scp cp:/backup/syncthing/mint_traceyhome/budget2016_recovered.ods budget2016_recovered.ods -ll budget2016_recovered.ods -cd /usr/lib/keepass2/plugins -sudo cp ~/.mozilla/firefox/tpc5i51p.tracey/extensions/keefox@chris.tomlinson/deps/KeePassRPC.plgx . -find -iname "ebay*" -find -iname "*470*" -find -iname "*470*" |grep -v cache -sudo apt-get do-dist-upgrade -sudo apt-get do-distribution-upgrade -sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak -sudo cp /etc/apt/sources.list.d/official-package-repositories.list /etc/apt/sources.list.d/official-package-repositories.list.bak -apt install mintupgrade -intupgrade check -mintupgrade download -mintupgrade upgrade -sudo apt-get install ktimezoned -sudo apt-cache search ktimezoned -sudo apt-cache search ktimezone -sudo apt-cache search timezone -sudo apt-cache search timezone |grep kde -ll .ssh/ -vim .ssh/conf -ssh -i ~/.ssh/tlc_server_dsa root@208.74.120.106 -ssh -p 227 -i ~/.ssh/tlc_server_dsa root@208.74.120.106 -grep Default /etc/apt/apt.conf.d -grep Default /etc/apt/apt.conf -[200~sudo apt clean -~sudo apt-clean -sudo apt-clean -sudo apt clean -ll /root |grep syn -ll /roob -ll /boot -sudo apt-get install audacity -rm -rf ringtones -cd trgtd -ll .trgtd-installer -mkdir .trgtd-installer -sh uninstall.sh -vim uninstall.sh -rm -rf trgtd -rm -rf .trgtd-installer -file 05_debian_theme -vim 05_debian_theme -vim ~/.zsh/zshalias -sourc .zshrc -ssh -i .ssh/tlc_server_dsa root@cp.tlcnet.info -scp -P 227 -i ~/.ssh/tlc_server_dsa TraceyClarkAuthority.crt root@cp.tlcnet.info:/root/ -scp -P 227 -i ~/.ssh/tlc_server_dsa tlcnet.crt root@cp.tlcnet.info:/root/ -which certutil -rm tlcnet-all.pem -rm tlcnet.crt -rm tlcnet.p* -scp -P 227 -i ~/.ssh/tlc_server_dsa *.crt root@cp.tlcnet.info:/root/ -cd ownCloud/certs -rm owncloud.pem -mv TraceyClarkAuthority.crt cp.tlcnet.info.ca -sudo apt-cache search airdroid -cd [200~file:////home/tracey/.mozilla/firefox/tpc5i51p.tracey/extensions/keefox@chris.tomlinson/deps~ -cd file:////home/tracey/.mozilla/firefox/tpc5i51p.tracey/extensions/keefox@chris.tomlinson/deps -cd /home/tracey/.mozilla/firefox/tpc5i51p.tracey/extensions/keefox@chris.tomlinson/deps -sudo cp KeePassRPC.plgx /usr/lib/keepass2/plugins -sudo apt-get upgrade -alsamixer -aplay -l -sudo apt-get remove terminator -sudo vim /etc/asound.conf -ll /etc |grep sound -ll /etc/esound -ll /etc/sound -sudo vim /etc/esound/esd.conf -ag pacmd * -pacmd set-default-sink 9 -pacmd list-sink-inputs -sudo apt-cache search bijiben -sudo apt-get install bijiben -sudo apt-get remove bijiben -ll /usr/lib/keepass2/plugins -ll Downloads/KeePassHttp.plgx -ll Documents/financial/wells_fargo |grep sav -sudo -S bash "apt-get update && apt-get upgrade" -history |grep apt -sudo zsh -c "apt-get update && apt-get upgrade" -rm nixnote_log* -rm mint18upgrade.tst -which ag -ag aplay * -pacmd list-sinks | grep name: | awk ' { print substr($2,2,length($2)-2) } ' -pacmd list-sinks | grep name: -pacmd list-sinks | grep HDMI -pacmd list-sinks | grep -B 2 HDMI -[200~pacmd list-sinks | grep name: | awk ' { print substr($2,2,length($2)-2) } ' | grep analog~ -pacmd list-sinks | grep name: | awk ' { print substr($2,2,length($2)-2) } ' | grep analog -pacmd list-sinks | grep name: | awk ' { print substr($2,2,length($2)-2) } ' | grep HDMI -pacmd list-sinks | grep HDMI | awk ' { print substr($2,2,length($2)-2) } ' -pacmd list-sinks | grep -e 'name:' -e 'index' - pacmd list-sinks | grep -e 'name:' -e 'alsa.device ' -e 'alsa.subdevice ' -pacmd list-sinks | grep -e 'name:' -e 'alsa.device ' -e 'alsa.subdevice ' -sudo vim /etc/pulse/default.pa -pacmd list-sinks -pacmd list-sinks|less -pacmd list-sinks|grep -B 5 -A 5 index -apt-cache search padevchoo -apt-cache search pulse |grep choose -apt-cache search pulse -apt-cache search pulse |grep dev -apt-cache search pulse |grep device -apt-cache search pulse |grep contr -sudo apt-get install pavucontrol pasystray -sudo -i -cd .config -cd dconf/user -cd dconf -grep manif user -grep manif * -vim user -[200~dconf dump / |grep mag~ -dconf dump / |grep mag -dconf dump / |grep magnif -[200~grep enabled /sys/firmware/acpi/interrupts/*~ -grep enabled /sys/firmware/acpi/interrupts/* -echo "disable" > /sys/firmware/acpi/interrupts/gpe17 -sudo echo "disable" > /sys/firmware/acpi/interrupts/gpe17 -sudo more /sys/firmware/acpi/interrupts/gpe17 -sudo vim /sys/firmware/acpi/interrupts/gpe17 -mkdir notesbak -rmdir notesbak -cp -R Notes ~/ -ll ~/Notes -cd Notes -ll |less -rm -rf ~/Notes -sudo [200~echo 1 > /sys/module/usbhid/parameters/mousepoll~ -sudo echo 1 > /sys/module/usbhid/parameters/mousepoll -more /sys/module/usbhid/parameters/mousepoll -sudo vim /etc/modules -more /etc/os-release -sudo apt-cache search notecase -dig google.com @208.67.220.220 -dig google.com @208.67.220.220 +short -sudo apt-get dist-update -mintupgrade check -find -iname "*career*" -find -iname "*eview*" -ll /media/tracey/saturn -cd financial/1_financial_archives/2016Archives -rm -rf bmw_finance/* -rm -rfy discover/* -rm -rf discover/* -rm -rf amazon/* -rm -rf chase_visa -mkdir chase_visa -ll cpanel_paystubs -rm -rf cpanel_paystubs/* -rm -rf discover/* ebay/* fccu/* great_lakes/* -rm -rf insperity_401k/* medical_rcpt/* navient/* paypal/* tax_2015/* tmobile/* ufcu/* wells_fargo/* -rm budget2015.ods -rm ufcu_stmt_2015-06.pdf -/usr/bin/syncthing --upgrade -grep syncthing /etc/apt/sources.list -curl -s https://syncthing.net/release-key.txt | sudo apt-key add - -echo "deb https://apt.syncthing.net/ syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing.list -sudo apt-get dist-upgrade -apt-cache search auto |grep key -sudo apt-get install autokey-gtk -sudo apt-cache search file| grep pc -sudo apt-cache search file| grep pc |grep man -sudo bash -c "apt-get update && apt-get install pcmanfm && apt-get upgrade" -sudo apt-get autoremove -wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add - -[200~sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu yakkety-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'~ -sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu yakkety-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list' -sudo apt-get install qownnotes -cp .config/calibre /media/tracey/saturn/backups/calibre.config.dir -cp -R .config/calibre /media/tracey/saturn/backups/calibre.config.dir -ll /media/tracey/saturn/backups/calibre.config.dir -f[200~sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"~v -sudo bash -c "apt-get update && apt-get upgrade" -sudo bash -c "apt-get autoremove && apt-get dist-upgrade" -sudo bash -c "apt-get autoremove" -ll ~/.local/share/akonadi/ -mv ~/.local/share/akonadi/ ~/.local/share/akonadi.orig -mv ~/.config/akonadi/ ~/.config/akonadi.orig -ll .config/akonadi.orig -xkill -ps -ef |grep akon -killall -9 /usr/bin/akonadi* -dig mx elenari.net -dig elenari.net |grep mx -dig elenari.net |grep -i mx -dig elenari.net -dig mail.elenari.net -dig imap.elenari.net -mount |grep ESD -mount |grep sd -ps -ef |grep -i keep -ps -ef |grep -i keepass -ll |grep -i ownclou -rm -rf recovered -sudo rm -rf recovered -mount |grep -i saturn -ll ~/ownCloud -ll ~/ownCloud/ -ll ~/ownCloud/ |grep gra -mv graphics/* ~/ownCloud/graphics -rmdir graphics -ll |grep TL -ll TLC\ OwnCloud -ll TLC\ OwnCloud |grep -v vcf -rm -rf TLC\ OwnCloud -find -iname "*erry*" -ssh root@pi3 -ll ~/.ssh -ll |grep sea -find -iname "*tlc_pi3*" -cat tlc_pi3.pub -file tlc_pi3.pub -ssh root@10.0.0.17 -ssh -i ~/.ssh/tlc_pi3 pi3 -ssh-keygen -t rsa -cat tlc_pi3_pi.pub -find -iname wallpapers -find -iname wallpaper -cd wallpaper -scp tree_sunset-wallpaper-1440x900.jpg pi3:/home/pi/PiClock/Clock/images -scp lone_tree_on_a_hill-wallpaper-1440x900.jpg pi3:/home/pi/PiClock/Clock/images -scp fog_shrouded_forest-wallpaper-1440x900.jpg pi3:/home/pi/PiClock/Clock/images -scp dark_blue_background-wallpaper-1440x900.jpg pi3:/home/pi/PiClock/Clock/images -grep alias\ ll ~/.zshrc -grep alias\ ll ~/.zsh/zshalias -sudo apt-get remove california -apt-search caldav |grep -v server -apt-cache search caldav |grep -v server -sudo apt-get install reminna -sudo apt-get install remmina -apt-cache search monkey -apt-cache search monkey |grep -i studio -sudo apt-get install monkeystudio -ps -e -ps -f -ps -ef |head -20 -ps -ef |head -40 -ps -ef |head -60 -ps -f |grep login -sudo bash -c "apt-get update && apt-get upgrade -y" -pgrep -fl termin -pgrep -fl keep -pgrep -fl keepass -keepass2& -sudo apt-get install terminix -sudo apt-get install gnome-terminal -gnome-terminal & -cd /opt/kee -ll /opt/ |grep keep -ll /usr/lib/ |grep keep -mv plugins plugins.old -sudo rm -rf plugins -ps -ef |grep x -sudo kill 1871 -sudo restart -sudo kill 1902 -sudo kill 2438 -sudo kill 5118 -sudo kill 6512 -pgrep -fl kde -sudo apt autoremove -sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()" -find -iname "*red*" -find -iname "*red*" |grep -i room -find -iname "*stories*" -ssh root@cp.tlcnet.info -ssh root@cp.tlcnet.info -p 227 -ssh root@cp.tlcnet.info -p 277 -ssh -i tlc_server_dsa cp -ssh -i .ssh/tlc_server_dsa cp -ssh -i cp -grep colo .zsh/zshalias -ssh -o PubkeyAuthentication=no root@cp -ssh -o PubkeyAuthentication=no root@cp.tlcnet.info -ssh -o PubkeyAuthentication=no root@cp.tlcnet.info -p 227 -ssh -o PubkeyAuthentication=no root@cp.tlcnet.info -i .ssh/tlc_server_dsa -ssh -o PubkeyAuthentication=no root@cp.tlcnet.info -i .ssh/tlc_server_dsa -p 227 -ssh -v -o PubkeyAuthentication=no root@cp.tlcnet.info -i .ssh/tlc_server_dsa -p 227 -ls -ls bin -ack ssh * -ack ssh *grep add -ack ssh |grep add -ack ssh-add -ssh -v -o PreferredAuthentications=password -o PubkeyAuthentication=no root@cp.tlcnet.info -i .ssh/tlc_server_dsa -p 227 -ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no root@cp.tlcnet.info -i .ssh/tlc_server_dsa -p 227 -sudo bash -c "apt update && apt upgrade" -sudo add-apt-repository ppa:dlech/keepass2-plugins -sudo apt-get install keepass2-plugin-keeagent -uname -a -sudo ufw status verbose -sudo -c bash "apt-get update && apt-get upgrade" -sudo add-apt-repository ppa:rolfbensch/sane-git -sudo apt upgrade -sudo xsane -ll /lib/udev/rules.d -ll /lib/udev/rules.d |grep sane -sudo vim /lib/udev/rules.d/40-libsane.rules -sane-find-scanner |grep -v USB -sane-find-scanner |less -sudo sane-find-scanner |less -sudo apt search scangear -scangearmp-mx920series -xsane -lsusb |grep -i canon -ack scanner /dev/bus/usb/* -ack scanner /dev/bus/* -ack scan /dev/bus/* -ack scan /dev/ -ack scan /dev/* -ll /etc/sane.d -ack 1004 /etc/sane.d/*.conf -ack 614 /etc/sane.d/*.conf -ack 61f /etc/sane.d/*.conf -apt search canon -apt search scan -sane-find-scanner -sudo sane-find-scanner -apt search Skanlite -apt search sane-utils -lsusb -sudo usermod -a -G lp tracey -sudo scanimage -L -sudo vim /etc/group -scanimage --test -scanimage --test -v -sudo apt search wsd -nmap -p 9100,515,631 192.168.1.1/24 -oX printers.xml -ifconfig -nmap -p 9100,515,631 10.0.0.1/24 -oX printers.xml -find -iname "jhc*" -find -iname "*estate*" -find -iname "*estate*" |grep j -cd [200~/home/syleniel/Documents/cats/angel/a~ -cd /home/syleniel/Documents/cats/angel/a -cd /home/syleniel/Documents/cats/angel/ -ll /home/ |grep ang -cd ownCloud/documents/clarkj_estate_2017 -EXIT -grep cp .ssh/config -ssh -i .ssh/tlc_server_dsa root@cp -ssh -p 227 -i .ssh/tlc_server_dsa root@cp -ip -4 a -more .ssh/tlc_server_dsa -cat .ssh/tlc_server_dsa -cat .ssh/tlc_server_dsa.pub -ssh -p 227 -i .ssh/tlc_server_dsa root@cp.tlcnet.info -ssh -v -p 227 -i .ssh/tlc_server_dsa root@cp.tlcnet.info -mv tlc_server_dsa tlc_sever -mv tlc_server_dsa.pub tlc_server.pub -vim config -mv tlc_sever tlc_server -ssh -v -p 227 -i .ssh/tlc_server cp -mv config config.bak -cat .ssh/tlc_server -ssh-add -v -p 227 -i .ssh/tlc_server root@cp.tlcnet.info -ssh -v -p 227 root@cp.tlcnet.info -ssh-add -v 227 -i .ssh/tlc_server root@cp.tlcnet.info -ssh -v -p 227 -i .ssh/tlc_server root@cp.tlcnet.info -cd gin -grep ssh * -find -iname "*setup*" -find -iname "*ssh*" -ssh-add ~/.ssh/authorized_keys -ssh-add ~/.ssh/tlc_server -chmod 0600 ~/.ssh/authorized_keys -ssh-copy-id ~/.ssh/tlc_server root@cp.tlcnet.info -ssh-copy-id root@cp.tlcnet.info -ssh-copy-id -p 227 root@cp.tlcnet.info -ssh -p 227 root@cp.tlcnet.info -mv .ssh/config.bak .ssh/config -ps -ef |grep sync -which sync -which syncthing -syncthing -upgrade -sudo bash -c "add-apt-repository ppa:nilarimogard/webupd8 && apt update && apt install syncthing-gtk" -find -iname "*label*" -cp -R backups/syldocs/correspondance ~/Documents -ll ~/Documents|grep corr -cp backups/syldocs/correspondance/labels/*.odt ~/ownCloud/documents/templates -cd backups/syldocs/correspondance -cd labels -ll |grep ul -cp -R yule ~/Documents -sudo bash -c "apt update && apt upgrade && apt autoremove" -apt search calibre -ps -ef |grep clip -kill 6258 -firefox -p -bg -ll |grep head -ag ST headers.txt -ag ST= headers.txt -diff headers1.txt headers3.txt -ag ST= headers* -apt search pidgin-plugin-pack -sudo apt install pidgin-plugin-pack -find -iname "labels*" -find -iname "*labels*" -ps -ef |grep -i opera -ps -ef |grep -i opera|grep magic -sudo kill 3332 -sudo apt-get update -ps -ef |grep sudo -sudo kill 2012 -sudo apt install disper -disper -l -ssh pi -grep pi .ssh/config -cd /media/tracey/saturn -cd backups -cd pi3 -rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress /media/tracey/saturn/backups/pi3 pi3root:/ -cp -fr /media/tracey/e6e7f776-11a4-4cd7-b4fd-c44ecdbfcf90/* . -sudo cp -fr /media/tracey/e6e7f776-11a4-4cd7-b4fd-c44ecdbfcf90/* . -rm -rf * -mkdir pi3a -rmdir pi3a -mount |grep e6e -free -m -sudo dd if=/dev/sdd of=/media/tracey/saturn/backups/pi3/pi3.img bs=512M -ll pi3/pi3.img -find -iname -find -iname "*env*" -find ../OwnCloud -iname "*env*" -find ../ownCloud -iname "*env*" -find /media/tracey/saturn -iname "*env*" -cp /media/tracey/saturn/backups/syldocs/templates/envelope_num_10_win7.ott ../ownCloud/documents/templates -apt search gog -uname 4 -sh gog_amnesia_the_dark_descent_2.0.0.3.sh -df -h -ps -ef |grep X -which keepass -which keepass2 -ll /lib |grep keep -ll //usr/lib |grep keep -ll /usr/lib/keepass2 -cd /usr/lib/keepass2 -ll plugins -mv plugins/KeeAgent.plgx Plugins -sudo mv plugins/KeeAgent.plgx Plugins -ll Plugins -cp Plugins/* plugins -sudo cp Plugins/* plugins -sudo mv plugins plugins.bak -ll file:////home/tracey/.mozilla/firefox/tpc5i51p.tracey/extensions/keefox@chris.tomlinson/deps -ll file:/home/tracey/.mozilla/firefox/tpc5i51p.tracey/extensions/keefox@chris.tomlinson/deps -ll/home/tracey/.mozilla/firefox/tpc5i51p.tracey/extensions/keefox@chris.tomlinson/deps -ll /home/tracey/.mozilla/firefox/tpc5i51p.tracey/extensions/keefox@chris.tomlinson/deps -ll /home/tracey/.mozilla/firefox/tpc5i51p.tracey/extensions/ -ll /home/tracey/.mozilla/firefox/tpc5i51p.tracey/extensions/ |grep toml -HOME=/home/tracey&& mv $HOME/.sane/xsane $HOME/.sane/xsane.bak -ll .sae -find -iname .sane -ll .sane -sudo vim /etc/sane.d/saned.conf -sudo vim /etc/sane.d/net.conf -cd Documents/owncloud -mv Colo_Agmt_FINAL_1.3_cPanel.pdf ../ -ll |grep -i red -ll rednotebook -ll rednotebook/tlc -rm -rf rednotebook -find -iname bear -find -iname cats -sudo shutdown -date -sudo poweroff -tail /var/log/dmesg -ll /var/log -tail /var/log/syslog -sudo shutdown 0c -sudo shutdown -c -sudo shutdown now -tail -10 /var/log/syslog -journalctl -ack vpn Documents -ack newsgroups Documents -ssh cp -i ~/.ssh/tlc_server -ssh cp.tlcnet.info -i ~/.ssh/tlc_server -ssh cp.tlcnet.info -i ~/.ssh/tlc_server -p 227 -which pdfedit -apropos pdf |grep -i edit -apt search pdf|grep -i edit -sudo apt install gpdftext -pdftk -which pdfshuffler -pdfshuffler -pagecrunch -which pagecrunch -cd Downloads -rm -rf opera-stable_43.0.2442.991_amd64.deb -ll linstalls -rm scangearmp-mx920series-2.10-1-deb.tar.gz -cd linstalls -ll |grep bit -find -iname "*battle*" -find -iname "*battlenet*" -sudo apt-get install libpurple-dev libglib2.0-dev libprotobuf-c-dev protobuf-c-compiler mercurial make; -hg clone https://bitbucket.org/EionRobb/purple-battlenet/ && cd purple-battlenet; -man hg -hg update -make && sudo make install -ps -ef |grep keeps -ps -ef |grep keepa -sudo kill -9 12953 -sudo killall cairo-dock -sudo kill 2830 -sudo kill 3930 -sudo kill 2882 -sudo kill 2923 -ps -ef |grep dock -pgrep -fla keep -pgrep -fla http -kill 26535 -apt search etcher -pgrep -fla rpc -ps -ef -ps -ef |grep -v opera -ps -ef |grep -v "etcher\|opera" -ps -ef |grep -v "etcher\|opera\|dhclient\|hci\|irq" -ps -ef |grep -v "etcher\|opera\|dhclient\|hci\|irq\|kwork" -ps -ef |grep -v "etcher\|opera\|dhclient\|hci\|irq\|kwork\|jfs\|gvfs" -sudo kill 24155 -sudo kill 24158 -sudo kill 24114 -ps -ef |grep -v "etcher\|opera\|dhclient\|hci\|irq\|kwork\|jfs\|gvfs\|eam" -ps -ef |grep -v "etcher\|opera\|dhclient\|hci\|irq\|kwork\|jfs\|gvfs\|team" -ps -ef |grep -v "etcher\|opera\|dhclient\|hci\|irq\|kwork\|jfs\|gvfs\|team\|kdeinit" -ps -ef |grep -v "etcher\|opera\|dhclient\|hci\|irq\|kwork\|jfs\|gvfs\|team\|kdeinit\|cairo" -more README.md -cd ownCloud -find -iname "*raspberry*" -ack raspberry * -pi3root -ssh-keygen -f "/home/tracey/.ssh/known_hosts" -R pi3 -ssh pi3root -vim /home/tracey/.ssh/known_hosts -ssh-copy-id -i ~/.ssh/tlc_pi3 tlc_pi3 -ssh-copy-id -i ~/.ssh/tlc_pi3 pi@tlc_pi3 -\:q -ssh-copy-id -i ~/.ssh/tlc_pi3_pi pi@tlc_pi3 -which gedit -apt search bluefish -sudo apt install bluefish bluefish-plugins bluefish-data -apt search md2html -apt search md |grep html -less .zsh/zshalias -more .zsh/zshalias -scp pi3:/home/pi/git/bootstrap-calendar/index.html -scp pi3:/home/pi/git/bootstrap-calendar/index.html . -l -mkdir pical -mv index.html pical -cd pical -scp pi3:/home/pi/git/bootstrap-calendar/index-bs3.html . -cp index-bs3.html index.html -mkdir css -scp pi3:/home/pi/git/bootstrap-calendar/css/* . -scp pi3:/home/pi/git/bootstrap-calendar/css/ . -scp pi3:/home/pi/git/bootstrap-calendar/css . -scp pi3:/home/pi/git/bootstrap-calendar/css/* css/ -scp pi3:/home/pi/git/bootstrap-calendar/css/calendar.css css/ -mkdir components -mkdir -p components/bootstrap3/css -scp pi3:/home/pi/git/bootstrap-calendar/components components -scp -r pi3:/home/pi/git/bootstrap-calendar/components components -cd components -scp pi3:/home/pi/git/bootstrap-calendar/components/bootstrap/css/bootstrap.css -scp pi3:/home/pi/git/bootstrap-calendar/components/bootstrap/css/bootstrap.css . -scp pi3:/home/pi/git/bootstrap-calendar/components/bootstrap3/css/bootstrap.css . -mv bootstrap.css css -ll css -rm index.html~ -scp -p * pi3:/var/www/html -scp -p * pi3:/home/pi/Downloads/pical -scp -rp * pi3:/home/pi/Downloads/pical -cd ../components -cd bootstrap3 -cd css -vim bootstrap.css.min -apt search cssmin -apt search minify |grep css -apt search minify -apt search minifier -apt search css |grep -i mini -scp bootstrap.css pi3:/home/Downloads/pical/components/bootstrap3/css -scp bootstrap.css pi3:/home/pi/Downloads/pical/components/bootstrap3/css -ps -ef |grep lock -sudo kill 31314 -sudo kill 32611 -sudo kill 32672 -sudo kill -9 32672 -ps -ef |grep apt -sudo dpkg --configure -a\ -: 1499195352:0;sudo dpkg --configure -a -uname -4 -uname -r -ps -ef -ps -ef |grep auth -ps -ef |grep mdm -sudo kill -9 1778 -sudo reboot -ag yutzy |grep jake -ag yutzy -ag jake -cd .thunderbird -cd byhk7vwo.default -ag fountain |grep view -ll /usr/bin/mono -ll /usr/bin/mono/ -grep colo .ssh/config -cp -ssh -i ~/.ssh/tlc_server root@cp -more ~/.ssh/tlc_server -more ~/.ssh/tlc_server.pub -cat ~/.ssh/tlc_server.pub -ssh -i ~/.ssh/tlc_server root@cp.tlcnet.info -more .ssh/config -ssh -i ~/.ssh/tlc_server.pub root@cp.tlcnet.info -cat .ssh/tlc_server.pub -ssh-copy-id -i ~/.ssh/tlc_server root@cp.tlcnet.info -ssh -p 227 -i ~/.ssh/tlc_server root@cp.tlcnet.info -ssh root@cp -ssh -p 227 -i ~/.ssh/tlc_server root@208.74.120.106 -ssh cp -ssh -v cp -ssh-copy-id -p 227 -i ~/.ssh/tlc_server root@cp.tlcnet.info -ssh-copy-id -p 227 -i ~/.ssh/tlc_server -o PubkeyAuthentication=no root@cp.tlcnet.info -ssh-copy-id -p 227 -i ~/.ssh/tlc_server -o PasswordAuthentication=no root@cp.tlcnet.info -ssh -p 227 -i ~/.ssh/tlc_server -o PasswordAuthentication=no root@cp.tlcnet.info -chmod 600 tlc_pi3* -chmod 600 .ssh/tlc_pi3* -ssh -p 227 -i ~/.ssh/tlc_server.pub -o PasswordAuthentication=no root@cp.tlcnet.info -ssh -p 227 -i ~/.ssh/tlc_server.pub root@cp.tlcnet.info -top -more /etc/hosts -hostname -ping 127.0.1.1 -ping mercury -dig google.com -more /etc/resolv.conf -sudo systemctl restart systemd-logind -sudo strace -r -o trace.log sudo echo hi -less trace.log -grep -i err trace.log -grep -i open trace.log -grep -i open trace.log |grep -v ENOEN -grep -i timeou trace.log -ll |grep pur -cd purple-battlenet -git pull -hg pull -kill 3051 -kill 3015 -kill 2993 -pgrep -fla cairo -kill -9 2993 -gedit .ssh/config -xed .ssh/config -ping cp.tlcnet.info -ssh -p 227 -i .ssh/tlc_server root@cp.tlcnet.info -diff .ssh/tlc_server ownCloud/documents/keys/tlc_server -cd .ssh -mv tlc_server tlc_server.old -mv tlc_server.pub tlc_server.pub.old -cp ~/ownCloud/documents/keys/tlc* . -ll |grep lab -ll |grep bin -cd bin -ll namebench-1.3.1 -cd .. -ll |grep shell -ll |grep vm -ssh-keygen -t rsa -C "tclark77@tlcnet.info" -b 4096 -more .ssh/tlc_pi3 -mv tlc_gitlab* .ssh -ll .ssh |grep git -cat .ssh/tlc_gitlab -cat .ssh/tlc_gitlab.pub -cd /usr/share/fonts -gksu pcmanfm -eval "$(ssh-agent -s)" -ssh-add .ssh/tlc_gitlab -vim .zshrc -ssh -Tv git@gitlab.tlcnet.info -ssh -Tv tracey@gitlab.tlcnet.info -ssh -Tv gitlab.tlcnet.info -ssh -Tv gitlab -ssh -Tv -i .ssh/tlc_gitlab gitlab -mkdir repos -vim ~/.ssh/config -git config -git config --get-all -git config -l -git config -e -git --version -git config --global user.name "tracey" -git config --global user.name -git config --global user.email "tlcgit@tlcnet.info" -git config --global user.email -git config --global --list -git config --global -l -ssh -Tv -i .ssh/tlc_gitlab.pub gitlab -pwd -ssh -i .ssh/tlc_gitlab.pub gitlab -more ~/.ssh/config -sudo bash -c "apt update && apt upgrade -y&& apt autoremove" -pgrep -fla |grep finger -sudo kill -9 5270 -sudo vim /etc/hosts -kill 10883 -ssh pi3 -find -iname "*.ncd*" -mv *.ncdb ownCloud/documents/notecase -cd ownCloud/documents -cd notecase -apt search vnc |grep -i view -vnc-viewer -gvncviewergvncviewer -gvncviewer -gvncviewer pi3 -apt search vnc |grep -i real -apt search vnc |grep -i tight -sudo apt install xtightvncviewer -prep -fla finger -kill 13544 -xtightvncviewer -cd Documents -cd ../Downloads -tar -xvzf VNC-Viewer-6.1.1-Linux-x86.gz -tar -xvf VNC-Viewer-6.1.1-Linux-x86.gz -tar -xvjf VNC-Viewer-6.1.1-Linux-x86.gz -gunzip VNC-Viewer-6.1.1-Linux-x86.gz -ls -la -file VNC-Viewer-6.1.1-Linux-x86 -chmod 750 VNC-Viewer-6.1.1-Linux-x86 -./VNC-Viewer-6.1.1-Linux-x86 -sudo apt install remmina-plugin-rdp -kill 14957 -ping pi3 -echo $SHELL -ll .zsh/ -ll |grep alias -cd -mkdir pi3 -apt search sshfs -sudo apt install sshfs -mountpi -vim .zsh/zshalias -source .zshrc -unpi -ll pi3 -kill 16796 -ll |grep git -ll |grep repo -cd repos -git remote add zsh ssh://git@gitlab.tlcnet.info:227/tracey/shell-scripts.git -pgrep -fla finger -kill 3945 -ps -ef |grep finger -sudo service fingerprint-helper start -sudo su -sudo zsh -c "apt update && apt upgrade -y&& apt autoremove" -ll -ll |grep script -ll bin -find -iname git -find -iname "*git*" -find -iname "*git*" |grep -v Doc -find -iname "*git*" |grep -v "Doc\|.config" -find -iname "*git*" |grep -v "Doc\|.config\|Steam" -mkdir git -cd git -vim /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_access_status.rb -ll /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_access_status.rb -find -iname gitlab_access_status.rb -cat ~/.ssh/tlc_gitlab -mv .ssh/config{,.bak} -ssh -vT ssh://git@gitlab.tlcnet.info -ssh -vT ssh://git@gitlab.tlcnet.info:227 -ssh -vT -p 227 ssh://git@gitlab.tlcnet.info -ssh -vT -p 227 -i ~/.ssh/tlc_gitlab ssh://git@gitlab.tlcnet.info -git clone https://gitlab.tlcnet.info:7443/tracey/shell-scripts.git -git clone -i ~/.ssh/tlc_gitlab ssh://git@gitlab.tlcnet.info:227/tracey/shell-scripts.git -eval $(ssh-agent -s) -ssh-add ~/.ssh/tlc_gitlab -mv .ssh/config{.bak,} -ll .ssh -vim .ssh/config -chmod 600 ~/.ssh/tlc_gitlab.pub -ssh -vT -p 227 -i ~/.ssh/tlc_gitlab.pub ssh://tracey\@gitlab.tlcnet.info -ssh -vT -p 227 -i ~/.ssh/tlc_gitlab.pub ssh://git@gitlab.tlcnet.info -ssh -v git@gitlab.tlcnet.info -ssh -v git@gitlab -ssh git@gitlab -ssh-add -L -cat ~/.ssh/tlc_gitlab.pub -ssh -vT git@gitlab -colo -git clone ssh://git@gitlab.tlcnet.info:227/tracey/shell-scripts.git -colosync -exit -: 1501286393:0;ll -: 1501286396:0;cd shell-scripts -: 1501286397:0;ll -: 1501288183:0;mkdir home_zsh -: 1501288185:0;cd home_zsh -: 1501288193:0;cp ~/.zsh* . From a30dd12ce6dd56a58cb74542dcc8cce0a16b97e6 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sun, 20 May 2018 14:56:42 -0500 Subject: [PATCH 09/27] Clarified output for dir comparison. Finished sub to delete redundant files after copy. Added die if folders are not the same after copy. --- file_processing/archive_statements.pl | 42 ++++++++++++++++++++------- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/file_processing/archive_statements.pl b/file_processing/archive_statements.pl index 5eb9edd..fb703c2 100755 --- a/file_processing/archive_statements.pl +++ b/file_processing/archive_statements.pl @@ -55,7 +55,10 @@ print("To: $lastyear_folder\n"); dircopy( $financial_folder, $lastyear_folder ) or die $!; # Make sure contents match -compare_dirs( $financial_folder, $lastyear_folder ); +my $same = compare_dirs( $financial_folder, $lastyear_folder ); +print("The value of same is $same\n"); + +die "Error: The folders are not the same!" unless ($same == 1) ; # Delete all files from current year from archive folders delete_dirs( $financial_folder, $lastyear_folder, $year, $lastyear ); @@ -63,17 +66,23 @@ delete_dirs( $financial_folder, $lastyear_folder, $year, $lastyear ); # compare new directories to old directories to make sure they are the same sub compare_dirs { my ( $dir1, $dir2 ) = @_; + my $same = 1; print("Making sure the copy was complete and all files match\n"); File::DirCompare->compare($dir1, $dir2, sub { my ($a, $b) = @_; if (! $b) { printf "Only in %s: %s\n", dirname($a), basename($a); + $same = 0; } elsif (! $a) { printf "Only in %s: %s\n", dirname($b), basename($b); + $same = 0; } else { print "Files $a and $b differ\n"; + $same = 0; } }); + print("Diff of directories done\n"); + return $same; } # Delete old files @@ -81,17 +90,28 @@ sub delete_dirs { my ( $new_dir, $old_dir, $curr_year, $last_year ) = @_; print("Deleting files from current year in archives\n"); print("and files from last year from current folder\n"); - print("New dir in the delete_dirs is $new_dir\n"); + # print("New dir in the delete_dirs is $new_dir\n"); + # print("Old dir in the delete_dirs is $old_dir\n"); # For all files in archive dir that are newer than last year delete them - my $find_rule = File::Find::Rule->new; -# $find_rule->nonempty->maxdepth(1)->mindepth(1)->relative; - $find_rule->name('*.' . $lastyear . '*'); - my @curr_subdirs = $find_rule->directory->in( $new_dir ); - print("This is the current subdirs in delete_dirs\n\n"); - print Dumper(\@curr_subdirs); -foreach my $subdir(@curr_subdirs) { - print("Directory in current subdir is $subdir"); -} +# my $find_rule = File::Find::Rule->new; +# # $find_rule->nonempty->maxdepth(5)->mindepth(1)->relative; +# $find_rule->name('*.' . $lastyear . '*'); +# my @curr_subdirs = $find_rule->directory->in( $new_dir ); +# print("These are the current subdirs in delete_dirs\n\n"); +# print Dumper(\@curr_subdirs); +# foreach my $subdir(@curr_subdirs) { +# print("Directory in current subdir is $subdir"); + +my @last_year_files = File::Find::Rule->file() + ->name("*$curr_year*") + ->in($old_dir); +#print("These are the current files in last year folders in delete_dirs\n\n"); +#print Dumper(\@last_year_files); +my $num_files = scalar(@last_year_files); +print("Number of current files in last year folders in delete_dirs: $num_files\n\n"); + # For all file in current folder that are older than this year delete them + + return; } From 4b241d14f75c1d90717d8e2f0dce9c2696dbace9 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sun, 20 May 2018 15:27:14 -0500 Subject: [PATCH 10/27] Completed delete_dirs sub. Removed debugging and unneeded modules. Changed die to croak. --- file_processing/archive_statements.pl | 81 ++++++++------------------- 1 file changed, 22 insertions(+), 59 deletions(-) diff --git a/file_processing/archive_statements.pl b/file_processing/archive_statements.pl index fb703c2..0b1a959 100755 --- a/file_processing/archive_statements.pl +++ b/file_processing/archive_statements.pl @@ -5,65 +5,39 @@ use warnings; # Script to archive the financial data from the previous year use Time::Piece; use File::Basename; -use File::Find::Rule; # find all the subdirectories of a given directory -# http://search.cpan.org/~rclamp/File-Find-Rule-0.32/README -use File::Path qw(make_path remove_tree); -#use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmove dirmove); +use File::Find::Rule; use File::Copy::Recursive qw(dircopy); -use List::MoreUtils qw(uniq); use File::DirCompare; -use Data::Dumper; +use Carp qw( croak ); my $now = localtime; my $year = $now->year; -print "Year is $year\n"; +print "Current year: $year\n"; # Get year to archive from current year my $lastyear = $now->add_years(-1)->year; - -print("Last year was $lastyear\n"); +print("Last year: $lastyear\n"); # Define and create folders -my (%files1, %files2); my $financial_folder = '/home/tracey/Documents/financial/current_year/'; my $financial_archive_folder = '/home/tracey/Documents/financial/1_financial_archives/'; my $lastyear_folder = $financial_archive_folder . $lastyear . 'FinancialArchives'; my @folders = ( $financial_folder, $financial_archive_folder, $lastyear_folder ); -=begin comment -# Will be using this kind of thing to get only files with current year for deletion -foreach my $folder ( @folders ) { - if ( -d $folder ) { - print("Folder exists: $folder\n"); - } - unless( -d $folder ) { - print("Creating the folder \"$folder\"\n"); - die "Could not create directory! $!" unless make_path($folder); - } -} - -# Get current folder list for nonempty directories -my $find_rule = File::Find::Rule->new; -$find_rule->nonempty->maxdepth(1)->mindepth(1)->relative; -my @curr_subdirs = $find_rule->directory->in( $financial_folder ); -=end comment -=cut - print("Copying current directories to archive folder\n"); print("From: $financial_folder\n"); print("To: $lastyear_folder\n"); -dircopy( $financial_folder, $lastyear_folder ) or die $!; +dircopy( $financial_folder, $lastyear_folder ) or croak "Could not copy directories $!"; -# Make sure contents match -my $same = compare_dirs( $financial_folder, $lastyear_folder ); -print("The value of same is $same\n"); - -die "Error: The folders are not the same!" unless ($same == 1) ; +# Make sure contents match before we do any Deleting +# croak on errors to guard against data losss +my $same_result = compare_dirs( $financial_folder, $lastyear_folder ); +croak "Error: The folders are not the same!" unless ($same_result == 1) ; # Delete all files from current year from archive folders +# Also delete files from last year in current year folder delete_dirs( $financial_folder, $lastyear_folder, $year, $lastyear ); -# compare new directories to old directories to make sure they are the same sub compare_dirs { my ( $dir1, $dir2 ) = @_; my $same = 1; @@ -85,33 +59,22 @@ sub compare_dirs { return $same; } -# Delete old files sub delete_dirs { my ( $new_dir, $old_dir, $curr_year, $last_year ) = @_; - print("Deleting files from current year in archives\n"); - print("and files from last year from current folder\n"); - # print("New dir in the delete_dirs is $new_dir\n"); - # print("Old dir in the delete_dirs is $old_dir\n"); + print("Deleting files from current year $curr_year in archives\n"); + print("and files from last year $last_year from current folder\n"); - # For all files in archive dir that are newer than last year delete them -# my $find_rule = File::Find::Rule->new; -# # $find_rule->nonempty->maxdepth(5)->mindepth(1)->relative; -# $find_rule->name('*.' . $lastyear . '*'); -# my @curr_subdirs = $find_rule->directory->in( $new_dir ); -# print("These are the current subdirs in delete_dirs\n\n"); -# print Dumper(\@curr_subdirs); -# foreach my $subdir(@curr_subdirs) { -# print("Directory in current subdir is $subdir"); + my @this_year_files = File::Find::Rule->file() + ->name("*$curr_year*") + ->in($old_dir); + my @last_year_files = File::Find::Rule->file() + ->name("*$last_year*") + ->in($new_dir); -my @last_year_files = File::Find::Rule->file() - ->name("*$curr_year*") - ->in($old_dir); -#print("These are the current files in last year folders in delete_dirs\n\n"); -#print Dumper(\@last_year_files); -my $num_files = scalar(@last_year_files); -print("Number of current files in last year folders in delete_dirs: $num_files\n\n"); - - # For all file in current folder that are older than this year delete them + unlink @this_year_files; + print("Deleted all $curr_year files from the folder for $last_year\n"); + unlink @last_year_files; + print("Deleted all $last_year files from the folder for $curr_year\n"); return; } From c14c180bfef3b4c8b34e5f634ff3f9f1020596c7 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sun, 20 May 2018 15:28:09 -0500 Subject: [PATCH 11/27] Tidied --- file_processing/archive_statements.pl | 87 +++++++++++++++------------ 1 file changed, 47 insertions(+), 40 deletions(-) diff --git a/file_processing/archive_statements.pl b/file_processing/archive_statements.pl index 0b1a959..4368a83 100755 --- a/file_processing/archive_statements.pl +++ b/file_processing/archive_statements.pl @@ -10,71 +10,78 @@ use File::Copy::Recursive qw(dircopy); use File::DirCompare; use Carp qw( croak ); -my $now = localtime; +my $now = localtime; my $year = $now->year; print "Current year: $year\n"; # Get year to archive from current year -my $lastyear = $now->add_years(-1)->year; +my $lastyear = $now->add_years(-1)->year; print("Last year: $lastyear\n"); # Define and create folders -my $financial_folder = '/home/tracey/Documents/financial/current_year/'; -my $financial_archive_folder = '/home/tracey/Documents/financial/1_financial_archives/'; -my $lastyear_folder = $financial_archive_folder . $lastyear . 'FinancialArchives'; -my @folders = ( $financial_folder, $financial_archive_folder, $lastyear_folder ); +my $financial_folder = '/home/tracey/Documents/financial/current_year/'; +my $financial_archive_folder = + '/home/tracey/Documents/financial/1_financial_archives/'; +my $lastyear_folder = + $financial_archive_folder . $lastyear . 'FinancialArchives'; +my @folders = + ( $financial_folder, $financial_archive_folder, $lastyear_folder ); print("Copying current directories to archive folder\n"); print("From: $financial_folder\n"); print("To: $lastyear_folder\n"); -dircopy( $financial_folder, $lastyear_folder ) or croak "Could not copy directories $!"; +dircopy( $financial_folder, $lastyear_folder ) + or croak "Could not copy directories $!"; # Make sure contents match before we do any Deleting # croak on errors to guard against data losss my $same_result = compare_dirs( $financial_folder, $lastyear_folder ); -croak "Error: The folders are not the same!" unless ($same_result == 1) ; +croak "Error: The folders are not the same!" unless ( $same_result == 1 ); # Delete all files from current year from archive folders # Also delete files from last year in current year folder delete_dirs( $financial_folder, $lastyear_folder, $year, $lastyear ); sub compare_dirs { - my ( $dir1, $dir2 ) = @_; - my $same = 1; - print("Making sure the copy was complete and all files match\n"); - File::DirCompare->compare($dir1, $dir2, sub { - my ($a, $b) = @_; - if (! $b) { - printf "Only in %s: %s\n", dirname($a), basename($a); - $same = 0; - } elsif (! $a) { - printf "Only in %s: %s\n", dirname($b), basename($b); - $same = 0; - } else { - print "Files $a and $b differ\n"; - $same = 0; - } - }); - print("Diff of directories done\n"); - return $same; + my ( $dir1, $dir2 ) = @_; + my $same = 1; + print("Making sure the copy was complete and all files match\n"); + File::DirCompare->compare( + $dir1, $dir2, + sub { + my ( $a, $b ) = @_; + if ( !$b ) { + printf "Only in %s: %s\n", dirname($a), basename($a); + $same = 0; + } + elsif ( !$a ) { + printf "Only in %s: %s\n", dirname($b), basename($b); + $same = 0; + } + else { + print "Files $a and $b differ\n"; + $same = 0; + } + } + ); + print("Diff of directories done\n"); + return $same; } sub delete_dirs { - my ( $new_dir, $old_dir, $curr_year, $last_year ) = @_; - print("Deleting files from current year $curr_year in archives\n"); - print("and files from last year $last_year from current folder\n"); + my ( $new_dir, $old_dir, $curr_year, $last_year ) = @_; + print("Deleting files from current year $curr_year in archives\n"); + print("and files from last year $last_year from current folder\n"); - my @this_year_files = File::Find::Rule->file() - ->name("*$curr_year*") - ->in($old_dir); - my @last_year_files = File::Find::Rule->file() - ->name("*$last_year*") - ->in($new_dir); + my @this_year_files = + File::Find::Rule->file()->name("*$curr_year*")->in($old_dir); + my @last_year_files = + File::Find::Rule->file()->name("*$last_year*")->in($new_dir); - unlink @this_year_files; - print("Deleted all $curr_year files from the folder for $last_year\n"); - unlink @last_year_files; - print("Deleted all $last_year files from the folder for $curr_year\n"); + unlink @this_year_files; + print("Deleted all $curr_year files from the folder for $last_year\n"); + unlink @last_year_files; + print("Deleted all $last_year files from the folder for $curr_year\n"); - return; + return; } From 01c227064da4347760404bdb2b0b08dab677d359 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 15 Sep 2018 12:32:13 -0500 Subject: [PATCH 12/27] Updated README after updating .vimrc with comment for paste/nopaste mode --- README.md | 7 +++---- home_config/.vimrc | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2342f37..c0def5a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -# ZSH and Bash config files for personal use +# ZSH Bash and other config files for personal use +# File processing scripts to archive financial files from previous year ## TODO -- Add .vimrc -- Add to .vimrc command to map such that it can switch between paste and nopaste modes: -`set pastetoggle=` \ No newline at end of file +None \ No newline at end of file diff --git a/home_config/.vimrc b/home_config/.vimrc index eb8cc89..fb4b67c 100644 --- a/home_config/.vimrc +++ b/home_config/.vimrc @@ -6,4 +6,4 @@ set tabstop=4 set shiftwidth=4 " On pressing tab, insert 4 spaces set expandtab -set pastetoggle= \ No newline at end of file +set pastetoggle= #To switch between paste and nopaste modes \ No newline at end of file From 7e1245328262673ac7c30cd07fea8b37a532a9be Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 15 Sep 2018 14:55:22 -0500 Subject: [PATCH 13/27] Add new file README --- home_zsh/README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 home_zsh/README.md diff --git a/home_zsh/README.md b/home_zsh/README.md new file mode 100644 index 0000000..122fac6 --- /dev/null +++ b/home_zsh/README.md @@ -0,0 +1,3 @@ +Copy the zpreztorc here: + ❯ ll ~/.zpreztorc +lrwxrwxrwx 1 tracey tracey 39 May 20 12:01 /home/tracey/.zpreztorc -> /home/tracey/.zprezto/runcoms/zpreztorc \ No newline at end of file From 5e5372ad6ac4234455aaebf37a2dd04db20184f8 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 15 Sep 2018 14:56:15 -0500 Subject: [PATCH 14/27] Update README.md with markdown --- home_zsh/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home_zsh/README.md b/home_zsh/README.md index 122fac6..dd319eb 100644 --- a/home_zsh/README.md +++ b/home_zsh/README.md @@ -1,3 +1,7 @@ +# zsh setup + Copy the zpreztorc here: - ❯ ll ~/.zpreztorc -lrwxrwxrwx 1 tracey tracey 39 May 20 12:01 /home/tracey/.zpreztorc -> /home/tracey/.zprezto/runcoms/zpreztorc \ No newline at end of file +` +❯ ll ~/.zpreztorc +lrwxrwxrwx 1 tracey tracey 39 May 20 12:01 /home/tracey/.zpreztorc -> /home/tracey/.zprezto/runcoms/zpreztorc +` \ No newline at end of file From 629c7f3d9ed761079a58ce193b14f6e2205134e2 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 15 Sep 2018 14:57:21 -0500 Subject: [PATCH 15/27] Corrected README markdown --- home_zsh/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home_zsh/README.md b/home_zsh/README.md index dd319eb..7729959 100644 --- a/home_zsh/README.md +++ b/home_zsh/README.md @@ -1,7 +1,8 @@ # zsh setup Copy the zpreztorc here: -` + +```zsh ❯ ll ~/.zpreztorc lrwxrwxrwx 1 tracey tracey 39 May 20 12:01 /home/tracey/.zpreztorc -> /home/tracey/.zprezto/runcoms/zpreztorc -` \ No newline at end of file +``` \ No newline at end of file From 811ec27a7724967aaf71599539ba5173573fe251 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 15 Sep 2018 14:57:57 -0500 Subject: [PATCH 16/27] Updated zsh config files' --- home_zsh/.zsh/zshalias | 4 +- home_zsh/.zshrc | 108 +++---------------- home_zsh/zpreztorc | 231 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 246 insertions(+), 97 deletions(-) create mode 100644 home_zsh/zpreztorc diff --git a/home_zsh/.zsh/zshalias b/home_zsh/.zsh/zshalias index bfaed22..b615bbc 100644 --- a/home_zsh/.zsh/zshalias +++ b/home_zsh/.zsh/zshalias @@ -6,10 +6,8 @@ alias ted='java -jar /home/tracey/bin/ted.jar' alias ll='ls -alFh --group-directories-first' alias la='ls -A' alias l='ls -CF' -alias lad='ls -ldh' # ls directory -alias tree='tree -Csu' # nice alternative to 'recursive ls' alias colo='ssh cp' alias colosync='ssh syncthing@cp' alias mountpi='sshfs -o idmap=user pi@pi3:/home/pi /home/tracey/pi3' alias unpi='fusermount -u /home/tracey/pi3' -alias less='less -r' \ No newline at end of file +alias aptup='sudo zsh -c 'apt update&&apt upgrade&&apt autoremove'' diff --git a/home_zsh/.zshrc b/home_zsh/.zshrc index 6b09cc3..2742d3d 100644 --- a/home_zsh/.zshrc +++ b/home_zsh/.zshrc @@ -1,51 +1,14 @@ -# Set up the prompt -# Note: Check the zsh underlying engine on the system -# Manjaro uses Prezto +# +# Executes commands at the start of an interactive session. +# +# Authors: +# Sorin Ionescu +# -autoload -Uz promptinit -promptinit -prompt adam1 - -setopt histignorealldups sharehistory - -#------------------------------------------------------------- -# Keybindings -#------------------------------------------------------------- - -bindkey '^H' backward-kill-word -bindkey '^F' forward-word -bindkey '^B' backward-word -# Use emacs keybindings even if our EDITOR is set to vi -# bindkey -e - -# Keep 1000 lines of history within the shell and save it to ~/.zsh_history: -HISTSIZE=1000 -SAVEHIST=1000 -HISTFILE=~/.zsh_history - -# Use modern completion system -autoload -U compinit promptinit zcalc zsh-mime-setup -compinit -promptinit -zsh-mime-setup - -zstyle ':completion:*' auto-description 'specify: %d' -zstyle ':completion:*' completer _expand _complete _correct _approximate -zstyle ':completion:*' format 'Completing %d' -zstyle ':completion:*' group-name '' -zstyle ':completion:*' menu select=2 -eval "$(dircolors -b)" -zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} -zstyle ':completion:*' list-colors '' -zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s -zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' -zstyle ':completion:*' menu select=long -zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s -zstyle ':completion:*' use-compctl false -zstyle ':completion:*' verbose true - -zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' -zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' +# Source Prezto. +if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then + source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" +fi # Load aliases if [ -f ~/.zsh/zshalias ]; then @@ -54,50 +17,7 @@ else print "404: ~/.zsh/zshalias not found." fi -# Note: Only use this if keyagent is not installed / available -eval `ssh-agent -s` && ssh-agent -ssh-add .ssh/tlc_gitlab - -# Export key file to agent keychain -#keychain --agents ssh --quick --quiet --noask /home/tracey/.ssh/*.pub - -#------------------------------------------------------------- -# Prompt bits -#------------------------------------------------------------- -# Initialize colors. -autoload -U colors -colors - -# Allow for functions in the prompt. -setopt PROMPT_SUBST - -# Autoload zsh functions. -fpath=(~/.zsh/functions $fpath) -autoload -U ~/.zsh/functions/*(:t) - -# Enable auto-execution of functions. -typeset -ga preexec_functions -typeset -ga precmd_functions -typeset -ga chpwd_functions - -# Append git functions needed for prompt. -preexec_functions+='preexec_update_git_vars' -precmd_functions+='precmd_update_git_vars' -chpwd_functions+='chpwd_update_git_vars' - -# For terminix / tilix -if [[ $TERMINIX_ID ]]; then - source /etc/profile.d/vte.sh -fi - -# Set the prompt. -#PROMPT=$'%{${fg[cyan]}%}%B%~%b$(prompt_git_info)%{${fg[default]}%} ' -PROMPT=$'%{${fg[magenta]}%}%n%{$reset_color%}\@%{$fg[blue]%}%m%{$reset_color%} %{${fg[cyan]}%}%B%~%b$(prompt_git_info)%{${fg[default]}%} %{$fg[blue]%}%%%{$reset_color%} ' - -# Export stuff for sshfs over VPN -echo "SSH_AGENT_PID=$SSH_AGENT_PID; export SSH_AGENT_PID;" >~/.thestuff -echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK; export SSH_AUTH_SOCK;" >>~/.thestuff - -#ssh-agent -# Export key file to agent keychain -keychain --agents ssh --quick --quiet --noask /home/tracey/.ssh/*.pub +# Necessary for loading custom prezto theme + autoload -Uz promptinit + promptinit + prompt paradox diff --git a/home_zsh/zpreztorc b/home_zsh/zpreztorc new file mode 100644 index 0000000..fcc6f81 --- /dev/null +++ b/home_zsh/zpreztorc @@ -0,0 +1,231 @@ +# +# Sets Prezto options. +# +# Authors: +# Sorin Ionescu +# + +# +# General +# + +# Set case-sensitivity for completion, history lookup, etc. +# zstyle ':prezto:*:*' case-sensitive 'yes' + +# Color output (auto set to 'no' on dumb terminals). +zstyle ':prezto:*:*' color 'yes' + +# Add additional directories to load prezto modules from +#zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib + +# Set the Zsh modules to load (man zshmodules). +zstyle ':prezto:load' zmodule 'attr' 'stat' + +# Set the Zsh functions to load (man zshcontrib). +# zstyle ':prezto:load' zfunction 'zargs' 'zmv' + +# Set the Prezto modules to load (browse modules). +# The order matters. +zstyle ':prezto:load' pmodule \ + 'environment' \ + 'terminal' \ + 'editor' \ + 'history' \ + 'directory' \ + 'spectrum' \ + 'utility' \ + 'ssh' \ + 'completion' \ + 'git' \ + 'syntax-highlighting' \ + 'history-substring-search' \ + 'prompt' + +# +# Autosuggestions +# + +# Set the query found color. +# zstyle ':prezto:module:autosuggestions:color' found '' + +# +# Completions +# + +# Set the entries to ignore in static */etc/hosts* for host completion. +# zstyle ':prezto:module:completion:*:hosts' etc-host-ignores \ +# '0.0.0.0' '127.0.0.1' + +# +# Editor +# + +# Set the key mapping style to 'emacs' or 'vi'. +zstyle ':prezto:module:editor' key-bindings 'emacs' + +# Auto convert .... to ../.. +# zstyle ':prezto:module:editor' dot-expansion 'yes' + +# Allow the zsh prompt context to be shown. +#zstyle ':prezto:module:editor' ps-context 'yes' + +# +# Git +# + +# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'. +# zstyle ':prezto:module:git:status:ignore' submodules 'all' + +# +# GNU Utility +# + +# Set the command prefix on non-GNU systems. +# zstyle ':prezto:module:gnu-utility' prefix 'g' + +# +# History Substring Search +# + +# Set the query found color. +# zstyle ':prezto:module:history-substring-search:color' found '' + +# Set the query not found color. +# zstyle ':prezto:module:history-substring-search:color' not-found '' + +# Set the search globbing flags. +# zstyle ':prezto:module:history-substring-search' globbing-flags '' + +# +# macOS +# + +# Set the keyword used by `mand` to open man pages in Dash.app +# zstyle ':prezto:module:osx:man' dash-keyword 'manpages' + +# +# Pacman +# + +# Set the Pacman frontend. +# zstyle ':prezto:module:pacman' frontend 'yaourt' + +# +# Prompt +# + +# Set the prompt theme to load. +# Setting it to 'random' loads a random theme. +# Auto set to 'off' on dumb terminals. +zstyle ':prezto:module:prompt' theme 'sorin' + +# Set the working directory prompt display length. +# By default, it is set to 'short'. Set it to 'long' (without '~' expansion) +# for longer or 'full' (with '~' expansion) for even longer prompt display. +# zstyle ':prezto:module:prompt' pwd-length 'short' + +# Set the prompt to display the return code along with an indicator for non-zero +# return codes. This is not supported by all prompts. +# zstyle ':prezto:module:prompt' show-return-val 'yes' + +# +# Python +# + +# Auto switch the Python virtualenv on directory change. +# zstyle ':prezto:module:python:virtualenv' auto-switch 'yes' + +# Automatically initialize virtualenvwrapper if pre-requisites are met. +# zstyle ':prezto:module:python:virtualenv' initialize 'yes' + +# +# Ruby +# + +# Auto switch the Ruby version on directory change. +# zstyle ':prezto:module:ruby:chruby' auto-switch 'yes' + +# +# Screen +# + +# Auto start a session when Zsh is launched in a local terminal. +# zstyle ':prezto:module:screen:auto-start' local 'yes' + +# Auto start a session when Zsh is launched in a SSH connection. +# zstyle ':prezto:module:screen:auto-start' remote 'yes' + +# +# SSH +# + +# Set the SSH identities to load into the agent. +# zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github' +zstyle ':prezto:module:ssh:load' identities 'tlc_gitlab' 'tlc_server' +echo 'Loaded the identities' +echo `ssh-add -l` + +# +# Syntax Highlighting +# + +# Set syntax highlighters. +# By default, only the main highlighter is enabled. +# zstyle ':prezto:module:syntax-highlighting' highlighters \ +# 'main' \ +# 'brackets' \ +# 'pattern' \ +# 'line' \ +# 'cursor' \ +# 'root' +# +# Set syntax highlighting styles. +# zstyle ':prezto:module:syntax-highlighting' styles \ +# 'builtin' 'bg=blue' \ +# 'command' 'bg=blue' \ +# 'function' 'bg=blue' +# +# Set syntax pattern styles. +# zstyle ':prezto:module:syntax-highlighting' pattern \ +# 'rm*-rf*' 'fg=white,bold,bg=red' + +# +# Terminal +# + +# Auto set the tab and window titles. +# zstyle ':prezto:module:terminal' auto-title 'yes' + +# Set the window title format. +# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s' + +# Set the tab title format. +# zstyle ':prezto:module:terminal:tab-title' format '%m: %s' + +# Set the terminal multiplexer title format. +# zstyle ':prezto:module:terminal:multiplexer-title' format '%s' + +# +# Tmux +# + +# Auto start a session when Zsh is launched in a local terminal. +# zstyle ':prezto:module:tmux:auto-start' local 'yes' + +# Auto start a session when Zsh is launched in a SSH connection. +# zstyle ':prezto:module:tmux:auto-start' remote 'yes' + +# Integrate with iTerm2. +# zstyle ':prezto:module:tmux:iterm' integrate 'yes' + +# Set the default session name: +# zstyle ':prezto:module:tmux:session' name 'YOUR DEFAULT SESSION NAME' + +# +# Utility +# + +# Enabled safe options. This aliases cp, ln, mv and rm so that they prompt +# before deleting or overwriting files. Set to 'no' to disable this safer +# behavior. +# zstyle ':prezto:module:utility' safe-ops 'yes' From 860a0565646be652415abb6c8f12d12f869ed03f Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 15 Sep 2018 15:02:45 -0500 Subject: [PATCH 17/27] Added tilix vte support to .zshrc --- home_zsh/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home_zsh/.zshrc b/home_zsh/.zshrc index 2742d3d..84f7e36 100644 --- a/home_zsh/.zshrc +++ b/home_zsh/.zshrc @@ -17,6 +17,11 @@ else print "404: ~/.zsh/zshalias not found." fi +# For tilix vte support +if [ $TILIX_ID ] || [ $VTE_VERSION ]; then + source /etc/profile.d/vte.sh +fi + # Necessary for loading custom prezto theme autoload -Uz promptinit promptinit From 043411bd887f9fa903685178031e5f0338a8b1b0 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Wed, 3 Oct 2018 20:27:03 -0500 Subject: [PATCH 18/27] Initial commit of local rsync backup script --- local_backup.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 local_backup.sh diff --git a/local_backup.sh b/local_backup.sh new file mode 100755 index 0000000..84b73c4 --- /dev/null +++ b/local_backup.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +#Script to back up /home/tracey to external USB drive +#http://www.bobulous.org.uk/misc/rsync-backup.html +date=`date +%Y-%m-%d` +mount_point='/media/tracey/Backup' +log_file='/home/tracey/$date' + +echo "#####" +echo "" +# Check whether target volume is mounted, and mount it if not. +if ! mountpoint -q ${mount_point}/; then + echo "Mounting the external USB drive." + echo "Mountpoint is ${mount_point}" + if ! mount ${mount_point}; then + echo "An error code was returned by mount command!" + exit 5 + else echo "Mounted successfully."; + fi +else echo "${mount_point} is already mounted."; +fi +# Target volume **must** be mounted by this point. If not, die screaming. +if ! mountpoint -q ${mount_point}/; then + echo "Mounting failed! Cannot run backup without backup volume!" + exit 1 +fi + +echo "Preparing to transfer differences in home directory to backup USB drive using rsync." + +rsync -avzh --exclude '.cache' --exclude 'Videos' --exclude 'Nextloud' --exclude 'Downloads/isos' --exclude 'VirtualBox VMs' --exclude 'Sync' --exclude 'Downloads/torrents' --exclude '.local/share/Steam' --exclude 'Music' --progress --delete /home/tracey/Documents /media/tracey/Backup/tracey/Documents/ 2>&1 | tee /home/tracey/rsync-output.txt + +echo "" +echo "Backup Complete" +echo "Log of this backup is in " +echo "" +echo "####" From 5cbc0266c6aa4222e8598dde402c9dc207d1c205 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Wed, 3 Oct 2018 20:29:13 -0500 Subject: [PATCH 19/27] Added log file location to output of backup script --- local_backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local_backup.sh b/local_backup.sh index 84b73c4..a4dce0a 100755 --- a/local_backup.sh +++ b/local_backup.sh @@ -4,7 +4,7 @@ #http://www.bobulous.org.uk/misc/rsync-backup.html date=`date +%Y-%m-%d` mount_point='/media/tracey/Backup' -log_file='/home/tracey/$date' +log_file='/home/tracey/usb-rsync-backup-'${date}'.txt' echo "#####" echo "" @@ -31,6 +31,6 @@ rsync -avzh --exclude '.cache' --exclude 'Videos' --exclude 'Nextloud' --exclude echo "" echo "Backup Complete" -echo "Log of this backup is in " +echo "Log of this backup is in $log_file" echo "" echo "####" From c5ba1e0cc7fd952871be627c78329c20d8264c0a Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Wed, 3 Oct 2018 20:32:56 -0500 Subject: [PATCH 20/27] Added log file location to output of backup script in second place --- local_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local_backup.sh b/local_backup.sh index a4dce0a..9c44f98 100755 --- a/local_backup.sh +++ b/local_backup.sh @@ -27,7 +27,7 @@ fi echo "Preparing to transfer differences in home directory to backup USB drive using rsync." -rsync -avzh --exclude '.cache' --exclude 'Videos' --exclude 'Nextloud' --exclude 'Downloads/isos' --exclude 'VirtualBox VMs' --exclude 'Sync' --exclude 'Downloads/torrents' --exclude '.local/share/Steam' --exclude 'Music' --progress --delete /home/tracey/Documents /media/tracey/Backup/tracey/Documents/ 2>&1 | tee /home/tracey/rsync-output.txt +rsync -avzh --exclude '.cache' --exclude 'Videos' --exclude 'Nextloud' --exclude 'Downloads/isos' --exclude 'VirtualBox VMs' --exclude 'Sync' --exclude 'Downloads/torrents' --exclude '.local/share/Steam' --exclude 'Music' --progress --delete /home/tracey/Documents /media/tracey/Backup/tracey/Documents/ 2>&1 | tee $log_file echo "" echo "Backup Complete" From 7bcec44bb82a80bcbb1a23941a6ec9ba91c0255d Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Fri, 4 Jan 2019 18:18:00 -0600 Subject: [PATCH 21/27] Adding ability to remove backup logs over 7 days old --- local_backup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/local_backup.sh b/local_backup.sh index 9c44f98..f2bdc5f 100755 --- a/local_backup.sh +++ b/local_backup.sh @@ -27,10 +27,12 @@ fi echo "Preparing to transfer differences in home directory to backup USB drive using rsync." -rsync -avzh --exclude '.cache' --exclude 'Videos' --exclude 'Nextloud' --exclude 'Downloads/isos' --exclude 'VirtualBox VMs' --exclude 'Sync' --exclude 'Downloads/torrents' --exclude '.local/share/Steam' --exclude 'Music' --progress --delete /home/tracey/Documents /media/tracey/Backup/tracey/Documents/ 2>&1 | tee $log_file +rsync -avzh --exclude '.cache' --exclude 'Videos' --exclude 'Nextloud' --exclude 'Downloads/isos' --exclude 'VirtualBox VMs' --exclude 'Sync' --exclude 'Downloads/torrents' --exclude '.local/share/Steam' --exclude 'Music' --progress --delete /home/tracey/ /media/tracey/Backup/tracey/ 2>&1 | tee $log_file echo "" echo "Backup Complete" echo "Log of this backup is in $log_file" -echo "" +echo "Now deleting backup logs over 7 days" echo "####" + +find /home/tracey -iname 'usb-rsync-backup-*' -mtime +7 -exec rm {} \; From c017b28547f33483446d14bfa4bc4e3d178cb0c7 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 5 Jan 2019 12:45:29 -0600 Subject: [PATCH 22/27] Moved backups to unique directory. Updated log deletion. --- local_backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local_backup.sh b/local_backup.sh index f2bdc5f..5e1d5c6 100755 --- a/local_backup.sh +++ b/local_backup.sh @@ -4,7 +4,7 @@ #http://www.bobulous.org.uk/misc/rsync-backup.html date=`date +%Y-%m-%d` mount_point='/media/tracey/Backup' -log_file='/home/tracey/usb-rsync-backup-'${date}'.txt' +log_file='/home/tracey/backuplogs/usb-rsync-backup-'${date}'.txt' echo "#####" echo "" @@ -35,4 +35,4 @@ echo "Log of this backup is in $log_file" echo "Now deleting backup logs over 7 days" echo "####" -find /home/tracey -iname 'usb-rsync-backup-*' -mtime +7 -exec rm {} \; +find /home/tracey/backuplogs -iname 'usb-rsync-backup-*' -mtime +7 -type f -delete From ef79ab2cee2fc13d68b2a7593fc7cd47b60f08e7 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 5 Jan 2019 14:11:16 -0600 Subject: [PATCH 23/27] Updated config files to current --- home_config/ssh_config | 6 +++--- home_zsh/zpreztorc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/home_config/ssh_config b/home_config/ssh_config index 80fb9fd..46f4864 100644 --- a/home_config/ssh_config +++ b/home_config/ssh_config @@ -11,9 +11,9 @@ Host pi3 HostName pi3 User pi IdentityFile ~/.ssh/tlc_pi3_pi -Host gitlab - HostName gitlab.tlcnet.info +Host gittea + HostName gitea.tlcnet.info RSAAuthentication yes # User git Port 227 - IdentityFile ~/.ssh/tlc_gitlab + IdentityFile ~/.ssh/id_tlc_gitea diff --git a/home_zsh/zpreztorc b/home_zsh/zpreztorc index fcc6f81..a89d09f 100644 --- a/home_zsh/zpreztorc +++ b/home_zsh/zpreztorc @@ -161,7 +161,7 @@ zstyle ':prezto:module:prompt' theme 'sorin' # Set the SSH identities to load into the agent. # zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github' -zstyle ':prezto:module:ssh:load' identities 'tlc_gitlab' 'tlc_server' +zstyle ':prezto:module:ssh:load' identities 'tlc_gittea' 'tlc_server' echo 'Loaded the identities' echo `ssh-add -l` @@ -228,4 +228,4 @@ echo `ssh-add -l` # Enabled safe options. This aliases cp, ln, mv and rm so that they prompt # before deleting or overwriting files. Set to 'no' to disable this safer # behavior. -# zstyle ':prezto:module:utility' safe-ops 'yes' +zstyle ':prezto:module:utility' safe-ops 'no' From 3b12e52242b23932c46ab47b4d25b621a0ae7bc7 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sat, 5 Jan 2019 14:16:26 -0600 Subject: [PATCH 24/27] Backing up the current zshrc --- home_zsh/zshrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 home_zsh/zshrc diff --git a/home_zsh/zshrc b/home_zsh/zshrc new file mode 100644 index 0000000..039b882 --- /dev/null +++ b/home_zsh/zshrc @@ -0,0 +1,13 @@ +# +# Executes commands at the start of an interactive session. +# +# Authors: +# Sorin Ionescu +# + +# Source Prezto. +if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then + source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" +fi + +# Customize to your needs... From 6f12971715f11e726e47aba1ce4fa080c0003f6d Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Thu, 7 Feb 2019 08:57:38 -0600 Subject: [PATCH 25/27] Update 'home_zsh/.zsh/zshalias' Added alias to restart kde for when it stops responding to the mouse --- home_zsh/.zsh/zshalias | 1 + 1 file changed, 1 insertion(+) diff --git a/home_zsh/.zsh/zshalias b/home_zsh/.zsh/zshalias index b615bbc..1977092 100644 --- a/home_zsh/.zsh/zshalias +++ b/home_zsh/.zsh/zshalias @@ -11,3 +11,4 @@ alias colosync='ssh syncthing@cp' alias mountpi='sshfs -o idmap=user pi@pi3:/home/pi /home/tracey/pi3' alias unpi='fusermount -u /home/tracey/pi3' alias aptup='sudo zsh -c 'apt update&&apt upgrade&&apt autoremove'' +alias fixkde='DISPLAY=:0 kwin --replace &' \ No newline at end of file From 820e20efd3f7c6ca11692fb0225a929eee2149cf Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sun, 3 Mar 2019 21:26:17 -0600 Subject: [PATCH 26/27] Removed delete option from backup --- local_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local_backup.sh b/local_backup.sh index 5e1d5c6..bde6d74 100755 --- a/local_backup.sh +++ b/local_backup.sh @@ -27,7 +27,7 @@ fi echo "Preparing to transfer differences in home directory to backup USB drive using rsync." -rsync -avzh --exclude '.cache' --exclude 'Videos' --exclude 'Nextloud' --exclude 'Downloads/isos' --exclude 'VirtualBox VMs' --exclude 'Sync' --exclude 'Downloads/torrents' --exclude '.local/share/Steam' --exclude 'Music' --progress --delete /home/tracey/ /media/tracey/Backup/tracey/ 2>&1 | tee $log_file +rsync -azh --exclude '.cache' --exclude 'Videos' --exclude 'Nextcloud' --exclude 'Downloads/isos' --exclude 'VirtualBox VMs' --exclude 'Sync' --exclude 'Downloads/torrents' --exclude '.local/share/Steam' --exclude 'Music' --progress /home/tracey/ /media/tracey/Backup/tracey/ 2>&1 | tee $log_file echo "" echo "Backup Complete" From 9267260aadf7f52af05ec63fb418a5880a0b9766 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Sun, 3 Mar 2019 21:36:56 -0600 Subject: [PATCH 27/27] Initial commit of script to update gitea with pseudocode --- update-gitea.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 update-gitea.sh diff --git a/update-gitea.sh b/update-gitea.sh new file mode 100644 index 0000000..1715f58 --- /dev/null +++ b/update-gitea.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Update gitea based on version provided + +# Ask for version if not passed in # + +# Download version specified + +# Stop service + +# Backup current gitea mv + +# Build URL ex +# https://dl.gitea.io/gitea/1.7.3/gitea-1.7.3-linux-amd64.xz +# https://dl.gitea.io/gitea/$version/gitea-$version-linux-amd64.xz + +# GITEA_XZ=gitea-$version-linux-amd64.xz + +# wget + +# Unzip downloaded gitea +# unxz $GITEA_XZ + +# Change perms unless we run this as user gitea + +# Restart gitea + +# Test + +# Email