plus a new function for showing md file content, and new scripts for showing network interface info and for showing packages that were manually installed.
# personal aliases or functions disrupting the results.
ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
+# another slightly tighter version:
+export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory.
+
--- /dev/null
+
+"c:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/Tools/vsvars32.bat"
--- /dev/null
+var=0
+for i in *; do
+ var=$(($var + 1))
+ mkdir -p ~/pictures_converted/$var/
+ pdfimages -j $i ~/pictures_converted/$var/
+ mv ~/pictures_converted/$var/* ~/pictures_converted/$(basename $i .pdf).jpg
+done
+
+
--- /dev/null
+sudo ufw deny from ${ip_address} to any
##############
+#hmmm: this points to an extended functions file being needed; not all of these are core.
+
+ # displays documentation in "md" formatted files.
+ function show_md()
+ {
+ local file="$1"; shift
+ pandoc "$file" | lynx -stdin
+ }
+
+ ##############
+
# just shows a separator line for an 80 column console, or uses the first
# parameter as the number of columns to expect.
function separator()
--- /dev/null
+
+ifc="$1"; shift
+
+nmcli device show "$ifc"
--- /dev/null
+
+
+#gotten from http://askubuntu.com/questions/2389/generating-list-of-manually-installed-packages-and-querying-individual-packages
+
+comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n s/^Package: //p | sort -u)