Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
##
## OpenWrt
## TP-Link TD-W8970
## Forthnet VDSL configuration:
## Protocol: PPPoE
## annex: A
## xfer_mode: PTM
## Vlan id: 1102

Keybase proof

I hereby claim:

  • I am panayiotis on github.
  • I am panayiotis (https://keybase.io/panayiotis) on keybase.
  • I have a public key ASBN8--oSRJNg5rBoS_TipYVC5nB0J2CzjUimN7lPunHWQo

To claim this, I am signing this object:

# usefull bash commands for moss
# print submission dates
reset; ls -l */*.{tar,gz,rar} | awk '{for(i=6;i<=9;i++)printf "%s ",$i;printf "\n"}' | sort
# unzip archives
find . -type f -name *.tar -print0 | xargs -0 -I file sh -c 'tar -xf file -C `dirname file`'
find . -type f -name *.tar.gz -print0 | xargs -0 -I file sh -c 'tar -xzf file -C `dirname file`'
find . -type f -name *.rar -print0 | xargs -0 -I file sh -c 'unrar -y e file "`dirname file`"'

Essential Linux shortcuts for MacOS users

In Linux many keyboard shortcuts use the function keys (upper row in the keyboard). To press an F key the fn key has to be pressed on the same time. If you prefer the function keys to always behave as standard function keys(without holding the fn key):

  1. Enter System Preferences
  2. Enter Keyboard settings
  3. Click the Keyboard tab if it's not already highlighted
  4. Select Use all F1, F2, etc. keys as standard function keys