tadd more - wiki - knowledgebase of randomness HTML git clone git://parazyd.org/wiki.git DIR Log DIR Files DIR Refs --- DIR commit c40cdd1fad9c6beb79dc701b8edde605b3cecb08 DIR parent df6804cbab51fce9d9d2555986a8379b0ef30641 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 15 Feb 2017 04:04:00 +0100 add more Diffstat: M Awk.wiki | 5 +++++ M Shell.wiki | 20 +++----------------- M index.wiki | 3 +++ A posix.wiki | 9 +++++++++ A sysadmin.wiki | 11 +++++++++++ A zsh.wiki | 7 +++++++ 6 files changed, 38 insertions(+), 17 deletions(-) --- DIR diff --git a/Awk.wiki b/Awk.wiki t@@ -1,5 +1,10 @@ = awk knowledgebase = +== print everything except $1 == + {{{shell + awk '{for (i=2; i<=NF; i++) print $i}' filename + }}} + == sum numbers from a pipe == {{{ cat history.json | jq '.[] | select( .id | contains("dyne")) | .amount' DIR diff --git a/Shell.wiki b/Shell.wiki t@@ -1,19 +1,8 @@ = Shell Programming Knowledgebase = -== ZSH == +* [[zsh]] +* [[posix]] -=== Get the count of items in an array === - {{{shell - $#array - }}} - -== POSIX == -* http://www.etalabs.net/sh_tricks.html - -=== Globbing directories === - {{{shell - printf %s\\n */ - }}} == Random Oneliners == t@@ -22,7 +11,4 @@ find /var/www -perm -o+w -a -not -type l -ls }}} -=== awk - print everything except $1 === - {{{shell - awk '{for (i=2; i<=NF; i++) print $i}' filename - }}} + DIR diff --git a/index.wiki b/index.wiki t@@ -1,9 +1,12 @@ = Knowledgebase = +Managed with [vimwiki](https://github.com/vimwiki/vimwiki) + == Linux == * [[Vim]] * [[Xorg]] * [[Cmus]] +* [[sysadmin]] == Programming == * [[Shell]] DIR diff --git a/posix.wiki b/posix.wiki t@@ -0,0 +1,9 @@ += POSIX = +* http://www.etalabs.net/sh_tricks.html + +== Globbing directories == + {{{shell + printf %s\\n */ + }}} + + DIR diff --git a/sysadmin.wiki b/sysadmin.wiki t@@ -0,0 +1,11 @@ += digital janitoring = + +== static ip /etc/network/interfaces == + {{{ + auto eth0 + iface eth0 inet static + address 10.0.1.250 + netmask 255.255.255.0 + gateway 10.0.1.1 + network 10.0.1.0 + }}} DIR diff --git a/zsh.wiki b/zsh.wiki t@@ -0,0 +1,7 @@ += ZSH = + +== Get the count of items in an array == + {{{shell + $#array + }}} +