dza + reference   169

Scripting - Indirectly Referencing Variables - Vim Tips Wiki - Wikia
# composing variable names with variables use { } around variables

# for example to loop over arguments:
if a:0
echo "WHILE:"
let l:iter = 0
while iter <= a:0
echom "ITER: ".a:{iter} "reference variable without braces would not work
let iter += 1
endwhile
endif
vim  VimScript  VimL  variable  variables  reference 
july 2016 by dza
tmux cheatsheet
CTRL+B (prefix) to use shortcuts

Sessions

:new<CR> new session
s list sessions
$ name session

Windows (tabs)

c create window
w list windows
n next window
p previous window
f find window
, name window
& kill window

Panes (splits)

% vertical split
" horizontal split

o swap panes
q show pane numbers
x kill pane
+ break pane into window (e.g. to select text by mouse to copy)
- restore pane from window
⍽ space - toggle between layouts
<prefix> q (Show pane numbers, when the numbers show up type the key to goto that pane)
<prefix> { (Move the current pane left)
<prefix> } (Move the current pane right)
<prefix> z toggle pane zoom
tmux  cheatsheet  reference  !tmux 
october 2014 by dza
pentadactyl cheatsheet
Pentadactyl notes

"o for open in current"
"t open new tab"
"y" copy url
"o" open new url
"O" open with current URL inserted
"b" open bufferlist (tabs/urls)
"a" bookmark

Shift Insert to Paste in fields. (Instead of CTRL+V+V)

Marks:
Ma - mark page 'a'
goa - goto 'a' in current tab
gna - goto 'a' in new tab

set guioptions+=m - enable menu bar
set guioptions+=T - enable navigation toolbar
set guioptions+=B - enable bookmarks toolbar

CTRL+SHIFT+B Show all bookmarks

CTRL+V (Pass-trough normal command in Firefox - such as select all (CTRL+A))

:com

:private winopen

Navigating the Web:
=========================================
gh Opens the homepage in the current tab.
gH Opens the homepage in a new tab.

o Opens a location in the current tab.
O Opens a location in the current tab and uses the current location as the starting point.

t Opens a location in a new tab.
T Opens a location in a new tab and uses the current location ans the starting point.

w Opens a location in a new window.
W Opens a location in a new window and uses the current location ans the starting point.

g0 goto first tab
g$ goto last tab
gt goto next tab

[count]H Go back in the browser history.
[count]L Go forward in the history.

r Reload the current location.
R Reloads the current location without using the cache.

control+c Stop loading the current location.

d Closes the current tab.
u Restores the last closed tab.

control+n Switch to next tab.
control+p Switch to previous tab.

F1-Key Opens the pentadactyl documentation in the current tab.

Navigating the Web:
=========================================
gh Opens the homepage in the current tab.
gH Opens the homepage in a new tab.

o Opens a location in the current tab.
O Opens a location in the current tab and uses the current location as the starting point.

t Opens a location in a new tab.
T Opens a location in a new tab and uses the current location ans the starting point.

w Opens a location in a new window.
W Opens a location in a new window and uses the current location ans the starting point.

[count]H Go back in the browser history.
[count]L Go forward in the history.

r Reload the current location.
R Reloads the current location without using the cache.

control+c Stop loading the current location.

d Closes the current tab.
u Restores the last closed tab.

control+n Switch to next tab.
control+p Switch to previous tab.

F1-Key Opens the pentadactyl documentation in the current tab.

Navigating a Page:
=========================================
[count]j Scrolls document down one unit.
[count]k Scrolls document up one unit.
[count]h Scrolls document left one unit.
[count]l Scrolls document right one unit.

space Scrolls down a page.
shift+space Scrolls up a page.

[count]control+d Scrolls down the amount set in the 'scroll' option, half a window is default.
[count]control+u Scrolls up the amount set in the 'scroll' option, half a window is default.

gg Goes to the top of the document.
G Goes to the bottom of the document.

[count]control+f Scrolls down a full page.
[count]control+b Scrolls up a full page.

Navigating Links and Elements:
=========================================
f Starts hint mode, highlighting all the clickable elements in the current view and
gives them, on default settings, numeric labels.
Elements and links can now be clicked by either typing the respective number
or part of their textual name/description, narrowing the selection down, or, in
case there is only one element that matches it, clicking it.
After the element has been clicked, hint mode ends.

Hint mode special keys are:
Enter/Return/<CR> Selects the first highlighted or tab selected hint.
Tab Moves focus to the next hintable item.
<LeaderKey> Default mapping is \, temporarily treats numeric input
as text input instead of hint selection input.
Escape Exits hint mode without selecting anything.

F Same as f, but items are shift left clicked instead of simply left clicked.

;{Mode} Starts extended hints mode, working just like f but with specified effects see below.

;; Focuses an element without clicking it.
;s Saves the destination of the link.
;f Focuses a frame.
;o Opens the location in the current tab.
;t Opens the location in a new tab.
;b Opens the location in a background tab.
;w Opens the location in a new window.
;O Generates an open prompt with the location as the URL, similar to the O key.
;T Generates a tabopen prompt with the location as the URL, similar to the T key.
;W Generates a windowopen prompt with the location as the URL, similar to the W key.
;y Copies the location.
;Y Copies the locations text description.

g;{Mode} Starts extended hints mode and stays there until Escape is pressed.
After a hint has been selected any previously narrowed down selection will be
reset to allow the selection of different items.

gi Focus last used input field. If there was no last used input field it will
Use the first available one. Good for search engines.

