[[Qichunren工作日志]]

How to make Git ignore files that already exist in your project

<pre>
git update-index --assume-unchanged my_local_file
</pre>

Phone Call Object

unicast
<pre>
# contact: "<sip:1111@192.168.10.52>"
# conv_type: "unicast"
# des: "<sip:0005@192.168.11.195:5060>"
# from: "<sip:1111@192.168.11.195:5060>"
# id: 15
# is_conf: false
# m_start_time: 1347705701
# origin: ""
# pri: 1
# reason: "LinphoneReasonNone"
# remote_ua: "FreeSWITCH-mod_sofia/1.2.1+git~20120910T092012Z~405c4c1397"
# route: ""
# start_time: 1347705695
# state: "LinphoneCallStreamsRunning"
# to: "<sip:0005@192.168.11.195:5060>"
</pre>


[[Theme Resources]]





== 
<p>Install Luna Freeswitch
</p>
<pre>
wget http://192.168.8.28:81/lunafs-release/latest_lunafs_with_sound_release.deb
sudo dpkg -r lunafs_with_sound_release
sudo dpkg -i lunafs_with_sound_release
</pre>


==== Postgres ====

Mac启动postgres: <pre>pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start</pre>



==== Update Linphone ====
NT: 
<pre>
cd /tmp && rm -rf latest_linphone* && wget http://192.168.8.28:81/luna-linphone/latest_linphone.deb &&sudo dpkg -r lunalinphone &&sudo dpkg -i latest_linphone.deb && sudo ldconfig && echo "Finished."
</pre>
ITC:
<pre>
cd /tmp && rm -rf latest_linphone* && wget http://10.0.1.28:81/luna-linphone/latest_linphone.deb &&sudo dpkg -r lunalinphone &&sudo dpkg -i latest_linphone.deb && sudo ldconfig && echo "Finished."
</pre>

==== Update Freeswitch ====
NT:
<pre>
cd /tmp && rm latest_lunafs_with_sound_release.deb;  wget http://192.168.8.28:81/lunafs-release/latest_lunafs_with_sound_release.deb &&sudo dpkg -r lunafs-with-sound-release &&sudo dpkg -i latest_lunafs_with_sound_release.deb && echo "Finished."
</pre>
ITC:
<pre>
cd /tmp && rm latest_lunafs_with_sound_release.deb;  wget http://10.0.1.28:81/lunafs-release/latest_lunafs_with_sound_release.deb &&sudo dpkg -r lunafs-with-sound-release &&sudo dpkg -i latest_lunafs_with_sound_release.deb && echo "Finished."
</pre>



<pre>
#!/usr/bin/env /home/c2h2/.rbenv/shims/ruby
modified_files = `cd /media/sf_code/work/luna-server;git status| grep modified| awk '{print $3}'`.split("\n")
modified_files.delete("Gemfile.lock")
modified_files.each do |modify_file|
  puts "Sync file: #{modify_file}"
  `cp /media/sf_code/work/luna-server/#{modify_file} /www/luna-server/#{modify_file}`
end if modified_files.size > 0

puts "Finished."
</pre>

查看端口信息：

netstat -nae | grep 5080

查看linphone注册信息

linphonecsh generic 'status register'


http://eugenkiss.com/blog/2011/git-branch-in-terminal/

[[Make a  Package Repository Server]]


[[WEB Developer Interview]]