linux flickr auto uploader

sudo perl -MCPAN -e 'install Flickr::Upload'

flickr_upload --auth

echo auth_token=<token> >> ~/.flickrrc
echo progress=0 >> ~/.flickrrc

via http://anbits.blogspot.com

#! /usr/bin/env /bash

help() {
    echo 'Runs flickr_upload on directories and subdirectories.'
    echo 'If no arguments, runs in current directory.'
    echo 'Tag is taken from directory name.'
}

DONEMARKER="flickr_upload_marker"

if [[ ($2 != "") && ($1 = "-d") ]]; then
    pushd "$2" > /dev/null
    echo `pwd`
    if [ ! -e $DONEMARKER ]; then
        pwd=`pwd`
        TAG=`basename "$pwd"`
        flickr_upload --tag "$TAG" *.jpg
        flickr_upload --tag "$TAG" *.JPG
        touch $DONEMARKER
    else
        echo "marker found \"$DONEMARKER\""
    fi
    popd > /dev/null
    exit 0
elif [[ $1 != "" ]]; then
    DIR="$1"
else
    DIR="`pwd`"
fi

help

pushd "`dirname $0`" > /dev/null
SCRIPTLOCATION="`pwd`"
popd > /dev/null

pushd "$DIR" > /dev/null
DIR="`pwd`"
popd > /dev/null

echo $DIR
find "${DIR}/" -type d -print0 | xargs -0 -I % $0 -d %

Konfiguracja wifi

$ cat /etc/modprobe.d/iwlwifi.conf; cd /sys/module/iwlwifi/parameters; modinfo iwlwifi | grep parm | while read X; do echo $X; Y=${X#*: }; Z=${Y%%:*}; cat $Z ;done
options iwlwifi 11n_disable=0 swcrypto=1

parm: swcrypto:using crypto in software (default 0 [hardware]) (int)
1
parm: 11n_disable:disable 11n functionality, bitmap: 1: full, 2: agg TX, 4: agg RX (uint)
0
parm: amsdu_size_8K:enable 8K amsdu size (default 0) (int)
0
parm: fw_restart:restart firmware in case of error (default true) (bool)
Y
parm: antenna_coupling:specify antenna coupling in dB (defualt: 0 dB) (int)
0
parm: wd_disable:Disable stuck queue watchdog timer 0=system default, 1=disable, 2=enable (default: 0) (int)
1
parm: nvm_file:NVM file name (charp)
(null)
parm: bt_coex_active:enable wifi/bt co-exist (default: enable) (bool)
Y
parm: led_mode:0=system default, 1=On(RF On)/Off(RF Off), 2=blinking, 3=Off (default: 0) (int)
0
parm: power_save:enable WiFi power management (default: disable) (bool)
N
parm: power_level:default power save level (range from 1 - 5, default: 1) (int)
0

via archlinux forum.