Backup and restore mySQL (MariaDB) database

Backup:
/usr/bin/mysqldump --user=dbuser --password=dbpass --host=localhost --add-drop-table dbname > backups/mydbdump.sql

Restore:
(if the db exist)
# mysql -u root -p[root_password] [database_name] < dumpfilename.sql

mysql -u root -ps3cre3t

mysql> create database dbname;
Query OK, 1 row affected (0.02 sec)

# mysql -u root -ps3cre3t db < /tmp/mydbdump.sql

Motorcycle battery (R1100RS)

Yuasa YT19BL-BS

  • Length (in) 7.438 in.
  • Width (in) 3.250 in.
  • Height (in) 6.875 in.
    WestCo 12V20P
  • 51814, 51913 BMW
    SEALED VRLA, AGM, 12V 20AH, 275 CCA, NON-HAZARDOUS NON-SPILLABLE BATTERIES
    $126.95
    SEALED VRLA, AGM, 12V 20AH, 275 CCA, NON-HAZARDOUS NON-SPILLABLE BATTERIES

    WPS 51913 49-1208

  • Meet Lima

    It appears the 'beacon' is their service:
    strings on beacon got a lot... what makes me feel this is their 'stuff':
    could not read eth0 IPv4...
    beacon.api.meetlima.com
    /home/denis/lima/git/lima-wanserr-firmware/openwrt/staging

    A quick look it appears that

    pin signal
    9 TX
    8 RX
    7 gnd

    This is the unpopulated set of through-hole pads on the daughter card near the RJ45 end of the card. With jtagulator connected

    Using the Linux alternatives command to manage multiple Arduino IDE versions

    The Arduino package contains an IDE that can be used to develop and upload code to the micro-controller.

  • Install from the repositories:

    sudo yum -y install arduino

    Run the Arduino IDE and set your preferences, etc. and test that it works. Your user may need to be added to some groups (dialout and lock in Fedora 20) to have permissions to write to the serial interface on your computer.

    Optionally, install the alternatives graphical user interface. You can use this interface to switch between your options rather than using the command.

  • Fixed clamav logging error

    service clamd start
    Starting Clam AntiVirus Daemon: ERROR: Can't open /var/log/clamav/clamav.log in append mode (check permissions!).
    ERROR: Can't initialize the internal logger
    [FAILED]

    # grep clam /etc/selinux/targeted/contexts/files/file_contexts

    /var/log/clamav.* system_u:object_r:antivirus_log_t:s0

    # semanage fcontext -a -t antivirus_log_t "/var/log/clamav(/.*)?"
    # restorecon -R /var/log/clamav
    # chown clam:clam /var/log/clamav *log

    Installing Sun Java with Fedora/RedHat alternatives

    Download java:
    http://java.com/en/download/linux_manual.jsp?locale=en
    Install with rpm:
    rpm -Uvh jre-7u67-linux-x64.rpm
    Set alternatives:
    update-alternatives --install "/usr/bin/java" "java" "/usr/java/latest/bin/java" 1 \
    --slave "/usr/bin/keytool" "keytool" "/usr/java/latest/jre/bin/keytool" \
    --slave "/usr/bin/unpack200" "unpack200" "/usr/java/latest/bin/unpack200" \
    --slave "/usr/bin/pack200" "pack200" "/usr/java/latest/bin/pack200" \
    --slave "/usr/bin/rmid" "rmid" "/usr/java/latest/bin/rmid" \

    Fastest DNS

    Ran some tests and found these DNS entries for my router are faster:

  • 24.93.41.125
  • 209.18.47.62
  • However, they are managed by TimeWarner, and are not very reliable.
    So, maybe I go back to OpenDNS

  • 208.67.222.222
  • 208.67.220.220
  • or
    Google DNS

  • 8.8.8.8
  • 8.8.4.4