Bash colored prompt Kategoria: Linux | Tagi: bash | Autor: Bartłomiej Gałęzia

http://ubuntuforums.org/showthread.php?t=765191

Zobacz całość

Bash happy prompt Kategoria: Linux | Tagi: bash, do poprawki | Autor: Bartłomiej Gałęzia

3Com 2952 SFP HP Switch - aktywacja web interface Kategoria: Network | Tagi: 3com, switch | Autor: Bartłomiej Gałęzia

bash

minicom

38400.8.1.N

Password reset:

podczas bootowania

Ctrl+B

7 – skip configuration

0 – Reboot

po restarcie

initialize

reboot

Aktywacja cli:

_cmdline-mode on

pass: 512900

sys

local-user (username)
(username)>password simple (password)
(username)>authorization-attribute level 3
(username)>service-type telnet
(username)>service-type lan-access
(username)>return

ip http enable

ipsetup ip-address 10.50.10.155 255.255.0.0

http://www.petenetlive.com/KB/Article/0000495.htm

http://glazenbakje.wordpress.com/2012/08/21/hp-v1910-secret-commando-list-how-to-enable-it/

http://ttssh2.sourceforge.jp/index.html.en  – terminal rs232

Przeglądarka wolno działa na Ubuntu? Kategoria: WWW | Tagi: Firefox, ubuntu | Autor: Bartłomiej Gałęzia

Mozilla Firefox

about:config
dns IPv6 disable

Jquery - pokaż rozmiar okna przeglądarki Kategoria: jQuery | Tagi: jquery | Autor: Bartłomiej Gałęzia

http://www.brightcherry.co.uk/scribbles/jquery-show-the-height-and-width-of-the-browser-viewport-in-real-time/

Usuwanie Byte-Of-Mark przez Vim Kategoria: Linux | Tagi: vim | Autor: Bartłomiej Gałęzia

To save the file without a BOM:

:setlocal nobomb
:w

To ask Vim if there is a BOM:

:setlocal bomb?

Klonowanie dysku dd Kategoria: Linux | Autor: Bartłomiej Gałęzia

https://wiki.archlinux.org/index.php/Disk_Cloning

dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror

Vsftpd - instalacja Kategoria: Linux | Tagi: ftp | Autor: Bartłomiej Gałęzia

Ubuntu install android Eclipse Kategoria: Android | Tagi: android, eclipse, ubuntu | Autor: Bartłomiej Gałęzia

sudo apt-get update

sudo apt-get install oracle-jdk7-installer

sudo apt-get install eclipse

http://stackoverflow.com/questions/10165693/eclipse-cannot-load-swt-libraries

ln -s /usr/lib/jni/libswt-*~/.swt/lib/linux/x86_64/

apt-get install ia32-libs

Linux Star Wars beep script Kategoria: Linux | Tagi: bash, beep | Autor: Bartłomiej Gałęzia

aptitude install beep
beep -l 350 -f 392 -D 100 -n -l 350 -f 392 -D 100 -n -l 350 -f 392 -D 100 -n -l 250 -f 311.1 -D 100 -n -l 25 -f 466.2 -D 100 -n -l 350 -f 392 -D 100 -n -l 250 -f 311.1 -D 100 -n -l 25 -f 466.2 -D 100 -n -l 700 -f 392 -D 100 -n -l 350 -f 587.32 -D 100 -n -l 350 -f 587.32 -D 100 -n -l 350 -f 587.32 -D 100 -n -l 250 -f 622.26 -D 100 -n -l 25 -f 466.2 -D 100 -n -l 350 -f 369.99 -D 100 -n -l 250 -f 311.1 -D 100 -n -l 25 -f 466.2 -D 100 -n -l 700 -f 392 -D 100 -n -l 350 -f 784 -D 100 -n -l 250 -f 392 -D 100 -n -l 25 -f 392 -D 100 -n -l 350 -f 784 -D 100 -n -l 250 -f 739.98 -D 100 -n -l 25 -f 698.46 -D 100 -n -l 25 -f 659.26 -D 100 -n -l 25 -f 622.26 -D 100 -n -l 50 -f 659.26 -D 400 -n -l 25 -f 415.3 -D 200 -n -l 350 -f 554.36 -D 100 -n -l 250 -f 523.25 -D 100 -n -l 25 -f 493.88 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 25 -f 440 -D 100 -n -l 50 -f 466.16 -D 400 -n -l 25 -f 311.13 -D 200 -n -l 350 -f 369.99 -D 
100 -n -l 250 -f 311.13 -D 100 -n -l 25 -f 392 -D 100 -n -l 350 -f 466.16 -D 100 -n -l 250 -f 392 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 700 -f 587.32 -D 100 -n -l 350 -f 784 -D 100 -n -l 250 -f 392 -D 100 -n -l 25 -f 392 -D 100 -n -l 350 -f 784 -D 100 -n -l 250 -f 739.98 -D 100 -n -l 25 -f 698.46 -D 100 -n -l 25 -f 659.26 -D 100 -n -l 25 -f 622.26 -D 100 -n -l 50 -f 659.26 -D 400 -n -l 25 -f 415.3 -D 200 -n -l 350 -f 554.36 -D 100 -n -l 250 -f 523.25 -D 100 -n -l 25 -f 493.88 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 25 -f 440 -D 100 -n -l 50 -f 466.16 -D 400 -n -l 25 -f 311.13 -D 200 -n -l 350 -f 392 -D 100 -n -l 250 -f 311.13 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 300 -f 392.00 -D 150 -n -l 250 -f 311.13 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 700 -f 392

