# HG changeset patch # User Oleksandr Gavenko # Date 1411146264 -10800 # Node ID c2e5c5c9aebe8f390b63857bc341dae57fedf851 # Parent 41ef0417d899882de9a4261846edc41d8ab21a18# Parent 797a3ba1f9b559aad887e3a869b769bd26535e24 merged diff -r 41ef0417d899 -r c2e5c5c9aebe android.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/android.rst Fri Sep 19 20:04:24 2014 +0300 @@ -0,0 +1,119 @@ + +========== + Android. +========== +.. contents:: + +Official docs. +============== + + http://developer.android.com/sdk/index.html + Get the Android SDK + http://developer.android.com/guide/index.html + Introduction to Android + https://android.googlesource.com/platform/system/core/+/master/init/readme.txt + init.rd file syntax. + +Show screencast from Android. +============================= + + http://droid-at-screen.ribomation.com/ + Easily show the screen of an Android device on a computer/laptop + (PC, Mac, Linux, ...) and then project the desktop using a + LCD-projector. + +Controlling Android from PC. +============================ + + * http://code.google.com/p/androidscreencast/ + * http://code.google.com/p/android-screen-monitor/ + * http://androidwebkey.com/ + +Mods. +===== + + http://xda-university.com/ + How to mod. + http://www.cyanogenmod.org/about + CyanogenMod + https://www.clockworkmod.com/ + ClockworkMod + +Recovery. +========= + +To enter phone to recovery mode press ``VolumeDown``+``Power`` button or:: + + adb reboot recovery + +See: + + http://teamw.in/project/twrp2 + Custom recovery built. + +ADB tips. +========= + +List available devices:: + + $ adb devices + +Install application from ``.apk`` file:: + + $ adb install -r /path/to/application.apk + +List installed package names (with path to ``.apk`` files!):: + + $ adb shell 'pm list packages -f' + +Uninstall application by it name:: + + $ adb uninstall PACKAGE_NAME + +List currently run activities:: + + $ adb shell 'dumpsys activity' + +Find activities from package:: + + $ adb shell 'pm list packages -f' + $ adb pull APK_FROM_LIST + $ aapt dump badging APK_FILE + +Start an activity:: + + $ adb shell am start PACKAGE_NAME/ACTIVITY_IN_PACKAGE + $ adb shell am start PACKAGE_NAME/FULLY_QUALIFIED_ACTIVITY + +List of running processes:: + + $ adb shell ps + +or (supported arguments +``user,group,comm,args,pid,ppid,pgid,etime,nice,rgroup,ruser,time,tty,vsz,stat,rss``):: + + $ adb shell + % ps -o pid,user,group,rss,vsz,args + +To kill process:: + + $ adb shell ps | grep $REGEX + $ adb shell kill $PID + +Take a screenshort:: + + $ adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png + +Power button:: + + $ adb shell input keyevent 26 + +Unlock screen:: + + $ adb shell input keyevent 82 + +Show system log:: + + $ adb logcat + $ adb logcat "*:W" + diff -r 41ef0417d899 -r c2e5c5c9aebe ascii-art.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ascii-art.rst Fri Sep 19 20:04:24 2014 +0300 @@ -0,0 +1,39 @@ +.. -*- coding: utf-8; -*- +.. include:: HEADER.rst + +============ + ASCII art. +============ +.. contents:: + +Make ASCII logo. +================ + +``figlet``:: + + $ sudo apt-get install figlet + + $ figlet "Hello world" + $ figlet -f slant "Hello world" + +With spaces between letters:: + + $ figlet -k -f shadow "Hello world" + +``sysvbanner``:: + + $ sudo apt-get install sysvbanner + + $ banner Hello + +``cowsay``:: + + $ sudo apt-get install cowsay + + $ cowsay Hello + $ cowsay -f duck Hello + +To get list of available cow picture file:: + + $ cowsay -l + diff -r 41ef0417d899 -r c2e5c5c9aebe audio.rst --- a/audio.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/audio.rst Fri Sep 19 20:04:24 2014 +0300 @@ -31,6 +31,8 @@ $ arecord -l $ arecord -L + $ pactl list + Suitable convertors? ==================== :: diff -r 41ef0417d899 -r c2e5c5c9aebe browsers.rst --- a/browsers.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/browsers.rst Fri Sep 19 20:04:24 2014 +0300 @@ -33,4 +33,5 @@ http://arewefastyet.com/ Tracking performance of popular JavaScript engines. - + http://jsperf.com/ + JavaScript libraries performance. diff -r 41ef0417d899 -r c2e5c5c9aebe css.rst --- a/css.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/css.rst Fri Sep 19 20:04:24 2014 +0300 @@ -102,3 +102,30 @@ * http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28CSS%29 * http://www.css3.info/modules/selector-compat/ +CSS compilers. +============== + + http://lesscss.org/ + LESS extends CSS with dynamic behavior such as variables, + mixins, operations and functions. + http://sass-lang.com/ + Sass is the most mature, stable, and powerful professional grade + CSS extension language in the world. + +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://960.gs/ + Grid framework. + http://purecss.io/ + A set of small, responsive CSS modules that you can use in every + web project. + http://foundation.zurb.com/ + The most advanced responsive front-end framework in the world. + + diff -r 41ef0417d899 -r c2e5c5c9aebe debian-apt.rst --- a/debian-apt.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/debian-apt.rst Fri Sep 19 20:04:24 2014 +0300 @@ -122,3 +122,9 @@ $ sudo debsums --changed +Search for packages. +==================== +:: + + $ aptitude search '?tag(works-with::logfile)' + diff -r 41ef0417d899 -r c2e5c5c9aebe devel-proj-files.rst --- a/devel-proj-files.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/devel-proj-files.rst Fri Sep 19 20:04:24 2014 +0300 @@ -10,6 +10,7 @@ =================== * http://autotoolset.sourceforge.net/tutorial.html + * https://openide.netbeans.org/tutorial/questions.html Essential project files. ======================== diff -r 41ef0417d899 -r c2e5c5c9aebe display.rst --- a/display.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/display.rst Fri Sep 19 20:04:24 2014 +0300 @@ -17,6 +17,21 @@ 26" 16:10 WUXGA 1920x1200 30" 16:10 WQXGA 2560x1600 +Selecting display. +================== + + http://www.100fps.com/how_many_frames_can_humans_see.htm + How many frames per second can the human eye see? + http://www.tftcentral.co.uk/articles/panel_parts.htm + Panel Part Databases + http://www.tftcentral.co.uk/panelsearch.htm + Panel Search + +ICC Profiles. +============= + + * https://wiki.archlinux.org/index.php/ICC_Profiles + PC display modes. ================= diff -r 41ef0417d899 -r c2e5c5c9aebe firefox-devel.rst --- a/firefox-devel.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/firefox-devel.rst Fri Sep 19 20:04:24 2014 +0300 @@ -137,10 +137,6 @@ Same but with different coloring do 'console.debug', 'console.info', 'console.warn', and 'console.error' functions. -'console.log' can format strings in the great tradition of printf. - -'console.trace()' - to print trace. - http://getfirebug.com/logging logging http://getfirebug.com/wiki/index.php/Console_API diff -r 41ef0417d899 -r c2e5c5c9aebe firefox.rst --- a/firefox.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/firefox.rst Fri Sep 19 20:04:24 2014 +0300 @@ -70,6 +70,15 @@ Path=Profiles/xxxxxxx.default Default=1 +Change user agent. +================== + +:: + + general.useragent.override + +For Debian Icewasel just remove ``Icewasel`` from user agent string. + How to prevent links from opening a new window? =============================================== @@ -482,9 +491,11 @@ Allows you to customize the way a webpage displays using small bits of JavaScript. http://www.greasespot.net - home page + Home page. https://addons.mozilla.org/firefox/748 - download page + Download page. + https://greasyfork.org/scripts/1317-download-youtube-videos-as-mp4 + Download YouTube Videos as MP4. How to disable GZIP compression in Firefox? =========================================== @@ -505,3 +516,26 @@ At URI type some thing like "javascript: 4+5" +Disable safe browsing. +====================== +:: + + user_pref("browser.safebrowsing.enabled", false); + user_pref("browser.safebrowsing.malware.enabled", false); + user_pref("services.sync.prefs.sync.browser.safebrowsing.enabled", false); + user_pref("services.sync.prefs.sync.browser.safebrowsing.malware.enabled;false", false); + +Disable geo location. +===================== +:: + + user_pref("geo.enabled", false); + +You can fake your location by JSON like:: + + {"location":{"latitude":48.861426,2.338929,"longitude":2.338929, "accuracy":20.0}} + +in file pointed by:: + + user_pref("geo.wifi.uri", "file:///home/user/fake-geo.json"); + diff -r 41ef0417d899 -r c2e5c5c9aebe fvwm.rst --- a/fvwm.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/fvwm.rst Fri Sep 19 20:04:24 2014 +0300 @@ -47,3 +47,10 @@ See http://fvwm-themes.sourceforge.net/ + +FVWM configs. +============= + + http://home.gna.org/fvwm-crystal/features.html + Usable for ideas how to do things. + diff -r 41ef0417d899 -r c2e5c5c9aebe html.rst --- a/html.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/html.rst Fri Sep 19 20:04:24 2014 +0300 @@ -20,6 +20,10 @@ +or in HTML 5:: + + + See: http://www.w3.org/TR/REC-html40/charset.html#h-5.2.2 diff -r 41ef0417d899 -r c2e5c5c9aebe image.rst --- a/image.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/image.rst Fri Sep 19 20:04:24 2014 +0300 @@ -6,19 +6,22 @@ ======== .. contents:: +Viewers. +======== + GraphicsMagick. -=============== +--------------- GraphicsMagick command-line utilities to create, edit, or convert images. ImageMagick. -============ +------------ ImageMagick - is a free software suite for the creation, modification and display of bitmap images. gthumb. -======= +------- gThumb is an advanced image viewer and browser. It has many useful features, such as filesystem browsing, slide show, image catalogs, web album creation, @@ -30,3 +33,16 @@ http://openclipart.org/ home page + +Join icons to sprite. +===================== + +Make one liner:: + + $ convert *.png -append sprites.png # vertically + $ convert *.png +append sprites.png # horizontally + +Make box:: + + $ montage -background transparent --geometry 16x16 *.png sprites.png + diff -r 41ef0417d899 -r c2e5c5c9aebe java.rst --- a/java.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/java.rst Fri Sep 19 20:04:24 2014 +0300 @@ -212,3 +212,8 @@ How to Reference and Use JSTL in your Web Application http://en.wikipedia.org/wiki/Java_EE_version_history Java EE version history + +Java interactive shell. +======================= + +Just use Groovy. ``bsh`` is older alternative without code completion. diff -r 41ef0417d899 -r c2e5c5c9aebe js.rst --- a/js.rst Fri Sep 19 19:55:16 2014 +0300 +++ b/js.rst Fri Sep 19 20:04:24 2014 +0300 @@ -9,11 +9,12 @@ HTML. ===== -