<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8776042038957292513</id><updated>2024-10-24T23:15:17.839+08:00</updated><category term="linux"/><category term="debian"/><category term="apache"/><category term="php"/><category term="appserv"/><category term="mysql"/><category term="css"/><category term="javascript"/><category term="script"/><category term="html"/><category term="java-bridge"/><category term="jdk"/><category term="postfix"/><category term="svn"/><category term="java"/><category term="ckeditor"/><category term="git"/><category term="samba"/><category term="sublime"/><category term="synology"/><category term="tomcat7"/><category term="7zip"/><category term="asp"/><category term="createElement"/><category term="dovecot"/><category term="gpg"/><category term="iptables"/><category term="jre"/><category term="mac"/><category term="netstat"/><category term="windows"/><category term="QOS"/><category term="VirtualBox"/><category term="XP"/><category term="adsl"/><category term="apt-key"/><category term="asp.net"/><category term="awstat"/><category term="border-box"/><category term="box model"/><category term="c#"/><category term="ckfinder"/><category term="class"/><category term="cmd"/><category term="codeigniter"/><category term="curl"/><category term="dell"/><category term="div"/><category term="dosfstools"/><category term="eclipse"/><category term="esxcli"/><category term="esxi"/><category term="fail2ban"/><category term="flex"/><category term="ftp"/><category term="grocerycrud"/><category term="icewm"/><category term="jquery"/><category term="kernel"/><category term="lamp"/><category term="macbook"/><category term="mailq"/><category term="mbr"/><category term="mssql"/><category term="ntpdate"/><category term="pcmanfm"/><category term="postqueue"/><category term="proftp"/><category term="r730"/><category term="redhat"/><category term="replication"/><category term="rsync"/><category term="squirrelmail"/><category term="ssh"/><category term="syslinux"/><category term="tar"/><category term="thunderbird"/><category term="usb"/><category term="virtualhost"/><category term="visualsvn"/><category term="webmail"/><category term="wget"/><category term="xampp"/><category term="流量限制"/><category term="異地備援"/><category term="絕對目錄"/><category term="虛擬網站"/><category term="購物車"/><title type='text'>Vega的筆記本</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>106</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-1871874598355265991</id><published>2020-06-27T08:57:00.001+08:00</published><updated>2020-06-27T08:58:32.053+08:00</updated><title type='text'>使用GoogleDrive同步VSCode的snippets</title><content type='html'>VSCode的snippet位置&lt;br /&gt;
%USERPROFILE%\AppData\Romaing\Code\User\snippets\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
進入snippet目錄&lt;br /&gt;
cd %USERPROFILE%\AppData\Romaing\Code\User&lt;br /&gt;
&lt;br /&gt;
先將原本的snippets目錄改名&lt;br /&gt;
rename snippets snippets.old&lt;br /&gt;
&lt;br /&gt;
再建立snippet的目錄連結&lt;br /&gt;
mklink /D &quot;snippets&quot; &quot;D:\GoogleDrive\sync\vscode\snippets&quot;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/1871874598355265991/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2020/06/vscode-snippets.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/1871874598355265991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/1871874598355265991'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2020/06/vscode-snippets.html' title='使用GoogleDrive同步VSCode的snippets'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-5236958582033127099</id><published>2019-08-05T14:35:00.001+08:00</published><updated>2019-08-05T14:35:45.863+08:00</updated><title type='text'>Debian 9 Install PHP 5.6 Debian9安裝php5.6筆記</title><content type='html'>&lt;br /&gt;
apt-get --assume-yes install ca-certificates apt-transport-https&lt;br /&gt;
wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -&lt;br /&gt;
echo &quot;deb https://packages.sury.org/php/ stretch main&quot; | tee /etc/apt/sources.list.d/php.list&lt;br /&gt;
apt-get update&lt;br /&gt;
apt-get --assume-yes install php5.6 php5.6-mysql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
apt-get --assume-yes install apache2&lt;br /&gt;
apt-get --assume-yes install mysql-server</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/5236958582033127099/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2019/08/debian-9-install-php-56-debian9php56.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/5236958582033127099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/5236958582033127099'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2019/08/debian-9-install-php-56-debian9php56.html' title='Debian 9 Install PHP 5.6 Debian9安裝php5.6筆記'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-6401668716247801657</id><published>2019-06-27T09:31:00.000+08:00</published><updated>2019-06-27T09:31:47.219+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="wget"/><title type='text'>wget 錯誤:ERROR: The certificate of `url&#39; is not trusted. 處理方式</title><content type='html'>&lt;br /&gt;
使用wget抓檔時 如果是https，有時會出現如下錯誤：&lt;br /&gt;
&lt;br /&gt;
ERROR: The certificate of `url&#39; is not trusted.&lt;br /&gt;
ERROR: The certificate of `url&#39; hasn&#39;t got a known issuer.&lt;br /&gt;
&lt;br /&gt;
解決方式如下：&lt;br /&gt;
1.&lt;br /&gt;
#apt-get install ca-certificates&lt;br /&gt;
&lt;br /&gt;
2.&lt;br /&gt;
#wget --no-check-certificate https://download/url&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/6401668716247801657/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2019/06/wget-error-certificate-of-url-is-not.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6401668716247801657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6401668716247801657'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2019/06/wget-error-certificate-of-url-is-not.html' title='wget 錯誤:ERROR: The certificate of `url&#39; is not trusted. 處理方式'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-8994483197003885695</id><published>2019-05-14T14:57:00.001+08:00</published><updated>2020-06-27T08:35:35.650+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="sublime"/><title type='text'>Sublime Text 3 在不同電腦間同步設定 使用Dropbox</title><content type='html'>&lt;br /&gt;
MAC&lt;br /&gt;
假設Dropbox目錄在 ~/Dropbox/&lt;br /&gt;
建目錄 ~/Dropbox/sync/SublimeText/&lt;br /&gt;
&lt;br /&gt;
到Sublime目錄&lt;br /&gt;
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/&lt;br /&gt;
&lt;br /&gt;
把User目錄整個搬到~/Dropbox/sync/SublimeText/&lt;br /&gt;
mv User ~/Dropbox/sync/SublimeText/&lt;br /&gt;
&lt;br /&gt;
建連結&lt;br /&gt;
ln -s ~/Dropbox/sync/SubilmeText/User&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Windows&lt;br /&gt;
cd C:\Users\USERNAME\AppData\Roaming\Sublime Text 3\Packages&lt;br /&gt;
mklink /D &quot;User&quot; &quot;\Dropbox\sync\SublimeText\User&quot;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/8994483197003885695/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2019/05/sublime-text-3-dropbox.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/8994483197003885695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/8994483197003885695'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2019/05/sublime-text-3-dropbox.html' title='Sublime Text 3 在不同電腦間同步設定 使用Dropbox'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-159004055264672267</id><published>2019-04-13T14:55:00.000+08:00</published><updated>2019-04-13T14:55:43.026+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>ASP.NET 連接Mysql 語法記錄</title><content type='html'>&lt;br /&gt;
string ConnString = System.Configuration.ConfigurationManager.ConnectionStrings[&quot;MysqlConnectionString&quot;].ToString();&lt;br /&gt;
string sql = &quot;&quot;;&lt;br /&gt;
&lt;br /&gt;
MySqlConnection &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;conn &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;= new MySqlConnection(ConnString);&lt;br /&gt;
MySqlCommand &lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cmd &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;= new MySqlCommand();&lt;br /&gt;
MySqlDataAdapter &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;da &lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;= new MySqlDataAdapter();&lt;br /&gt;
&lt;br /&gt;
cmd.Connection = conn;&lt;br /&gt;
&lt;br /&gt;
sql = &quot;INSERT INTO table (var1,var2) VALUES (@v1,@v2);SELECT LAST_INSERT_ID()&quot;;&lt;br /&gt;
cmd.CommandText = sql;&lt;br /&gt;
&lt;br /&gt;
da.SelectCommand = cmd;&lt;br /&gt;
da.SelectCommand.Parameters.AddWithValue(&quot;@v1&quot;, 1);&lt;br /&gt;
da.SelectCommand.Parameters.AddWithValue(&quot;@v2&quot;, &quot;AA&quot;);&lt;br /&gt;
&lt;br /&gt;
DataTable dt = new DataTable();&lt;br /&gt;
da.Fill(dt);&lt;br /&gt;
&lt;br /&gt;
last_insert_id = dt.Rows[0][0].ToString();</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/159004055264672267/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2019/04/aspnet-mysql.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/159004055264672267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/159004055264672267'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2019/04/aspnet-mysql.html' title='ASP.NET 連接Mysql 語法記錄'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-706955198599161333</id><published>2019-01-05T11:26:00.000+08:00</published><updated>2019-05-17T11:00:19.007+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="flex"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><title type='text'>CSS Flex 筆記</title><content type='html'>主軸,次軸&lt;br /&gt;
&lt;br /&gt;
啟用: 父層設定 display:flex&lt;br /&gt;
&lt;br /&gt;
justify-content: flex-start , center , flex-end&lt;br /&gt;
justify-content: space-around , space-between&lt;br /&gt;
&lt;br /&gt;
資料流 橫:左到右&amp;nbsp; 直:上到下&lt;br /&gt;
&lt;br /&gt;
align-items(單行子物件) align-content(多行子物件)&lt;br /&gt;
align-items: flex-start , center , flex-end , stretch&lt;br /&gt;
&lt;br /&gt;
flex-wrap:wrap;(換行) nowrap/wrap/wrap-reverse&lt;br /&gt;
flex-direction:row; //( row/column/row-reverse/column-reverse )&lt;br /&gt;
整合flex-direction,flex-wrap&lt;br /&gt;
flex-flow:row wrap;&lt;br /&gt;
&lt;br /&gt;
align-self: flex-start;&lt;br /&gt;
&lt;br /&gt;
延展比:flex-grow&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;//剩下來的空間做分配&lt;br /&gt;
收縮比:flex-shrink&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;//&lt;br /&gt;
基本比:flex-basis&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;//控制主軸方向的長度&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/706955198599161333/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2019/01/css-flex.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/706955198599161333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/706955198599161333'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2019/01/css-flex.html' title='CSS Flex 筆記'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-3059435230757017952</id><published>2019-01-03T18:13:00.002+08:00</published><updated>2019-01-03T18:13:38.043+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="xampp"/><title type='text'>XAMPP MAC 更換Documentroot</title><content type='html'>mkdir /Users/vega/xampp&lt;br /&gt;
&lt;br /&gt;
/Applications/XAMPP/etc/httpd.conf&lt;br /&gt;
&lt;br /&gt;
DocumentRoot &quot;/Users/vega/xampp&quot;&lt;br /&gt;
&lt;directory sers=&quot;&quot; vega=&quot;&quot; xampp=&quot;&quot;&gt;&lt;/directory&gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
/Applications/XAMPP/etc/extra/http-ssl.conf&lt;br /&gt;
DocumentRoot &quot;/Users/vega/xampp/&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/3059435230757017952/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2019/01/xampp-mac-documentroot.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/3059435230757017952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/3059435230757017952'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2019/01/xampp-mac-documentroot.html' title='XAMPP MAC 更換Documentroot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-7511820801895100123</id><published>2018-11-09T18:53:00.002+08:00</published><updated>2018-11-09T18:53:42.900+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Javascript 強制轉換至https網址</title><content type='html'>&lt;br /&gt;
if (location.protocol != &#39;https:&#39;){&lt;br /&gt;
location.replace( &#39;https:&#39; + window.location.href.substring(window.location.protocol.length) );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/7511820801895100123/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2018/11/javascript-https.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/7511820801895100123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/7511820801895100123'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2018/11/javascript-https.html' title='Javascript 強制轉換至https網址'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-9041257485804492962</id><published>2018-11-01T16:32:00.000+08:00</published><updated>2018-11-01T16:32:05.084+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ckeditor"/><category scheme="http://www.blogger.com/atom/ns#" term="grocerycrud"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Grocery_crud CKEditor 客製化功能選單</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;Grocerycrud CKEditor客製化功能選單，留下常用的功能選單&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
/assets/grocery_crud/js/jquery_plusins/config/jquery.ckeditor.config.js&lt;br /&gt;
$(function(){&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$( &#39;textarea.texteditor&#39; ).ckeditor({toolbar:&#39;MyBasic&#39;});&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$( &#39;textarea.mini-texteditor&#39; ).ckeditor({toolbar:&#39;MyBasic&#39;,width:700});&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
/assets/grocery_crud/texteditor/config.js&lt;br /&gt;
CKEDITOR.editorConfig = function( config )&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CKEDITOR.config.toolbar_MyBasic =&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;[ &#39;Source&#39;,&#39;ShowBlocks&#39;,&#39;Maximize&#39;,&#39;Cut&#39;,&#39;Copy&#39;,&#39;Paste&#39;,&#39;PasteText&#39;,&#39;PasteFromWord&#39;,&#39;-&#39;,&#39;Undo&#39;,&#39;Redo&#39;,&#39;Bold&#39;,&#39;Italic&#39;,&#39;Underline&#39;,&#39;Strike&#39;,&#39;Subscript&#39;,&#39;Superscript&#39;,&#39;-&#39;,&#39;RemoveFormat&#39;],&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;/&#39;,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;[&#39;Image&#39;,&#39;Table&#39;,&#39;HorizontalRule&#39;,&#39;Link&#39;,&#39;Unlink&#39;,&#39;Anchor&#39;],&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;/&#39;,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;[&#39;Styles&#39;,&#39;Format&#39;,&#39;Font&#39;,&#39;FontSize&#39;,&#39;TextColor&#39;,&#39;BGColor&#39; ]&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;];&lt;br /&gt;
};&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/9041257485804492962/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2018/11/grocerycrud-ckeditor.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/9041257485804492962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/9041257485804492962'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2018/11/grocerycrud-ckeditor.html' title='Grocery_crud CKEditor 客製化功能選單'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-6837741973223122568</id><published>2018-09-20T16:51:00.000+08:00</published><updated>2018-09-20T16:51:51.187+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><title type='text'>css ellipsis 當字數過多時，顯示...</title><content type='html'>當字數過多時，顯示...&lt;br /&gt;
&lt;br /&gt;
.ellipsis {&lt;br /&gt;
overflow:hidden;&lt;br /&gt;
white-space: nowrap;&lt;br /&gt;
text-overflow: ellipsis;&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/6837741973223122568/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2018/09/css-ellipsis.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6837741973223122568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6837741973223122568'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2018/09/css-ellipsis.html' title='css ellipsis 當字數過多時，顯示...'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-8323202320884073652</id><published>2017-12-29T15:30:00.000+08:00</published><updated>2017-12-29T15:30:11.516+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="synology"/><title type='text'>Synology設定備忘</title><content type='html'>&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;synouser --setpw root&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/8323202320884073652/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2017/12/synology.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/8323202320884073652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/8323202320884073652'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2017/12/synology.html' title='Synology設定備忘'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-8692025302961658942</id><published>2017-12-29T15:04:00.003+08:00</published><updated>2017-12-29T15:04:45.705+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="curl"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>PHP CURL 設定筆記</title><content type='html'>&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;PHP CURL 設定筆記&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;GET&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;$ch = curl_init();&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;curl_setopt($ch, CURLOPT_URL, &quot;http://somewhere/?var=val&quot;);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;//curl_setopt($ch, CURLOPT_HEADER, false);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//不直接輸出&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;$result = curl_exec($ch);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;curl_close($ch);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;POST&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;$ch = curl_init();&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;curl_setopt($ch, CURLOPT_URL, &quot;http://somewhere/&quot;);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;curl_setopt($ch, CURL_POST, true);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;curl_setopt($ch, CURL_POSTFIELDS, http_build_query( array() ) );&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//不直接輸出&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;$result = curl_exec($ch);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;curl_close($ch);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/8692025302961658942/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2017/12/php-curl.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/8692025302961658942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/8692025302961658942'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2017/12/php-curl.html' title='PHP CURL 設定筆記'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-1722395040051259527</id><published>2017-10-05T17:55:00.001+08:00</published><updated>2020-11-20T11:24:15.194+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="dovecot"/><category scheme="http://www.blogger.com/atom/ns#" term="fail2ban"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="postfix"/><title type='text'>Debian Fail2Ban 安裝設定筆記</title><content type='html'>安裝&lt;br /&gt;
apt-get install fail2ban&lt;br /&gt;
&lt;br /&gt;
設定檔&lt;br /&gt;
/etc/fail2ban/fail2ban.conf&lt;br /&gt;
&lt;br /&gt;
check&lt;br /&gt;
logtarget = /var/log/fail2ban.log&lt;br /&gt;
&lt;br /&gt;
cp jail.conf jail.local&lt;br /&gt;
修改jail.local內容就好， 原始檔不動&lt;br /&gt;
jail.local設定會覆蓋jail.conf&lt;br /&gt;
&lt;br /&gt;
注意事項&lt;br /&gt;
ignoreip = 127.0.0.1/8 192.168.1.0/24 (空白區隔)&lt;br /&gt;
bantime = 600(秒)&lt;br /&gt;
maxretry = 10 (失敗幾次封鎖)&lt;br /&gt;
&lt;br /&gt;
增加dovecot&lt;br /&gt;
&lt;br /&gt;
[dovecot]&lt;br /&gt;
enabled = true&lt;br /&gt;
port = pop3,pop3s,imap,imaps&lt;br /&gt;
filter = dovecot&lt;br /&gt;
logpath = /var/log/dovecot (看實際 log檔放哪)&lt;br /&gt;
maxretry&amp;nbsp; = 10&lt;br /&gt;
&lt;br /&gt;
/etc/fail2ban/filter.d/dovecot.conf&lt;br /&gt;
[Definition]&lt;br /&gt;
failregex = (?: pop3-login|imap-login): .*(?:Authentication failure|Aborted login \(auth failed|Aborted login \(tried to use disabled|Disconnected \(auth failed).*rip=(?P&lt;host&gt;\S*),.*&lt;/host&gt;&lt;br /&gt;
ignoreregex =&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/etc/fail2ban/filter.d/sasl.conf&lt;/div&gt;&lt;div&gt;failregex = (?i): warning: [-._\w]+\[&amp;lt;HOST&amp;gt;\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed(: [A-Za-z0-9+/ ]*={0,2})?$&lt;/div&gt;
&lt;div&gt;
=========&lt;/div&gt;
&lt;div&gt;
測規則&lt;/div&gt;
&lt;div&gt;
Example1&lt;/div&gt;
&lt;div&gt;
fail2ban-regex /var/log/dovecot /etc/fail2ban/filter.d/dovecot.conf&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Example2&lt;/div&gt;
&lt;div&gt;
fail2ban-regex /var/log/mail.log /etc/fail2ban/filter.d/postfix.conf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Example3&lt;/div&gt;&lt;div&gt;fail2ban-regex /var/log/mail.log /etc/fail2ban/filter.d/sasl.conf&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/1722395040051259527/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2017/10/debian-fail2ban.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/1722395040051259527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/1722395040051259527'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2017/10/debian-fail2ban.html' title='Debian Fail2Ban 安裝設定筆記'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-6858278317874150034</id><published>2017-09-04T17:46:00.000+08:00</published><updated>2017-09-04T17:46:08.015+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>Git stash指令記錄</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;儲存stash(僅追蹤中已修改)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;git stash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;儲存stash(包含未追蹤)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;git stash -u&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;顯示已存的stash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;git stash list&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;讀取stash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;git stash apply&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;讀取stash (指定stash)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;git stash apply stash@{1}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;取出stash(原本stash會刪除)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;git stash pop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;刪除stash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;git stash drop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;刪除stash (指定stash)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;git stash drop stash@{1}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;清除stash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;git stash clear&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/6858278317874150034/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2017/09/git-stash.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6858278317874150034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6858278317874150034'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2017/09/git-stash.html' title='Git stash指令記錄'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-1752576479220008591</id><published>2017-06-06T14:25:00.001+08:00</published><updated>2019-04-09T14:51:38.486+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>Git 使用情境 記錄</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;*建立branch&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;$git branch NewBranch&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;*切換branch&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;$git checkout TargetBranch&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;$git co TargetBranch&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;*假設目前有二個branch叫做master與bugfix&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;*為了方便理解 我會在提示字元前面加上目前的branch名稱，例如：&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;master$ 代表目前在master 這個branch下&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;bugfix$ 代表目前在bugfix 這個branch下&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;*Merge&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;將一個branch的內容合併到另一支branch&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;EX:把bugfix的修改內容，合併到master&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;master$ git merge bugfix&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;*Rebase&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;將一個branch 基於另一支branch 合併起來&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;EX:把bugfix的修改內容，合併到master 這個branch之下&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;bugfix$ git rebase master&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;*取消上一次的操作&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;$ git reset --hard ORIG_HEAD&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;*取消已暫存的檔案&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;span style=&quot;font-size: large;&quot;&gt;不小心用add加入了stage&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;$ git add filename&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; 使用指令取消&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;$ git reset HEAD filename&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;*取消修改過的檔案(回復到本來的內容)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;$ git checkout -- filename&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;*取消目前為止修改過的檔案&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;$ git checkout .&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;*merge中發生confict,想放棄merge,要取消merge&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;$ git reset --hard 可取消這次的merge&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin: 0px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;*取消這次的merge回到merge前的狀態&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;$ git reset --hard ORIG_HEAD&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;取消最近一次成功的merge以及所有在這次merge後的修改&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;*忽略chmod的修改(chmod造成的檔案修改)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;$&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;git config core.filemode false&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;有時檔案會因為chmod的關係會讓git認為檔案已修改，造成無法順利pull&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/1752576479220008591/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2017/06/git.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/1752576479220008591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/1752576479220008591'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2017/06/git.html' title='Git 使用情境 記錄'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-7143021302478183131</id><published>2017-06-06T13:46:00.000+08:00</published><updated>2017-06-06T13:46:03.104+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>MYSQL on MAC 設定筆記</title><content type='html'>&lt;br /&gt;
/usr/local/mysql/my.cnf&lt;br /&gt;
&lt;br /&gt;
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot;; font-size: 13px;&quot;&gt;MySQL5.0.2版本中的The Server SQL Mode 中新加了幾種 sql_mode,並且在sql的my.ini文件中的sql-mode 默認增加了其中的二種,一個是STRICT_TRANS_TABLES,就是導致auto_increament失敗的mode,這個sql_mode主要用于 當一個值不能插入到表中是,則産生一個錯誤而不是一個警告並終止會話。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot;; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;verdana&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot;; font-size: 15px;&quot;&gt;#有時太小會導致寫入失敗,預設值好像才1M&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;verdana&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;tahoma&amp;quot;; font-size: 15px;&quot;&gt;max_allowed_packet = 20M&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/7143021302478183131/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2017/06/mysql-on-mac.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/7143021302478183131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/7143021302478183131'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2017/06/mysql-on-mac.html' title='MYSQL on MAC 設定筆記'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-6056767624132347895</id><published>2016-10-21T21:13:00.000+08:00</published><updated>2016-10-21T21:13:36.392+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="sublime"/><title type='text'>Sublime Text 3 安裝設定</title><content type='html'>&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
1.安裝Package Control: Ctrl + ` 貼上&lt;a href=&quot;https://packagecontrol.io/installation#st3&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;此網站&lt;/a&gt;提供的連結&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2.安裝ConvertToUTF8&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3.安裝Emmet&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4.安裝SublimeCodeIntel&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/6056767624132347895/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2016/10/sublime-text-3.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6056767624132347895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6056767624132347895'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2016/10/sublime-text-3.html' title='Sublime Text 3 安裝設定'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-7792075149121166702</id><published>2016-03-25T15:36:00.001+08:00</published><updated>2022-01-05T10:04:21.583+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="postfix"/><title type='text'>Postfix main.cf 設定檔記錄</title><content type='html'>&lt;br /&gt;
&amp;nbsp;message_size_limit = 30720000&lt;br /&gt;
bounce_queue_lifetime = 1d&lt;br /&gt;
maximal_queue_lifetime = 2d&lt;br /&gt;
queue_run_delay = 10s&lt;br /&gt;&lt;br /&gt;&lt;div&gt;#20220105 update&lt;br /&gt;&lt;div&gt;
minimal_backoff_time = 10s&lt;br /&gt;
maximal_backoff_time = 15s&lt;br /&gt;
&lt;br /&gt;
#寄出時間&lt;br /&gt;
maximal_queue_lifetime = 1d&lt;br /&gt;
#退信時間&lt;br /&gt;
bounce_queue_lifetime = 1d&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/7792075149121166702/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2016/03/postfix-maincf.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/7792075149121166702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/7792075149121166702'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2016/03/postfix-maincf.html' title='Postfix main.cf 設定檔記錄'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-6612845644053769590</id><published>2016-03-25T15:35:00.001+08:00</published><updated>2016-03-25T15:35:34.774+08:00</updated><title type='text'>Synology DS414j 安裝設定備忘 (Tomcat7+Javabridge)</title><content type='html'>&lt;br /&gt;
1.先安裝JavaManager套件 &lt;br /&gt;
&lt;br /&gt;
Java Manager可協助安裝java&lt;br /&gt;
要去下載像是這樣的檔案jdk-7u60-linux-arm-vfp-hflt.tar.gz 再上傳，它就會幫你把java安裝起來&lt;br /&gt;
2.安裝tomcat7&lt;br /&gt;
安裝時設定一個目錄名稱 取名為tomcat7&lt;br /&gt;
此目錄 /tomcat7 相當於一般tomcat的/webapps&lt;br /&gt;
將想要部署的filename.war放在這， 會自動部署產生對應之/filename目錄，之後war檔就不需要了&lt;br /&gt;
2.1相關設定檔放在 /var/packages/Tomcat7/target/src/conf&lt;br /&gt;
&lt;br /&gt;
2.2如要加額外的jar檔，把檔案複製到這(記得chmod 644)&lt;br /&gt;
&lt;br /&gt;
/var/packages/Tomcat7/target/src/lib&lt;br /&gt;
&lt;br /&gt;
2.安裝MariaDB+phpMyAdmin &lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/6612845644053769590/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2016/03/synology-ds414j-tomcat7javabridge.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6612845644053769590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6612845644053769590'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2016/03/synology-ds414j-tomcat7javabridge.html' title='Synology DS414j 安裝設定備忘 (Tomcat7+Javabridge)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-5034230158621630885</id><published>2016-03-25T15:35:00.000+08:00</published><updated>2017-12-02T16:38:25.406+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java-bridge"/><category scheme="http://www.blogger.com/atom/ns#" term="jdk"/><category scheme="http://www.blogger.com/atom/ns#" term="synology"/><category scheme="http://www.blogger.com/atom/ns#" term="tomcat7"/><title type='text'>Synology DS214Play 安裝設定備忘 (Tomcat7+Javabridge)</title><content type='html'>&lt;br /&gt;
1.先安裝JavaManager套件 &lt;br /&gt;
&lt;br /&gt;
Java Manager可協助安裝java&lt;br /&gt;
要去下載像是這樣的檔案jdk-7u60-linux-i586.tar.gz 再上傳，它就會幫你把java安裝起來&lt;br /&gt;
2.安裝tomcat7&lt;br /&gt;
安裝時設定一個目錄名稱 取名為tomcat7&lt;br /&gt;
此目錄 /tomcat7 相當於一般tomcat的/webapps&lt;br /&gt;
將想要部署的JavaBridge.war放在這， 會自動部署產生對應之/JavaBridge目錄，之後war檔就不需要了。&lt;br /&gt;
&lt;br /&gt;
2.1相關設定檔放在 /var/packages/Tomcat7/target/src/conf&lt;br /&gt;
&lt;br /&gt;
2.2如要加額外的jar檔(JavaBridge.jar, php-servlet.jar and php-script.jar)&lt;br /&gt;
把檔案複製到這&lt;br /&gt;
/var/packages/Tomcat7/target/src/lib (記得chmod 644)&lt;br /&gt;
&lt;br /&gt;
2.3 預設port7070 修改為 8080&lt;br /&gt;
/volume1/@appstore/Tomcat7/src/conf/server.xml&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.安裝MariaDB+phpMyAdmin&lt;br /&gt;
&lt;br /&gt;
重啟DB&lt;br /&gt;
/usr/syno/bin/synopkg restart MariaDB&lt;br /&gt;
&lt;br /&gt;
/etc/mysql/my.cnf&lt;br /&gt;
[mysqld]&lt;br /&gt;
skip-name-resolve&lt;br /&gt;
&lt;br /&gt;
max_allowed_packet = 256M&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SSLCertificateFile &amp;nbsp; &amp;nbsp;/etc/ssl/certs/www.tkcenter.com.crt&lt;br /&gt;
SSLCertificateKeyFile /etc/ssl/private/www.tkcenter.com.key&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
export PS1=&#39;\h:\w\$ &#39;&lt;br /&gt;
export PS1=&#39;\[\033[1;31m\]\u@\h:\w\$\033[0m\] &#39;&lt;br /&gt;
umask 022&lt;br /&gt;
&lt;br /&gt;
# You may uncomment the following lines if you want `ls&#39; to be colorized:&lt;br /&gt;
&amp;nbsp;export LS_OPTIONS=&#39;--color=auto&#39;&lt;br /&gt;
# eval &quot;`dircolors`&quot;&lt;br /&gt;
&amp;nbsp;alias ls=&#39;ls $LS_OPTIONS&#39;&lt;br /&gt;
&amp;nbsp;alias ll=&#39;ls $LS_OPTIONS -l&#39;&lt;br /&gt;
&amp;nbsp;alias l=&#39;ls $LS_OPTIONS -lA&#39;&lt;br /&gt;
#&lt;br /&gt;
# Some more alias to avoid making mistakes:&lt;br /&gt;
# alias rm=&#39;rm -i&#39;&lt;br /&gt;
# alias cp=&#39;cp -i&#39;&lt;br /&gt;
# alias mv=&#39;mv -i&#39;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;alias h=&#39;cd ~;ll&#39;&lt;br /&gt;
&amp;nbsp;alias u=&#39;cd ..&#39;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;alias aptg=&#39;apt-get install&#39;&lt;br /&gt;
&amp;nbsp;alias aptr=&#39;apt-get remove&#39;&lt;br /&gt;
&amp;nbsp;alias aptu=&#39;apt-get update&#39;&lt;br /&gt;
&amp;nbsp;alias aptc=&#39;apt-get clean&#39;&lt;br /&gt;
&amp;nbsp;alias apts=&#39;apt-cache search&#39;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;alias n=&#39;netstat -ntl&#39;&lt;br /&gt;
&amp;nbsp;alias df=&#39;df -BMB&#39;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/5034230158621630885/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2016/03/synology-ds214play-tomcat7javabridge.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/5034230158621630885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/5034230158621630885'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2016/03/synology-ds214play-tomcat7javabridge.html' title='Synology DS214Play 安裝設定備忘 (Tomcat7+Javabridge)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-4659563693677744053</id><published>2016-03-25T15:33:00.000+08:00</published><updated>2020-01-22T10:19:32.389+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="macbook"/><title type='text'>我的MacBook 初始設定</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,;&quot;&gt;&lt;span style=&quot;background-color: #f4f5f7; line-height: 21.6000003814697px;&quot;&gt;顯示隱藏檔&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,;&quot;&gt;&lt;span style=&quot;background-color: #f4f5f7; line-height: 21.6000003814697px;&quot;&gt;command line:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;defaults write com.apple.finder AppleShowAllFiles TRUE &amp;amp;&amp;amp; killall Finder&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;strong style=&quot;color: #666666; font-family: helvetica, arial, sans-serif, pmingliu; font-size: 15px; line-height: 24px; word-wrap: break-word;&quot;&gt;顯示隱藏檔案：&lt;/strong&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif , &amp;quot;pmingliu&amp;quot;; font-size: 15px; line-height: 24px; word-wrap: break-word;&quot;&gt;defaults write com.apple.finder AppleShowAllFiles TRUE;\killall Finder&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;color: #666666; font-family: helvetica, arial, sans-serif, pmingliu; font-size: 15px; line-height: 24px; word-wrap: break-word;&quot;&gt;不顯示隱藏檔案：&lt;/strong&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif , &amp;quot;pmingliu&amp;quot;; font-size: 15px; line-height: 24px; word-wrap: break-word;&quot;&gt;defaults write com.apple.finder AppleShowAllFiles FALSE;\killall Finder&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,;&quot;&gt;&lt;span style=&quot;background-color: #f4f5f7; line-height: 21.6000003814697px;&quot;&gt;將iTunes備份移到別顆硬碟&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;/Users/使用者名稱/Music/iTunes/iTunes Media&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;/Users/使用者名稱/Library/Application Support/MobileSync&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;ln -s /Volumes/500G/MobileSync /Users/&lt;/span&gt;&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;使用者名稱&lt;/span&gt;&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;/Library/Application\ Support/MobileSync&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4f5f7; font-family: &amp;quot;lato&amp;quot; , &amp;quot;arial&amp;quot; ,; line-height: 21.6000003814697px;&quot;&gt;&lt;span style=&quot;line-height: 21.6px;&quot;&gt;ln -s /Volumes/500G/MobileSync /Users/vega&lt;/span&gt;&lt;span style=&quot;line-height: 21.6px;&quot;&gt;/Library/Application\ Support/MobileSync&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;ln -s /Volumes/500G/iTunes\ Media/ ./iTunes\ Media&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;ln -s /Volumes/500G/iTunes\ Media/&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #f4f5f7;&quot;&gt;/Users/vega/Music/iTunes/&lt;/span&gt;iTunes\ Media&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
MacOS Sierra&lt;br /&gt;
允許安裝任何來源&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;
sudo spctl --master-disable&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;1. jdk.dmg&lt;br /&gt;
2. download tomcat&lt;br /&gt;
3. move tomcat folder to /usr/local&lt;br /&gt;
4. sudo ln -s /usr/local/tomcat &amp;nbsp;/Library/Tomcat&lt;br /&gt;
5. sudo chown -R vega /Library/Tomcat&lt;br /&gt;
6. sudo chmod +x /Library/Tomcat/bin/*.sh&lt;br /&gt;
7. /Library/Tomcat/bin/startup.sh&lt;br /&gt;
&lt;br /&gt;
1. apachectl start&lt;br /&gt;
/Library/WebServer/Documents&lt;br /&gt;
&lt;br /&gt;
2. /etc/apache2/httpd.conf&lt;br /&gt;
#LoadModule php5_module libexec/apache2/libphp5.so&lt;br /&gt;
#LoadModule rewrite_module libexec/apache2/mod_rewrite.so&lt;br /&gt;
User 你的用戶名&lt;br /&gt;
Group staff&lt;br /&gt;
&lt;br /&gt;
mysql&lt;br /&gt;
&lt;br /&gt;
cd /var&lt;br /&gt;
mkdir mysql&lt;br /&gt;
cd mysql&lt;br /&gt;
ln -s /tmp/mysql.sock mysql.sock&lt;br /&gt;
&lt;br /&gt;
ALTER USER &#39;root&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;MyNewPass&#39;;&lt;br /&gt;
&lt;br /&gt;
grant all privileges on *.* to &#39;vega&#39;@&#39;localhost&#39; identified by &#39;vega&#39; with grant option;&lt;br /&gt;
grant all privileges on *.* to &#39;vega&#39;@&#39;%&#39; identified by &#39;vega&#39; with grant option;&lt;br /&gt;
flush privileges;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
.profile&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;export PS1=&#39;\[\033[1;31m\]\u@\h:\w\$\033[0m\] &#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;export PS1=&#39;\[\033[1;31m\]\u@\h:\w\$ \[\033[0m\]&#39;&amp;nbsp; #ubuntu works&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;umask 022&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias ls=&#39;ls -la&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias ll=&#39;ls -la&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias l=&#39;ls -lAa&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias h=&#39;cd ~;ll&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias u=&#39;cd ..&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias n=&#39;netstat -ntl&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;#alias df=&#39;df -BMB&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias sudo=&#39;sudo -i&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;.profile root&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias tomcaton=&#39;/usr/local/tomcat/bin/startup.sh&#39;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;s1&quot;&gt;








&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias tomcatoff=&#39;/usr/local/tomcat/bin/shutdown.sh&#39;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/4659563693677744053/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2016/03/macbook.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/4659563693677744053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/4659563693677744053'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2016/03/macbook.html' title='我的MacBook 初始設定'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-6596874863896678164</id><published>2016-03-25T15:32:00.002+08:00</published><updated>2019-05-14T11:17:27.957+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="sublime"/><title type='text'>Sublime Text 3 設定調校</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;CMD+SHIFT+P&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;編輯Preferences.sublime-settings &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;bold_folder_labels&quot;: true,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;caret_style&quot;: &quot;phase&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;fade_fold_buttons&quot;: false,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;font_size&quot;: 15,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;highlight_line&quot;: true,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;ignored_packages&quot;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&quot;Vintage&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;],&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;line_padding_bottom&quot;: 1,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;line_padding_top&quot;: 1,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;tab_size&quot;: 2,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;translate_tabs_to_spaces&quot;: false,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;update_check&quot;: false,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&quot;wide_caret&quot;: true&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;//key binding&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;keys&quot;: [&quot;ctrl+y&quot;],&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;command&quot;: &quot;show_overlay&quot;,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;args&quot;: {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;overlay&quot;: &quot;command_palette&quot;,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;text&quot;: &quot;Snippet: &quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/6596874863896678164/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2016/03/sublime-text-3.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6596874863896678164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6596874863896678164'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2016/03/sublime-text-3.html' title='Sublime Text 3 設定調校'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-6342725250886603938</id><published>2016-03-25T15:29:00.001+08:00</published><updated>2016-03-25T15:29:37.809+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="synology"/><title type='text'>Git on Synology Note</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span style=&quot;font-size: 20pt; line-height: 24pt;&quot;&gt;Git on Synonogy Note&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;/volume1/git/project.git&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;初始化&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;git --bare init&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;chmod 700 config&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;chown -R git:users *&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;URL:ssh://git@ip:/volume1/git/project.git&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;建立新&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;branch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;git branch NewBranchName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;切換&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;branch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;git checkout BranchName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;merge&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;merge somebranch&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;到&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;master&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;在&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;master&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;下&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;git merge somebranch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;將二個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;branch&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;所做的修改合併至&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;master&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;產生一個新的&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;commit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;當&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;master&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;與&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;somebranch&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;處於同一個&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;commit&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;時，就可以把&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;somebranch&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 20.0pt; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 新細明體; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&quot;&gt;刪除&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 24.0pt; mso-line-height-rule: exactly;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 20.0pt;&quot;&gt;git branch -d somebranch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/6342725250886603938/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2016/03/git-on-synology-note.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6342725250886603938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/6342725250886603938'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2016/03/git-on-synology-note.html' title='Git on Synology Note'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-4914781292984172735</id><published>2015-04-21T09:27:00.000+08:00</published><updated>2015-04-21T09:27:36.316+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dell"/><category scheme="http://www.blogger.com/atom/ns#" term="esxcli"/><category scheme="http://www.blogger.com/atom/ns#" term="esxi"/><category scheme="http://www.blogger.com/atom/ns#" term="r730"/><title type='text'>DELL R730 增加SSD CACHE</title><content type='html'>&lt;br /&gt;找出SSD硬碟ID&lt;br /&gt;esxcli storage core path list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;1.esxcli storage nmp satp rule add --satp VMW_SATP_LOCAL --device &lt;span style=&quot;color: #cc0000;&quot;&gt;naa.6b083fe0e8f4ad001c468d8a6c55f0bd&lt;/span&gt; --option=enable_ssd&lt;br /&gt;&lt;br /&gt;2.esxcli storage nmp satp rule list | grep enable_ssd &lt;br /&gt;&lt;br /&gt;3.esxcli storage core claiming reclaim -d &lt;span style=&quot;color: #cc0000;&quot;&gt;naa.6b083fe0e8f4ad001c468d8a6c55f0bd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4.vim-cmd hostsvc/storage/refresh&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/4914781292984172735/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2015/04/dell-r730-ssd-cache.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/4914781292984172735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/4914781292984172735'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2015/04/dell-r730-ssd-cache.html' title='DELL R730 增加SSD CACHE'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8776042038957292513.post-5729351611255134408</id><published>2014-11-04T09:40:00.002+08:00</published><updated>2014-11-04T09:50:01.921+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="thunderbird"/><title type='text'>Thunderbird 郵件備份相關</title><content type='html'>&lt;span style=&quot;color: #990000; font-size: large;&quot;&gt;1.於Thunderbird內建目錄 testfolder ， 會產生 testfolder,testfolder.msf 二個檔案。&lt;br /&gt;2.於Thunderbird內test下建子目錄並放入郵件 ，會產生test.sbd目錄(如裡面沒有郵件則不會產生)。&lt;br /&gt;3.要移mail時copy test跟test.msf二個檔案，.msf檔不一定要有，會自動生成。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #990000; font-size: large;&quot;&gt;郵件檔位置&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-size: large;&quot;&gt;Thunderbird\Data\profile\Mail\Local Folders&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vega02.blogspot.com/feeds/5729351611255134408/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://vega02.blogspot.com/2014/11/thunderbird.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/5729351611255134408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8776042038957292513/posts/default/5729351611255134408'/><link rel='alternate' type='text/html' href='http://vega02.blogspot.com/2014/11/thunderbird.html' title='Thunderbird 郵件備份相關'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>