Using QuickMarks:
=========================================
M{a-zA-Z0-9} Binds the current URL to the key specified. Example: Ma binds the current URL to a.
go{a-zA-Z0-9} Jumps to the QuickMark bound to the key specified.
gn{a-zA-Z0-9} Jumps to the QuickMark bound to the key specified in a new tab.
pentadactyl  !pentadactyl  vim  firefox  reference  cheatsheet  from notes
september 2014 by dza
spectr wm keyboard reference
Layouts are handled dynamically and can be changed on the fly. There are three standard layouts (stacking algorithms): vertical, horizontal and maximized (indicated in the status bar as [|], [-] and [ ])

There is the concept of a master area (a working area). Any window can be switched to become the master and will then be shown in the master area. The master area is the left (top) portion of the screen in vertical (horizontal) mode. The size of the master area can be adjusted with the keys. By default the master area holds one window, but this can be increased.

The area excluding the master area is called the stacking area. New windows are added to the stacking area. By default the stacking area has one column (row) in vertical (horizontal) mode, but his can be increased.

Windows may be moved to a floating layer -- i.e. removed from the tiling management. This is useful for programs which are not suitable for tiling.

Some of the most useful key bindings:

===================================================================

Meta+Shift+Return: open terminal
Meta+p: dmenu (then type the start of the program name and return)
Meta+1/2/3/4/5/6/7/8/9/0: select workspaces 1-10
Meta+Shift+1/2/3/4/5/6/7/8/9/0: move window to workspace 1-10
Meta+Right/Left: select next/previous workspace
Meta+Shift+Right/Left: select next/previous screen
Meta+Spacebar: cycle through layouts (vertical, horizontal, maximized)
Meta+j/k: cycle through windows forwards/backwards
Meta+Tab/Meta+Shft+Tab: same as Meta+j/k
Meta+Return: move current window to master area
Meta+h/l: increase/decrease size of master area

Advanced stacking

Meta+,/. : increase/decrease the number of windows in master area (default is 1)
Meta+Shift+,/. : increase/decrease number of columns(rows) in stacking area in vertical(horizontal) mode (default is 1)
Meta+Shift+j/k: swap window position with next/previous window
Meta+t: float<->tile toggle

Mouse bindings

Mouseover: focus window
Meta+LeftClick+Drag: move window (and float it if tiled)
Meta+RightClick+Drag: resize floating window
Meta+Shift+RightClick+Drag: resize floating window keeping it centred

Other useful bindings

Meta+x: close window
Meta+Shift+x: kill window
Meta+b: hide/show status bar
Meta+q: restart spectrwm (reset desktops and reread spectrwm config without stopping running programs)
Meta+Shift+q: exit spectrwm

=== FROM MANPAGE ===

BINDINGS

spectrwm provides many functions (or actions) accessed via key or mouse
bindings.

The current mouse bindings are described below:

M1 Focus window
M-M1 Move window
M-M3 Resize window
M-S-M3 Resize window while maintaining it centered

The default key bindings are described below:

M-S-<Return> term
M-p menu
M-S-q quit
M-q restart
M-<Space> cycle_layout
M-S-<\> flip_layout
M-S-<Space> stack_reset
M-h master_shrink
M-l master_grow
M-, master_add
M-. master_del
M-S-, stack_inc
M-S-. stack_dec
M-<Return> swap_main
M-j, M-<TAB> focus_next
M-k, M-S-<TAB> focus_prev
M-m focus_main
M-S-j swap_next
M-S-k swap_prev
M-b bar_toggle
M-S-b bar_toggle_ws
M-x wind_del
M-S-x wind_kill
M-<1-9,0,F1-F12> ws_<1-22>
M-S-<1-9,0,F1-F12> mvws_<1-22>
M-<Keypad 1-9> rg_<1-9>
M-S-<Keypad 1-9> mvrg_<1-9>
M-<Right> ws_next
M-<Left> ws_prev
M-<Up> ws_next_all
M-<Down> ws_prev_all
M-a ws_next_move
M-S-<Left> ws_prev_move
M-S-<Up> ws_prior
M-S-<Right> rg_next
M-S-<Left> rg_prev
M-s screenshot_all
M-S-s screenshot_wind
M-S-v version
M-t float_toggle
M-S-<Delete> lock
M-S-i initscr
M-w iconify
M-S-w uniconify
M-S-r always_raise
M-v button2
M-- width_shrink
M-= width_grow
M-S-- height_shrink
M-S-= height_grow
M-[ move_left
M-] move_right
M-S-[ move_up
M-S-] move_down
M-S-/ name_workspace
M-/ search_workspace
M-f search_win

The action names and descriptions are listed below:

