wiki

knowledgebase of randomness
git clone git://parazyd.org/wiki.git
Log | Files | Refs

commit c40cdd1fad9c6beb79dc701b8edde605b3cecb08
parent df6804cbab51fce9d9d2555986a8379b0ef30641
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 15 Feb 2017 04:04:00 +0100

add more

Diffstat:
MAwk.wiki | 5+++++
MShell.wiki | 20+++-----------------
Mindex.wiki | 3+++
Aposix.wiki | 9+++++++++
Asysadmin.wiki | 11+++++++++++
Azsh.wiki | 7+++++++
6 files changed, 38 insertions(+), 17 deletions(-)

diff --git a/Awk.wiki b/Awk.wiki @@ -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' diff --git a/Shell.wiki b/Shell.wiki @@ -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 == @@ -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 - }}} + diff --git a/index.wiki b/index.wiki @@ -1,9 +1,12 @@ = Knowledgebase = +Managed with [vimwiki](https://github.com/vimwiki/vimwiki) + == Linux == * [[Vim]] * [[Xorg]] * [[Cmus]] +* [[sysadmin]] == Programming == * [[Shell]] diff --git a/posix.wiki b/posix.wiki @@ -0,0 +1,9 @@ += POSIX = +* http://www.etalabs.net/sh_tricks.html + +== Globbing directories == + {{{shell + printf %s\\n */ + }}} + + diff --git a/sysadmin.wiki b/sysadmin.wiki @@ -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 + }}} diff --git a/zsh.wiki b/zsh.wiki @@ -0,0 +1,7 @@ += ZSH = + +== Get the count of items in an array == + {{{shell + $#array + }}} +