URI: 
       tMore random commands. - wiki - knowledgebase of randomness
  HTML git clone git://parazyd.org/wiki.git
   DIR Log
   DIR Files
   DIR Refs
       ---
   DIR commit ae593b18c190e376c96f1404ae792a76e580c87d
   DIR parent c090ede63bb7af6c7e2a76c8d91b2781aed3270d
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Mon,  5 Feb 2018 18:21:19 +0100
       
       More random commands.
       
       Diffstat:
         M Git.wiki                            |       6 ++++++
         A Useful commands.wiki                |      14 ++++++++++++++
         M index.wiki                          |       3 +++
         A oneliners.wiki                      |      15 +++++++++++++++
         A sed.wiki                            |      13 +++++++++++++
       
       5 files changed, 51 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/Git.wiki b/Git.wiki
       t@@ -40,3 +40,9 @@
        == backup untracked files ==
        
                git ls-files --others -i --exclude-standard | xargs zip untracked.zip
       +
       +== delete a tag from the remote ==
       +
       +        git tag -d 12345
       +        git push origin :refs/tags/12345
       +
   DIR diff --git a/Useful commands.wiki b/Useful commands.wiki
       t@@ -0,0 +1,14 @@
       += useful random commands =
       +
       +== boot a kernel with qemu-system-arm ==
       +        {{{
       +        qemu-system-arm -enable-kvm -M virt -cpu host -m 512M -kernel zImage -nographic
       +        }}}
       +
       +
       +== ssh port forwarding ==
       +
       +        {{{
       +        torsocks ssh -L10443:10.20.40.150:443 root@ru23abastzmgpecs.onion
       +        }}}
       +
   DIR diff --git a/index.wiki b/index.wiki
       t@@ -11,9 +11,12 @@ Managed with [vimwiki](https://github.com/vimwiki/vimwiki)
        == Programming ==
        * [[Shell]]
        * [[Awk]]
       +* [[sed]]
       +* [[oneliners]]
        
        == Data ==
        * [[JSON]]
        
        == Misc ==
        * [[Git]]
       +* [[Useful commands]]
   DIR diff --git a/oneliners.wiki b/oneliners.wiki
       t@@ -0,0 +1,15 @@
       += random oneliners =
       +
       +== parse access.log for countries ==
       +
       +        {{{
       +        awk '{print $1}' access.log \
       +                | uniq \
       +                | while read line; do \
       +                        geoiplookup $line \
       +                done \
       +                | grep Country \
       +                | sort \
       +                | awk -F: '{print $2}' \
       +                | cut -b 2-
       +        }}}
   DIR diff --git a/sed.wiki b/sed.wiki
       t@@ -0,0 +1,13 @@
       += sed knowledgebase =
       +
       +== paragraphs ==
       +
       +        {{{
       +        sed '2,/^$/d'
       +        }}}
       +
       +== trailing whitespace ==
       +
       +        {{{
       +        sed 's/[ \t]*$//'
       +        }}}