term Spawn a new terminal (see PROGRAMS above).
menu Menu (see PROGRAMS above).
quit Quit spectrwm.
restart Restart spectrwm.
cycle_layout Cycle layout.
flip_layout Swap the master and stacking areas.
stack_reset Reset layout.
master_shrink Shrink master area.
master_grow Grow master area.
master_add Add windows to master area.
master_del Remove windows from master area.
stack_inc Add columns/rows to stacking area.
stack_dec Remove columns/rows from stacking area.
swap_main Move current window to master area.
focus_next Focus next window in workspace.
focus_prev Focus previous window in workspace.
focus_main Focus on main window in workspace.
swap_next Swap with next window in workspace.
swap_prev Swap with previous window in workspace.
bar_toggle Toggle overall visibility of status bars.
bar_toggle_ws Toggle status bar on current workspace.
wind_del Delete current window in workspace.
wind_kill Destroy current window in workspace.
ws_n Switch to workspace n, where n is 1 through
workspace_limit.
mvws_n Move current window to workspace n, where n is 1
through workspace_limit.
rg_n Focus on region n, where n is 1 through 9.
mvrg_n Move current window to region n, where n is 1
through 9.
ws_next Switch to next workspace with a window in it.
ws_prev Switch to previous workspace with a window in it.
ws_next_all Switch to next workspace.
ws_prev_all Switch to previous workspace.
ws_next_move Switch to next workspace with the current window.
ws_prev_move Switch to previous workspace with the current
window.
ws_prior Switch to last visited workspace.
rg_next Switch to next region.
rg_prev Switch to previous region.
screenshot_all Take screenshot of entire screen (if enabled)
(see PROGRAMS above).
screenshot_wind Take screenshot of selected window (if enabled)
(see PROGRAMS above).
version Toggle version in status bar.
float_toggle Toggle focused window between tiled and floating.
lock Lock screen (see PROGRAMS above).
initscr Reinitialize physical screens (see PROGRAMS
above).
iconify Minimize (unmap) currently focused window.
uniconify Maximize (map) window returned by dmenu
selection.
always_raise When set tiled windows are allowed to obscure
floating windows.
button2 Fake a middle mouse button click (mouse button
2).
width_shrink Shrink the width of a floating window.
width_grow Grow the width of a floating window.
height_shrink Shrink the height of a floating window.
height_grow Grow the height of a floating window.
move_left Move a floating window a step to the left.
move_right Move a floating window a step to the right.
move_up Move a floating window a step upwards.
move_down Move a floating window a step downwards.
name_workspace Name the current workspace.
search_workspace Search for a workspace.
search_win Search the windows in the current workspace.
spectrwm  keys  keybindings  keyboard  hotkey  shortcut  !spectrwm  cheatsheet  reference  from notes
september 2014 by dza
Parallels Command Line Reference Guide
Running headless Parallels Virtual Machines, and managing from the cmdline.
mac  macosx  macintosh  osx  apple  parallels  commandline  cmdline  reference  desktop  prlctl  headless  prlsrvctl 
november 2013 by dza
OS X-tastaturgenveje
Vigtigt cheatsheet til default keyboard layout.
howto  tutorial  guide  mac  macosx  macintosh  osx  newbie  shortcut  shortcuts  keyboard  hotkey  hotkeys  reference  cheatsheet  apple 
november 2013 by dza
Can I use... Support tables for HTML5, CSS3, etc
Shows great tables and charts of browser support of individual CSS/JS functions.
css  html5  css3  support  browser  reference  supported  compatible  compatability 
november 2013 by dza
Viewport Sizes
WARNING: Doesn't correspond to the (actual) pixels used in media queries.

Test with:
http://ryanve.com/lab/dimensions/
webdev  webdesign  smartphone  tablet  tablets  smartphones  device  devices  viewport  viewports  width  height  screen  resolution  reference 
october 2013 by dza
PHP Profiling Performance Graph w/ xdebug
<look inside>

apt-get install php5-xdebug

edit:
/etc/php5/conf.d/20-xdebug.ini

add:
#
xdebug.remote_enable=on
xdebug.remote_handle=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_enable = 1
xdebug.profiler_output_name = cachegrind.out.%t-%s
xdebug.profiler_output_dir = "/home/dev10/performance_stats"
#

top, vmstat, dstat

