OSX:
$ open -a Google\ Chrome --args --disable-web-security
Linux:
$ google-chrome --disable-web-security
AJAX,JSON flags:
-–allow-file-access-from-files
PC from directory with exe:
def us_states(): | |
return [ | |
('AK', 'Alaska'), | |
('AL', 'Alabama'), | |
('AR', 'Arkansas'), | |
('AZ', 'Arizona'), | |
('CA', 'California'), | |
('CO', 'Colorado'), | |
('CT', 'Connecticut'), | |
('DC', 'District of Columbia'), |
// For local development, remove the SSL certificate check. | |
$client_options = array( | |
'trace' => 'example_trace', | |
'soap_version' => 'example_version', | |
'stream_context' => stream_context_create( | |
array( | |
'ssl' => array( | |
'verify_peer' => FALSE, | |
'verify_peer_name' => FALSE, | |
) |
// Application specific. | |
git config --global --replace-all core.pager "less -iXFR" | |
// Global system configuration. | |
// For Bash or Zsh. | |
export LESS=-iXFR | |
/* | |
* -i - ignore case when searching | |
* -X - do not clear screen on exit |
" Show syntax highlighting groups for word under cursor | |
nmap <leader>z :call <SID>SynStack()<CR> | |
function! <SID>SynStack() | |
if !exists("*synstack") | |
return | |
endif | |
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') | |
endfunc |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
OSX:
$ open -a Google\ Chrome --args --disable-web-security
Linux:
$ google-chrome --disable-web-security
AJAX,JSON flags:
-–allow-file-access-from-files
PC from directory with exe:
# | |
# .bash_profile | |
# | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# | |
# Postion definition (foreground/background). | |
# | |
# 1. directory |
tcpdump -nl -I eth0 -c500 port 8880 |