# HG changeset patch # User Oleksandr Gavenko # Date 1449601074 -7200 # Node ID 8d1f64bb9f7f9ccddd2823cd368245a6358f9389 # Parent 52dc917e83bb88c5af71f32d507bf46ee82c474d# Parent 274aa5f80036ced9116797e50c048f30651e67d1 merged diff -r 274aa5f80036 -r 8d1f64bb9f7f css.rst --- a/css.rst Sat Nov 28 14:26:48 2015 +0200 +++ b/css.rst Tue Dec 08 20:57:54 2015 +0200 @@ -115,17 +115,78 @@ CSS frameworks. =============== - http://getbootstrap.com/ - Sleek, intuitive, and powerful mobile first front-end framework - for faster and easier web development. - http://bootswatch.com/ - Free themes for Bootstrap. + http://usablica.github.io/front-end-frameworks/ + Front-end Frameworks v2.5 (comparing). + http://usablica.github.io/front-end-frameworks/compare.html + A Collection of best front End frameworks. http://960.gs/ - Grid framework. + Grid framework. + +Bootstrap. +---------- + +From `Twitter `_. + +License: MIT. + + http://getbootstrap.com/ + Home page. + https://github.com/twbs/bootstrap/ + GitHub page. + http://bootswatch.com/ + Free themes for Bootstrap. + http://lipis.github.io/bootstrap-social/ + Social icons. + +Semantic UI. +------------ + +License: MIT. + + http://semantic-ui.com/ + Home page. + https://github.com/Semantic-Org/Semantic-UI + GitHub page. + +Pure. +----- + +From `Yahoo `_. + +License: `Yahoo BSD License `_. + http://purecss.io/ - A set of small, responsive CSS modules that you can use in every - web project. + Home page. + https://github.com/yahoo/pure/ + GitHub page. + +Foundation. +----------- + +From Zurb. + +License: MIT + http://foundation.zurb.com/ - The most advanced responsive front-end framework in the world. + Home page. + https://github.com/zurb/foundation-sites + GitHub page. + +UIkit. +------ + +From `yootheme `_. + +License: MIT. + http://getuikit.com/ + Home page. + https://github.com/uikit/uikit + GitHub page. +Font-Awesome. +------------- + + https://github.com/FortAwesome/Font-Awesome + GitHub page. + diff -r 274aa5f80036 -r 8d1f64bb9f7f hardware.rst --- a/hardware.rst Sat Nov 28 14:26:48 2015 +0200 +++ b/hardware.rst Tue Dec 08 20:57:54 2015 +0200 @@ -214,11 +214,19 @@ =========== ``lspci | grep Ethernet`` - Ethernet controllers. + Ethernet controllers. + ``lshw -class network`` + Hardware capabilities of network devices. + ``sudo ethtool eth0`` + Hardware capabilities of network device. + ``ethtool -i eth0`` + Driver info. + ``ip link show`` + List of netword devices and MAC addresses. ``ip addr show`` - List of netword devices, assigned IP addresses and MAC addresses. + List of netword devices, assigned IP addresses and MAC addresses. ``ifconfig`` - Networking interfaces, IP addresses, and more. + Networking interfaces, IP addresses, and more. Hard disks. =========== diff -r 274aa5f80036 -r 8d1f64bb9f7f kali.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kali.rst Tue Dec 08 20:57:54 2015 +0200 @@ -0,0 +1,14 @@ +.. -*- coding: utf-8; -*- +.. include:: HEADER.rst + +======= + Kali. +======= +.. contents:: + +About Kali distribution. +======================== + + http://tools.kali.org/tools-listing + List of provided tools. + diff -r 274aa5f80036 -r 8d1f64bb9f7f pgp.rst --- a/pgp.rst Sat Nov 28 14:26:48 2015 +0200 +++ b/pgp.rst Tue Dec 08 20:57:54 2015 +0200 @@ -1,45 +1,97 @@ --*- mode: outline; coding: utf-8; -*- +.. -*- coding: utf-8; -*- +.. include:: HEADER.rst -* What preffered client? +========== + PGP/GPG. +========== +.. contents:: + +What preffered client? +====================== GNU gpg. -* How import keys from key-server? +How import keys from key-server? +================================ +:: $ gpg --keyserver pgp.mit.edu --recv-keys $KEYID -* How mark key as trusted? +How mark key as trusted? +======================== +:: $ gpg --edit-key $KEYID trust -* How export key? +How export key? +=============== + +Export public key in binary (OpenGPG) form:: + + $ gpg --export $KEYID >$PUBKEY.asc + $ gpg --output $PUBKEY.asc --export $KEYID + +Export public key in text form:: - $ gpg -a --export $KEYID >$FILE.asc - $ gpg --output $PRIVKEY.gpg --armor --export-secret-key $KEYID + $ gpg -a --export $KEYID >$PUBKEY.asc + $ gpg --armor --export $KEYID >$PUBKEY.asc + +Export private key (it still encrypted by pass-phrase):: -* How create own PGP key? + $ gpg --output $PRIVKEY.gpg --export-secret-key $KEYID + +How create own PGP key? +======================= +:: $ gpg --gen-key # answer the question -... + ... $ gpg -o $keyfile --export-secret-keys $NAME -* How import keys from file? +How import keys from file? +========================== +:: $ gpg --import $keyfile -* How submit public key to key server? +How to get public key from private without importing to local storage? +====================================================================== +:: + + tmp=$(mktemp -d) + gpg --homedir $tmp --import $SECKEY + gpg --homedir $tmp --export $ID > $PUBKEY + rm -rf $tmp + +.. + + http://stackoverflow.com/questions/7661500/how-to-get-public-key-from-private-in-gpg-without-using-local-storage-under + +How submit public key to key server? +==================================== +:: $ gpg --keyserver pgp.mit.edu --send-key $KEYID -* What keys in local db? +What keys in local db? +====================== +:: - $ gpg -list-keys - $ gpg -list-keys $KEYID - $ gpg -list-keys $EMAIL + $ gpg --list-keys + $ gpg --list-keys $KEYID + $ gpg --list-keys $EMAIL $ gpg --list-secret-keys -* How delete key? +Making revocation certificate. +============================== +:: + + $ gpg --armor --output $KEYID.rev --gen-revoke $KEYID + +How delete key? +=============== +:: $ gpg --delete-key $KEYID $ gpg --delete-key $USER @@ -47,15 +99,29 @@ $ gpg --delete-secret-key $KEYID -* How sign file? +Dump content of key or signture. +================================ +:: + + $ gpg --list-packets $FILE.sig + $ gpg --list-packets $FILE.key -To sign with first key + $ sudo apt-get install pgpdump + $ pgpdump $FILE.sig + $ pgpdump $FILE.key + +How sign file? +============== + +To sign with first key:: $ gpg -o $file.sig --sign $file $ gpg --default-key $NAME -o $file.sig --sign $file $ gpg -u ${USER_NAME} -o $file.sig --sign $file -* How verify signature? +How verify signature? +===================== +:: $ gpg --verify $file.sig diff -r 274aa5f80036 -r 8d1f64bb9f7f torrent.rst --- a/torrent.rst Sat Nov 28 14:26:48 2015 +0200 +++ b/torrent.rst Tue Dec 08 20:57:54 2015 +0200 @@ -22,3 +22,72 @@ http://libtorrent.rakshasa.no/ http://en.wikipedia.org/wiki/RTorrent + +Create torrent in command line +============================== +:: + + $ mktorrent -a udp://tracker.publicbt.com:80/announce,udp://tracker.istole.it:80/announce book.chm + +View torrent file content +========================= +:: + + $ btshowmetainfo debian-8.2.0-amd64-CD-1.iso.torrent + btshowmetainfo 20030621 - decode BitTorrent metainfo files + + metainfo file.: debian-8.2.0-amd64-CD-1.iso.torrent + info hash.....: bc84cb84010074094dba7bb55eebf68c6b3934a2 + file name.....: debian-8.2.0-amd64-CD-1.iso + file size.....: 657457152 (1254 * 524288 + 0) + announce url..: http://bttracker.debian.org:6969/announce + http seeds....: http://cdimage.debian.org/cdimage/release/8.2.0/iso-cd/debian-8.2.0-amd64-CD-1.iso|http://cdimage.debian.org/cdimage/archive/8.2.0/iso-cd/debian-8.2.0-amd64-CD-1.iso + comment.......: "Debian CD from cdimage.debian.org" + + $ sudo apt-get install aria2 + $ aria2c -S debian-8.2.0-amd64-CD-1.iso.torrent + + Comment: "Debian CD from cdimage.debian.org" + Creation Date: Sun, 06 Sep 2015 12:33:43 GMT + Mode: single + Announce: + http://bttracker.debian.org:6969/announce + Info Hash: bc84cb84010074094dba7bb55eebf68c6b3934a2 + Piece Length: 512KiB + The Number of Pieces: 1254 + Total Length: 627MiB (657,457,152) + Name: debian-8.2.0-amd64-CD-1.iso + Magnet URI: magnet:?xt=urn:btih:BC84CB84010074094DBA7BB55EEBF68C6B3934A2&dn=debian-8.2.0-amd64-CD-1.iso&tr=http%3A%2F%2Fbttracker.debian.org%3A6969%2Fannounce + Files: + idx|path/length + ===+=========================================================================== + 1|./debian-8.2.0-amd64-CD-1.iso + |627MiB (657,457,152) + ---+--------------------------------------------------------------------------- + + $ sudo apt-get install transmission-cli + $ transmission-show debian-8.2.0-amd64-CD-1.iso.torrent + Name: debian-8.2.0-amd64-CD-1.iso + File: debian-8.2.0-amd64-CD-1.iso.torrent + + GENERAL + + Name: debian-8.2.0-amd64-CD-1.iso + Hash: bc84cb84010074094dba7bb55eebf68c6b3934a2 + Created by: + Created on: Sun Sep 6 15:33:43 2015 + Comment: "Debian CD from cdimage.debian.org" + Piece Count: 1254 + Piece Size: 512.0 KiB + Total Size: 657.5 MB + Privacy: Public torrent + + TRACKERS + + Tier #1 + http://bttracker.debian.org:6969/announce + + FILES + + debian-8.2.0-amd64-CD-1.iso (657.5 MB) +