MongoDB on Debian Kategoria: Raspberry PI | Autor: Bartłomiej Gałęzia

vi /etc/apt/source.list
deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 7F0CEB10

apt-get update

apt-get install mongodb-10gen
vi /etc/mongodb.conf

http://code.google.com/p/mongo-vision/

http://localhost:8080/mongovision/

apt-get install python-pip

pip install edda

edda /var/log/mongodb/mongodb.log

http://www.php.net/manual/en/mongo.installation.php

MongoDB - dokumentacja Kategoria: MySQL i inne bazy | Tagi: mongoDB | Autor: Bartłomiej Gałęzia

Książka: NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence, Pramodkumar J. Sadalage
Na stronie http://ukbooks.pl/pl/book/NoSQL-Distilled-9780321826626 jest podany koszt 19.43 EUR + darmowa przesyłka

NoSQL Databases, Christof Strauch – bardzo ciekawa pozycja
Scalable SQL and NoSQL Data Stores, Rick Cattell
NoSQL Evaluation A Use Case Oriented Survey, Robin Hecht, Stefan Jablonski
Comparative Study of the New Generation, Agile, Scalable, High Performance NOSQL Databases, Clarence J M Tauro, Aravindh S, Shreeharsha A.B
Analysis and Classification of NoSQL Databases and Evaluation of their Ability to Replace an Object-relational Persistence Layer, Kai Orend
A comparison between several NoSQL databases with comments and notes, Tudorica, Bogdan George – niestety, ja nie mam do tej pozycji dostępu

http://en.wikipedia.org/wiki/NoSQL#Key.E2.80.93value_store

http://cattell.net/datastores/

http://nosql-database.org/

http://highlyscalable.wordpress.com/2012/03/01/nosql-data-modeling-techniques/

http://metadata-standards.org/Document-library/Documents-by-number/WG2-N1501-N1550/WG2_N1537_SQL_Standard_and_NoSQL_Databases%202011-05.pdf

http://nosql.findthebest.com/

http://highscalability.com/anti-rdbms-list-distributed-key-value-stores

http://www.versant.com/docs/default-document-library/nosql—beyond-the-key-value-store-for-the-enterprise_wp_low_res.pdf?sfvrsn=2

http://www.neo4j.org/learn/nosql

Motion - instalacja i konifiguracja Kategoria: Raspberry PI | Tagi: motion | Autor: Bartłomiej Gałęzia

vi /etc/apt/sources.list
# first source
apt-get update

apt-get install motion mc samba apache2 mysql-server phpmyadmin

cp /etc/motion/motion.conf /etc/motion/motion.conf_backup

mv /etc/samba/smb.conf /etc/samba/smb.conf_old

Zobacz całość

MongoDB on windows Kategoria: MySQL i inne bazy | Tagi: windows, mongoDB | Autor: Bartłomiej Gałęzia

Download:

http://www.mongodb.org/downloads

http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2.2.3.zip

unzip to c:\mongo

C:\mongo\bin\mongod.exe –dbpath C:\mongo\data            //server

C:\mongo\bin\mongo.exe //klient

db.test.save( { a: 1 } )

db.test.find()

md C:\mongo\log

md C:\mongo\data\db

echo logpath=C:\mongo\log\mongo.log > C:\mongo\mongod.cfg

echo dbpath=C:\mongo\data >> C:\mongo\mongod.cfg

C:\mongo\bin\mongod.exe –config C:\mongo\mongod.cfg –install

net start MongoDB

GPIO na Raspberry PI Kategoria: Raspberry PI | Autor: Bartłomiej Gałęzia

https://pypi.python.org/pypi/RPi.GPIO

wget https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.1a.tar.gz
cd
python setup.py

http://code.google.com/p/webiopi/wiki/PASSWORD

webiopi-passwd
/etc/init.d/webiopi start

http://pi:8000/

Webiopi na Raspberry PI Kategoria: Raspberry PI | Autor: Bartłomiej Gałęzia

wget http://webiopi.googlecode.com/files/WebIOPi-0.5.3.tar.gz
tar xvzf WebIOPi-0.5.3.tar.gz
cd WebIOPi-0.5.3
sudo ./setup.sh

python -m webiopi 83
localhost:8000/webiopi

MongoDB instalacja Kategoria: Linux | Tagi: mongoDB | Autor: Bartłomiej Gałęzia

http://www.mongodb.org/downloads

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/

If you are running a 32-bit system, which isn’t recommended for production deployments, place the following configuration in /etc/yum.repos.d/10gen.repo file:

[10gen]name=10gen Repositorybaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686gpgcheck=0enabled=1

yum install mongo-10gen mongo-10gen-server