var foo = "space
inside"
但上面語句在 javascript 執行會產生 syntax error。
在 javascript 中,語句結束不一定要加上分號,直譯器會判斷在適當的位置加上「;」。所以上述的程式會被 javascript 解讀成:
var foo = { prop: "some;
thing"};
其他:
[JavaScript] 自動補上分號的機制造成非預期的回傳值
http://wbkuo.pixnet.net/blog/post/162042779
-->
var foo = "space
inside"
var foo = { prop: "some;
thing"};
C-a :number 5
var foo = ['1', '2', 3];
console.dir(foo);
http://blog.zeroplex。tw
http://blog.zeroplex.tw
// RFC 3490
// 1) Whenever dots are used as label separators, the following characters
// MUST be recognized as dots: U+002E (full stop), U+3002 (ideographic full
// stop), U+FF0E (fullwidth full stop), U+FF61 (halfwidth ideographic full
// stop).
require VENDORPATH.'autoload.php';
"require": {
"cartalyst/sentry": "2.0.*",
"illuminate/database": "4.0.*",
"ircmaxell/password-compat": "1.0.*"
}
Cartalyst\Sentry\Facades\FuelPHP\Sentry
class_alias('Cartalyst\Sentry\Facades\FuelPHP\Sentry', 'Sentry');
C-a C-x (lockscreen) Lock this terminal.
Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/html; charset=utf-8
Date:Fri, 22 Nov 2013 04:10:12 GMT
Transfer-Encoding:chunked
X-Powered-By:PHP/5.3.10-1ubuntu3.8
postfix/smtpd[31217]: connect from localhost[127.0.0.1]
postfix/smtpd[31217]: lost connection after STARTTLS from localhost[127.0.0.1]
postfix/smtpd[31217]: disconnect from localhost[127.0.0.1]
smtpd_use_tls=no
<img src="javascript:alert('XSS')">
<img/src=x oooooo/oooooooooo/onerror="top.location='http://zeroplex.blogspot.com'" >
xset dpms force off
Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.9.3-x86 i686)
* Documentation: https://help.ubuntu.com/
System information as of Wed Oct 23 09:35:28 CST 2013
System load: 0.66 Processes: 163
Usage of /: 65.8% of 46.01GB Users logged in: 0
Memory usage: 39% IP address for eth0: 127.0.0.1
Swap usage: 10%
Graph this data and manage this system at https://landscape.canonical.com/
Last login: Wed Oct 23 09:30:26 2013 from some.where.net
$ grep -s -r "System information" /etc
motd: System information as of Wed Oct 23 09:35:28 CST 2013
update-motd.d/50-landscape-sysinfo: echo -n " System information as of "
update-motd.d/50-landscape-sysinfo: echo " System information disabled due to load higher than $threshold"
$ sudo dpkg avg2013flx-r3115-a6155.i386.deb
$ sudo avgupdate
$ sudo avgsetup
$ sudo avgscan /
server {
location / {
# rewrite ^ https://my.url;
rewrite ^ https://$server_name permanent;
}
}
location {
rewrite ^ https://$server_name$request_uri permanent;
}
mount /dev/sdb /media/backup
mount /dev/disk/by-label/System-Backup /media/backup
http://my.site/index.php/controller/param/
http://my.site/controller/param/
location / {
try_files $uri /index.php?$uri$args;
}
return arary(
//'index_file' => 'index.php',
'index_file' => false,
);
vim +fileencodeing=utf-8
export SVN_EDITOR="vim +\"fileencoding=utf-8 encoding=utf-8\""
Host hq
HostName server.url
Port 9999
User zero
<?xml version="1.0"?>
<contact>
<person name="Zero">
<person name="John">
</contact>
highlight PmenuSel term=reverse ctermbg=white ctermfg=black
LIST="item1 item2 item3"
for ITEM in $LIST; do
echo $ITEM
done
LIST=( \
item1 \
item2 \
item3 \
)
for ITEM in ${LIST[@]}; do
echo $ITEM
done
zero@dev$ cat eol.txt
content
zero@dev$
zero@dev$ cat eol.txt
contentzero@dev$
set noeol
set binary
alias svm='svn' # 我常常手殘
svn(){
if [[ $@ == commit ]]; then
command svn commit --editor-cmd vim
else
command svn "$@"
fi
}
svn(){
if [[ $@ == commit* ]] || [[ $@ == ci* ]]; then
command svn "$@" --editor-cmd vim
else
command svn "$@"
fi
}
sudo add-apt-repository ppa:mozillateam/firefox-next
sudo aptitude update
sudo aptitude install firefox # or aptitude update
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="unity-greeter">
<schema id="com.canonical.unity-greeter" path="/com/canonical/unity-greeter/">
<key name="background" type="s">
<default>'/usr/share/backgrounds/warty-final-ubuntu.png'</default>
<summary>Background file to use, either an image path or a color (e.g. #772953)</summary>
</key>
cd /usr/share/glib-2.0/schemas/
sudo glib-compile-schemas .
./configure --prefix=/usr/ --with-tlib=ncurses --with-features=big --enable-multibyte
sudo add-apt-repository ppa:tsbarnes/indicator-keylock && sudo apt-get update
sudo apt-get install indicator-keylock
#ServerTokens OS
ServerTokens Prod
server {
server_tokens off;
...
}
aptitude install lbzip2
lbzip2 -z backup.sql
tar -I lbzip2 -cvf backup.tbz backup/
$ echo "diff-cmd = colordiff" >> ~/.subversion/config
$sql = "update log set 'enable' = ? where 'size' != 100";
$db->query($sql, array('true') );
DB Error: mismatch
[mysqld]
innodb_file_per_table