http_load -parallel 5 -seconds 10 urls.txt (watch dstat meanwhile performing benchmark)
(more infO: http://share.ez.no/learn/ez-publish/ez-publish-performance-optimization-part-1-of-3-introduction-and-benchmarking/%28from%29/ez.no)

----------------
Webgrind (Xdebug profiling web frontend in PHP5)
https://code.google.com/p/webgrind/

1. Download to web root
2. Edit config.php
3. Be sure $storageDir is writable by web server

http://www.ibm.com/developerworks/linux/library/l-tune-lamp-1/
http://www.ibm.com/developerworks/linux/library/l-tune-lamp-2/index.html
http://www.ibm.com/developerworks/library/l-tune-lamp-3/index.html

http://share.ez.no/learn/ez-publish/ez-publish-performance-optimization-part-1-of-3-introduction-and-benchmarking/%28from%29/ez.no
http://share.ez.no/learn/ez-publish/ez-publish-performance-optimization-part-2-of-3-identifying-trouble-spots-by-debugging/%28from%29/ez.no
http://share.ez.no/learn/ez-publish/ez-publish-performance-optimization-part-3-of-3-practical-cache-and-template-solutions/%28from%29/ez.no

http://devzone.zend.com/1139/profiling-php-applications-with-xdebug/
php  profiling  performance  source  howto  tutorial  guide  !ref  reference  xdebug  top  vmstat  dstat  http_load  webgrind  from notes
january 2013 by dza
Vim tips: Folding fun | Linux.com
Vim folding commands

zf#j creates a fold from the cursor down # lines.
zf/string creates a fold from the cursor to string .
zj moves the cursor to the next fold.
zk moves the cursor to the previous fold.
zo opens a fold at the cursor.
zO opens all folds at the cursor.
zm increases the foldlevel by one.
zM closes all open folds.
zr decreases the foldlevel by one.
zR decreases the foldlevel to zero -- all folds will be open.
zd deletes the fold at the cursor.
zE deletes all folds.
[z move to start of open fold.
]z move to end of open fold.
vim  vi  folding  reference  fold  collapse  expand  foldmethod 
august 2012 by dza
PowerShell vs Bash Compared (PowerShell for Unixers)
Common Commands for PowerShell users that can be done in Bash.
howto  tutorial  guide  dev  unix  powershell  microsoft  bash  common  reference  compare  comparison 
august 2012 by dza
Code Like a Pythonista: Idiomatic Python
Learn to be Pythonic and appreciate Python's fine shortcuts and pathways that makes the life of a snake easier !
howto  tutorial  guide  dev  python  reference  pythonic  pythonista 
july 2012 by dza
PowerShell Quick Handy Reference
=== GENERAL ===

Get-Command
^ Get all available commands

Get-PSDrive
^ Shows all possible PowerShell locations/drives

example:

cd env:
dir
^ Shows all environment, auto-filling information.

Get-EventLog -list
Get-EventLog Security
Get-EventLog Application
^ Event logs in Apps, Security etc.

=== FORMATTING ===

Format-Table
Format-List
Format-Wide
Format*?
ConvertTo-HTML
ConvertTo-*?

=== TAKE FIRST OBJECT + CONVERT TO MB OUTPUT ===
() encapsulation returns first object (asssumes only one)
(gwmi win32_computersystem).TotalPhysicalMemory/1mb

1B
1KB
1MB
1GB
1TB
1PB
^ All special PowerShell size variables. Instead of writing /1024.

=== Continue listing on key-press ===

Get-ScheduledTask | more
Get-ScheduledTask | Where-Object State -ne "Disabled"
^ Gets scheduled tasks and "more" makes sure you press a key to continue listing ..

=== Tab-Completion ===
$var.[TAB] - Gives first method/property
Get-Process -[TAB] Gives first argument

=== EXAMPLES ===

# Get all processes sorted by Read-IO-Stats
Get-WmiObject Win32_Process | Select-Object Name, ReadTransferCount, WriteTransferCount | Sort-Object ReadTransferCount

# List all of the performance counters you can monitor
Get-Counter –listSet * | Select-Object -ExpandProperty Paths
# Get one sample of the processor time
Get-Counter 'Processor(*)% Processor Time'
# Get a sample of the processor time until you press CTRL + C
Get-Counter 'Processor(*)% Processor Time' -Continuous
# Instantiating a new PerfCount object example:
$ppt = New-Object System.Diagnostics.PerformanceCounter$ppt.CategoryName = 'Processor'$ppt.CounterName = '% Processor Time'$ppt.InstanceName = '_Total'$pptv = $ppt.NextValue()$mab = New-Object System.Diagnostics.PerformanceCounter$mab.CategoryName = 'Memory'$mab.CounterName = 'Available MBytes'$pql = New-Object System.Diagnostics.PerformanceCounter$pql.CategoryName = 'System'$pql.CounterName = 'Processor Queue Length'$bch = New-Object System.Diagnostics.PerformanceCounter$bch.CategoryName = 'SQLServer:Buffer Manager'$bch.CounterName = 'Buffer cache hit ratio'$brs = New-Object System.Diagnostics.PerformanceCounter$brs.CategoryName = 'SQLServer:SQL Statistics'$brs.CounterName = 'Batch Requests/sec'
powershell  microsoft  env  environment  var  variables  reference  ref  eventlog  PATH  vars  from notes
june 2012 by dza
chrome://browser/content/browser.xul (Firefox XUL)
chrome://browser/content/browser.xul

Click "Inspect" (Icon with a mouse showing a keypress)

In the preview of what the .xul looks like (navigation-toolbar, tabs, bookmarks-toolbar) you select / press on the element you wish to inspect further ..
howto  tutorial  guide  reference  userChrome.css  userChrome  mozilla  firefox  customize  customization  layout  chrome  browser  browsers  dom  inspect  inspector  xul  extension  extensions  addon  addons 
may 2012 by dza
chrome://browser/skin/browser.css (userChrome.css reference)
[Remove http:// on this link to work]
chrome://browser/skin/browser.css

A great reference for making custom userChrome.css for Firefox.
howto  tutorial  guide  reference  userChrome.css  userChrome  mozilla  firefox  customize  customization  layout  chrome  browser  browsers 
may 2012 by dza
chrome://browser/content/browser.css (userChrome.css reference)
[Remove http:// on this link to work]
chrome://browser/content/browser.css

A great reference for making custom userChrome.css for Firefox.
howto  tutorial  guide  reference  userChrome.css  userChrome  mozilla  firefox  customize  customization  layout  chrome  browser  browsers 
may 2012 by dza
gdb CHEATSHEET
===== CHEATSHEET =====
execution: gdb --write --nx --quiet
--write (enable overwriting the current running executable with modifications)
--nx
--quiet (less verbose)

set write (from inside GDB, enable writing into executable and core files- CAUTION: watch out so you don't make segfaults in core libraries !!)

stepi/si
Execute one machine instruction, then stop and return to the debugger. It enters shared libraries functions also, so don't use it normally unless this is what you intend.

next
Execute one machine instruction, then stop and return to the debugger. It doesn't enter shared libraries functions.

nexti/ni
Execute one machine instruction, then stop and return to the debugger. It doesn't enter shared libraries functions.

You can go forward as many instructions you want with "ni 2" (in this case 2)

layout asm (enable assembly line-by-line splitview, like ollydbg or other disassemblers)

break *0x00000000 (break at exact address)
break gtk_message_dialog_new (break at exact function)

x/x 0x00000000 (show value @ location)
set {int} 0x00000000 = 0x00000000 (set bytes @ location)
info registers

display/$pc - display current line ($pc == current line asm)
display/$eax - display register $eax
.. and so on !

# LLDB

register read # read registers
register r -f bin eflags # read eflags (along with ZF, in binary)
memory write 0x02ae4 74 # write opcodes to memory
di -f # disassemble --frame - disassemble current frame

# invert zeroflag from 0 to 1
expr -f bin -- $eflags|0x40
# invert zeroflag from 1 to 0
expr -f bin -- $eflags&~0x40
# ^ because 0x40 in hex (calculator) is equal to the 6th (64 in decimal) place.
# we could do
# invert zeroflag from 0 to 1
expr -f bin -- $eflags|64
# invert zeroflag from 1 to 0
expr -f bin -- $eflags&~64
# instead to signify that we invert the "64" bits (6th place).
gdb  reference  cheatsheet  debug  debugging  reverse  reverse-engineering  asm  assembly  debugger  !gdb  zf  zero  flag  zeroflag  from notes
april 2012 by dza
Google Search Operators - Google Guide
allinanchor:

If you start your query with allinanchor:, Google restricts results to pages containing all query terms you specify in the anchor text on links to the page. For example, [ allinanchor: best museums sydney ] will return only pages in which the anchor text on links to the pages contain the words “best,” “museums,” and “sydney.”

allintext:

If you start your query with allintext:, Google restricts results to those containing all the query terms you specify in the text of the page. For example, [ allintext: travel packing list ] will return only pages in which the words “travel,” “packing,” and “list” appear in the text of the page.

allintitle:

If you start your query with allintitle:, Google restricts results to those containing all the query terms you specify in the title. For example, [ allintitle: detect plagiarism ] will return only documents that contain the words “detect” and “plagiarism” in the title.

allinurl:

If you start your query with allinurl:, Google restricts results to those containing all the query terms you specify in the URL. For example, [ allinurl: google faq ] will return only documents that contain the words “google” and “faq” in the URL, such as “www.google.com/help/faq.html”.

author:

If you include author: in your query, Google will restrict your Google Groups results to include newsgroup articles by the author you specify. The author can be a full or partial name or email address.

cache:
The query cache:url will display Google’s cached version of a web page, instead of the current version of the page.

define:
If you start your query with define:, Google shows definitions from pages on the web for the term that follows.

ext:
This is an undocumented alias for filetype:.

filetype:
If you include filetype:suffix in your query, Google will restrict the results to pages whose names end in suffix.

If you include group: in your query, Google will restrict your Google Groups results to newsgroup articles from certain groups or subareas. For example, [ sleep group:misc.kids.moderated ]

id:
This is an undocumented alias for info:.

inanchor:
If you include inanchor: in your query, Google will restrict the results to pages containing the query terms you specify in the anchor text or links to the page. For example, [ restaurants inanchor:gourmet ] will return pages in which the anchor text on links to the pages contain the word “gourmet” and the page contains the word “restaurants.”

info:
The query info:URL will present some information about the corresponding web page. For instance, [ info:gothotel.com ] will show information about the national hotel directory GotHotel.com home page.

Note: There must be no space between the info: and the web page URL.

insubject:
If you include insubject: in your query, Google will restrict articles in Google Groups to those that contain the terms you specify in the subject. For example, [ insubject:”falling asleep” ] will return Google Group articles that contain the phrase “falling asleep” in the subject.

intext:
The query intext:term restricts results to documents containing term in the text. For instance, [ Hamish Reid intext:pandemonia ] will return documents that mention the word “pandemonia” in the text, and mention the names “Hamish” and “Reid” anywhere in the document (text or not).

Note: There must be no space between the intext: and the following word.

intitle:
The query intitle:term restricts results to documents containing term in the title. For instance, [ flu shot intitle:help ] will return documents that mention the word “help” in their titles, and mention the words “flu” and “shot” anywhere in the document (title or not).

Note: There must be no space between the intitle: and the following word.

inurl:
If you include inurl: in your query, Google will restrict the results to documents containing that word in the URL. For instance, [ inurl:print site:www.googleguide.com ] searches for pages on Google Guide in which the URL contains the word “print.” It finds pdf files that are in the directory or folder named “print” on the Google Guide website. The query [ inurl:healthy eating ] will return documents that mention the words “healthy” in their URL, and mention the word “eating” anywhere in the document.

Note: There must be no space between the inurl: and the following word.

link:
The query link:URL shows pages that point to that URL. For example, to find pages that point to Google Guide’s home page, enter:

[ link:www.googleguide.com ]

location:
If you include location: in your query on Google News, only articles from the location you specify will be returned. For example, [ queen location:canada ] will show articles that match the term “queen” from sites in Canada. Many other country names work; try them and see.

movie:
If you include movie: in your query, Google will find movie-related information.

related:
The query related:URL will list web pages that are similar to the web page you specify. For instance, [ related:www.consumerreports.org ] will list web pages that are similar to the Consumer Reports home page.

Note: Don’t include a space between the related: and the web page url.

site:
If you include site: in your query, Google will restrict your search results to the site or domain you specify. For example, [ admissions site:www.lse.ac.uk ] will show admissions information from London School of Economics’ site and [ peace site:gov ] will find pages about peace within the .gov domain. You can specify a domain with or without a period, e.g., either as .gov or gov.

Note: Do not include a space between the “site:” and the domain.

source:
If you include source: in your query, Google News will restrict your search to articles from the news source with the ID you specify. For example, [ election source:new_york_times ] will return articles with the word “election” that appear in the New York Times.

weather
If you enter a query with the word weather and a city or location name, if Google recognizes the location, the forecast will appear at the top of the results page. Otherwise, your results will usually include links to sites with the weather conditions and forecast for that location.
google  guide  howto  tutorial  reference  search  tip  tips 
march 2012 by dza
MySQL Commandline / Cheatsheet;
CHANGE DB
=========

mysql> USE test;

PRINT DB
========

mysql> SHOW databases;

PRINT TABLES
============

mysql> SHOW tables;

PRINT TABLE
===========

mysql> DESC test;
mysql  cmdline  cheatsheet  cheatsheets  reference  sql  database  from notes
march 2012 by dza
Welcome to VX Heavens! (VX heavens)
Nice site on lots of internal security (vira,malware)
howto  tutorial  guide  dev  programming  virus  security  reference  malware 
march 2012 by dza
Datatypes In SQLite Version 3
INT
INTEGER
TINYINT
SMALLINT
MEDIUMINT
BIGINT
UNSIGNED BIG INT
INT2
INT8 INTEGER 1
CHARACTER(20)
VARCHAR(255)
VARYING CHARACTER(255)
NCHAR(55)
NATIVE CHARACTER(70)
NVARCHAR(100)
TEXT
CLOB TEXT 2
BLOB
no datatype specified NONE 3
REAL
DOUBLE
DOUBLE PRECISION
FLOAT REAL 4
NUMERIC
DECIMAL(10,5)
BOOLEAN
DATE
DATETIME NUMERIC 5
sqlite  database  db  databases  sqlite3  reference  type  types  null  integer  real  text  blob  documentation  boolean  date  datetime  int  tinyint  smallint  mediumint  bigint  unsigned  big  int2  int8  character  varchar  varying  nchar  nvarchar  native  double  precision  float  numeric  decimal  dev 
november 2011 by dza
LPI Linux Certification/Security Tasks - Wikibooks, open books for an open world
Excellent reference for learning basic and more advanced Linux sysadmin tasks.
lpi  linux  certification  partition  partitioning  ldd  ldconfig  dpkg  dpkg-deb  dpkg-reconfigure  apt-get  apt-cache  aptitude  rpm  rpm2cpio  yum  yumdownloader  bash  echo  env  exec  export  pwd  set  unset  man  uname  history  cat  cut  expand  fmt  head  od  join  nl  paste  pr  sed  sort  split  tail  tr  unexpand  uniq  wc  cp  find  mkdir  mv  ls  rm  rmdir  touch  tar  cpio  dd  file  gzip  gunzip  bzip2  globbing  stream  streams  pipe  pipes  tee  xargs  input  output  &  bg  fg  jobs  kill  nohup  ps  top  free  uptime  killall  nice  renice  grep  egrep  fgrep  du  df  fsck  e2fsck  mke2fs  debugfs  dumpe2fs  tune2fs  xfs  xfs_metadump  xfs_info  media  mount  umount  quota  edquota  chmod  umask  chown  chgrp  ln  xdpyinfo  depmod  insmod  lsmod  rmmod  modinfo  modprobe  init  single  quiet  telinit  alias  function  lists  for  while  test  if  read  seq  at  atq  passwd  lsof  nmap  netstat  chage  sudo  su  usermod  ulimit  zImage  bzImage  make  mkinitrd  mkisofs  getty  mgetty  uugetty  smbd  nmbd  smbstatus  testparm  smbpasswd  nmblookup  exportfs  showmount  nfsstat  dhcpd  pam  ftpaccess  ftpusers  ftpgroups  learn  learning  reference  howt 
april 2011 by dza
How To Copy a System Image from One Device to Another - Cisco Systems
This document explains how to copy a system image from one device to another within the same router, and from one router to another.
cisco  network  networking  ios  router  switch  routers  switches  tftp  flash  backup  boot  system  bootflash  ftp  lex  null  disk0  disk1  flh  nvram  rcp  running-config  slot0  slot1  startup-config  tftp-server  server  commands  reference 
february 2011 by dza
CIDR Conversion Table
Shows prefix, netmask, number of hosts
cisco  network  networking  cidr  netmask  table  reference  prefix  subnet  mask 
october 2010 by dza
Python Debugging Techniques | Ayman Hourieh
Great stuff - Setting breakpoints, line by line debugging, logging and more :)
python  debug  debugging  dev  breakpoint  breakpoints  howto  tutorial  guide  reference  pdb  code.interact  code.interact()  logging  log 
september 2010 by dza
« earlier      
per page:    204080120160

related tags

!gdb  !homebrew  !pentadactyl  !ref  !spectrwm  !tmux  !work  !zsh  &  --purge-historical-versions  2.0  3d  7-bit  7bit  8.1  8bit  ab  abbreviation  abbreviations  about  about:config  aboutdialog  abs  accent  accents  access  addon  addons  address  ado.net  adobe  adress  adresses  advanced  afgift  aim  ajax  alias  align  alignment  all  alter  amiga  android  anti-idioms  antispam  api  apple  apps  apt-cache  apt-get  aptitude  arch  archive  archlinux  archwiki  arg  args  argument  arguments  armoury  arp  array  arrays  article  articles  ascii  asm  asp  asp.net  assembly  at  ata  atk  atq  atx  audio  aur  aurora  auth  authentication  autoconf  automake  aux  avd  backdoor  backup  banner  banners  bash  basic  basics  bcwipe  bedrageri  bg  big  bigint  bin  bind  binding  bios  bitlbee  bittorrent  blob  bogføring  book  bookmark  bookmarking  books  boolean  boot  bootflash  booting  bootloader  bootup  brace  braces  branch  branches  breakpoint  breakpoints  brew  bridges  broadcast  browser  browsers  bsd  buffer  buffers  build  bunzip2  bus  business  button  buttons  byte  bytes  bzImage  bzip2  c  cable  cables  cache  caching  call  camera  canvas  card  cards  case  cask  cat  cd  certification  chage  char  character  characters  chat  chatting  cheat  cheat-sheet  cheat-sheets  cheatsheet  cheatsheets  checkout  checkpkg  chgrp  chmod  chown  chrome  cidr  cifs  circle  cisco  class  classes  classmethod  cli  close  cmd  cmdline  cmds  code  code.interact  code.interact()  codes  coding  collapse  collision  color  coloring  colors  colours  com  command  commandline  commands  commit  common  community  compare  comparison  compatability  compatibility  compatible  compile  compiling  complex  compositing  composition  compress  compression  computer  computers  concat  config  configuration  conflict  conflicts  confrontation  console  constructor  constructors  control  conversion  convert  converting  cookbook  core  count  country  cover  covers  cp  cpio  crack  cracking  create  criticism  crossbrowser  crypt  cryptocurrency  cryptography  csharp  css  css3  cubase  curse  curses  customization  customize  cut  cvs  daemon  daemons  dalvik  data  database  databases  datarecovery  datasikkerhed  date  dates  datetime  db  dd  debian  debug  debugfs  debugger  debugging  dec  decimal  decorator  decorators  definition  del.icio.us  delete  deleting  delicious  denial  denial-of-service  dependencies  depends  depmod  descriptor  descriptors  design-pattern  design-patterns  designpattern  designpatterns  design_pattern  design_patterns  desktop  dev  developer  development  device  devices  df  dhcp  dhcpd  diagram  diagrams  dictionary  dig  directories  directory  disk  disk0  disk1  disks  distinct  dive  diveintopython  diy  django  django-tagging  dns  doc  docs  docstring  document  documentation  documents  dom  domain  domains  dos  dotnet  double  download  downloading  dox  dpad  dparser  dpkg  dpkg-deb  dpkg-reconfigure  draw  drawing  drive  driver  drivers  drop  drum  drums  dstat  dtrace  du  dumpe2fs  dvd  e2fsck  eAccelerator  eaccelerator.ini  ebook  ebooks  echo  edit  editing  editor  edquota  edu  education  eflags  egrep  electronic  electronics  ElementTree  else  em  email  embedded  emulator  encoding  encrypt  encryption  end  enkeltmandsvirksomhed  enumeration  env  envelope  environment  eraser  error  esc  escape  essay  EtherChannel  ethernet  etree  event  eventlog  events  example  examples  except  exception  exceptions  exec  expand  expansion  explorer  export  exportfs  expression  expressions  exs24  ext3  extension  extensions  facebook  fakeroot  fanart  faq  fast  fastcgi  faster  features  fennec  fetch  fg  fgrep  file  filehandling  filemon  files  fileserver  fileservers  filesystem  filesystems  finans  find  firefox  firewall  firma  flac  flag  flags  flash  flexibility  flh  float  flush  fmt  focus  fold  folder  folders  folding  foldmethod  folksonomy  font  fonts  for  form  forms  forum  forums  foss  framework  free  freebsd  from  fs  fsck  ftp  ftpaccess  ftpgroups  ftpusers  fullscreen  function  functions  game  games  gdb  gdi+  gear  generator  gentoo  gesture  gestures  get  getty  git  github  glade  GladeGen  GladeGenerator  globbing  glossary  glyp  glyphs  gnd  gnome  gnu  google  google.com  gotchas  gpg  graphics  grep  ground  groupby  grub  gtk  gtk+  gtk.aboutdialog  gtk.Clipboard  gtk.glade  gtk.Image  gtk.Object  gtk.Settings  gtk.textbuffer  gtk.textview  gtk.Tooltips  gtk.treeview  gtk.vbox  gtk.Widget  gtk.Window  gui  guide  guideline  guidelines  guides  gunzip  gzip  hack  hacking  handbook  handling  hangup  harddisc  harddisk  harddrive  hardware  hash  hashes  hbox  hd  hdparm  head  headless  height  help  hex  hierarchy  highlightning  historical  history  home  homebrew  host  hostname  hotkey  hotkeys  how-to  howto  html  html5  htmllib  http  http_load  hypervisor  håndbog  ia-32  ia32  IANA  icq  idiom  idioms  ie  if  ignore  ignoring  im  image  images  imap  import  imported  indent  indentation  indesign  index  inetd  init  initramfs  input  insert  inserting  insmod  inspect  inspector  install  installation  installing  int  int2  int8  integer  integrity  intel  interactive  interconnection  interest  interface  interfaces  internet  interop  into  io  ios  ip  ip-address  ip-adress  ipaddress  ipadress  ipchain  ipchains  ipscan  ipscanning  iptable  iptables  ipv4  ipv6  irc  irssi  iso8859  iso8859-1  iter  jabber  jail  jails  javascript  jfs  jmp  jne  jobs  join  js  jura  kerberos  kernel  key  keybindings  keyboard  keys  keyword  kill  killall  klogd  label  labels  language  last  lastlog  latin  latin1  layer  layers  layout  ldconfig  ldd  learn  learning  letter  letters  lex  lfs  libraries  library  libtool  lilo  line  linkage  linq  linq2sql  linux  liquidity  list  lists  live  lldb  ln  locate  log  logger  logging  logic  logical  login  logs  lookup  lpi  ls  lsdev  lsmod  lsof  lspci  lsusb  lv  lvm  lvm1  lvm2  lvs  mac  macintosh  macos  macosx  madplay  maintain  maintainer  make  makedepends  makepkg  malware  man  management  manager  manual  map  mapping  maps  markedsføring  mask  master  md5sum  media  mediumint  membership  menu  merge  merging  meta  metaclass  metaclasses  metadata  mgetty  microcontroller  microsoft  midi  mirrored  mkadm  mkdir  mke2fs  mkinitrd  mkisofs  mkraid  mobile  model  models.py  modem  modified  modinfo  modprobe  module  modules  mod_php  moms  monitor  monitoring  more  mount  mounting  mozilla  mp3  msdn  msn  mst  mta  multi  multi-line  multimedia  music  mv  mxr  mysql  mysql-python  mysqladmin  name  namespace  namespaces  naming  native  nc  ncftp  nchar  nested  net  netcat  netgroup  netmask  netstat  network  networking  new  new-style  new2linux  newbie  newer  news  nfs  nfsd  nfsstat  nice  nickname  nicknames  nightly  nis  nl  nmap  nmbd  nmblookup  nohup  nslookup  nspr  nsswitch  null  number  numbers  numeric  nvarchar  nvram  oauth  obj  object  object-oriented  objectoriented  objects  object_oriented  oct  od  of  older  omsætning  online  oo  oop  open  open-source  opensolaris  opensource  opensuse  open_source  operating  operatingsystem  operator  operators  optdepends  optimization  optimize  os  osi  osx  outer  output  outputting  overhead  p2p  package  packages  packet  pacman  page  pages  pam  pango  pangocairo  paper  papers  parallel  parallels  parameter  parameters  parse  parsing  partition  partitioning  passwd  paste  patching  path  paths  pattern  patterns  pdb  peer-to-peer  pentadactyl  performance  perl  permissions  pf  php  php-dev  php5-dev  physical  pin  ping  pinout  pinouts  pins  pipe  pipes  piping  pixel  pkg  pkgbuild  pkgdesc  PKGINFO  pkgname  pkgrel  pkgver  playstation  playstation3  policy  pool  pools  popen  port  ports  portscan  portscanning  POSIX  post  postfix  power  powershell  powerup  pr  precision  prefix  presentation  preview  print  printers  printing  prlctl  prlsrvctl  proc.communicate  proc.communicate()  process  processes  processing  procmon  production  productivity  profile  profiles  profiling  program  programming  prompt  prompts  property  property()  protocol  protocols  provides  proxy  proxying  ps  ps/2  ps2  ps3  psyco  pt  public  purge  put  pv  pvs  pvst  pvst+  pwd  px  py  pygtk  PyMOTW  pyrex  python  python-mysql  python3  pythonic  pythonista  question  questions  queue  queues  quiet  quota  rad  raid  raid-z  raid-z2  raidz  raidz2  rapid  rcp  read  readme  real  rebuild  recipe  recipes  reconstruction  recovery  rect  rectangle  rectangles  redhat  redirect  redirection  ref  reference  regex  regmon  regnskab  regular  reiser  reiserfs  renice  repair  replace  replaces  repo  repository  resolution  result  results  reverse  reverse-engineering  review  revision  revisions  rfc  rhel  rm  rmdir  rmmod  root  ROT13  route  router  routers  rpcinfo  rpm  rpm2cpio  rpmbuild  rsx  ruby  run  runlevel  runlevels  running  running-config  runtime  s-video  samba  scan  scanning  scart  schematic  schematics  scm  screen  script  scripting  scripts  search  searchengine  searchengines  searching  search_engine  secure  securenets  security  sed  select  selecting  self  semantic  seq  sequence  sequences  serial  server  service  services  set  setserial  shadow  shadows  shared  sheet  sheets  shell  shells  ship  shortcut  shortcuts  showmount  signal  signals  silverlight  single  site  sitemap  size  sizes  skat  SkipWhile  slice  slicing  slot0  slot1  slots  smallint  smartphone  smartphones  smb  smbd  smbpasswd  smbstatus  smtp  snapshot  snapshots  sniff  sniffing  soap  social  social-bookmarking  socialbookmarking  socialt  socom  software  solaris  sony  sort  sound  soundcard  source  sourcecode  sources  sox  spam  spanning-tree  spawn  specification  spectrwm  speed  speeder  speeding  spideroak  split  sql  sqlite  sqlite3  src  ssd  ssh  ssl  stackoverflow  stage  standard  standards  stanza  startup  startup-config  state  static  stderr  stdin  stdout  stepping  storage  stp  str  strategy  stream  streams  string  strings  striped  studio  style  styles  støtte  su  subnet  subnets  subprocess  subprocess.call  subprocess.PIPE  subprocess.Popen  subprocessing  subroutine  subroutines  subversion  sudo  sun  super  supply  support  supported  suse  svn  switch  switches  symbol  symbols  syntax  sysadmin  sysctl  sysinternals  syslog  system  systemd  systems  tab  tabdo  table  tablet  tablets  tabs  tag  tagging  tags  tagsonomy  tail  take  TakeWhile  tar  tarball  taskbar  tax  tcp  tcp-ip  tcpip  tech  technology  tee  telinit  term  terminal  terminals  ternary  test  testparm  text  textbuffer  textview  tftp  tftp-server  theme  themes  this  thread  threads  thunderbird  ticker  time  times  tinyint  tip  tips  tld  tldp  tmux  to  tool  tools  top  top-level  top-level-domain  top10  toplevel  topleveldomain  toread  torrent  torrents  touch  tr  trace  traceroute  tracing  trackball  tracker  trackers  transformation  transformations  treeview  trick  tricks  tripwire  trojan  try  tune2fs  tuning  tutorial  tuxfiles  tv  tweak  tweaking  tweaks  twisted  type  types  typography  ubuntu  udp  ufs  ulimit  umask  umount  uname  unexpand  unicast  union  uniq  unit  universal  unix  unlock  unlocking  unlocks  unmaintanable  unmount  unmounting  unpack  unpacking  unset  unsigned  unzip  up  update  updatedb  updating  uptime  urllib  urllib2  urls.py  usb  usbview  use  user  userChrome  userChrome.css  usermod  users  utility  utmp  uugetty  validation  validators  var  varchar  variable  variables  vars  varying  vbox  vcs  version  versioncontrol  versioning  vga  vi  viewport  viewports  views.py  viewstate  vim  VimL  vimrc  VimScript  virksomhed  virksomhedsform  virksomhedsformer  virtualization  virus  visual  visualstudio  vlan  vmstat  vol  volt  voltage  volume  volumes  vscrollbar  vsplit  vt100  w  w3  w3c  walkthrough  wallpaper  wav  wc  weapon  weapons  web  web.config  web2.0  webdesign  webdev  webframework  webgrind  webprogramming  where  whereis  which  while  who  whois  widget  widgets  width  wiki  wikipedia  win  win32  window.event  windows  with  world-wide-web  worldwideweb  wpf  write  wtmp  www  x11  x86  xargs  xdebug  xdpyinfo  XFree86  xfs  xfs_info  xfs_metadump  xhtml  xinetd  xml  xmlhttprequest  xterm  xul  ydl  yellowdoglinux  ypbind  ypcat  ypmatch  yppasswd  yppoll  yppush  ypserv  ypwhich  yum  yumdownloader  zero  zeroflag  zf  zfs  zImage  zip  zle  zone  zones  zpool  zpools  \033  __add__  __builtins__  __builtin__  __cmp__  __delattr__  __delete__  __del__  __getattribute__  __getattr__  __getitem__  __get__  __init__  __len__  __missing__  __new__  __repr__  __setattr__  __setitem__  __set__  __slots__  __str__  __unicode__  årsregnskab  økonomi 

Copy this bookmark:



description:


tags: