PIXNET Logo登入

Pilla 技術宅

跳到主文

技術宅的雜物空間 讓技術宅在遙遠的未來找回可能被遺忘的東西

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 5月 29 週五 201514:58
  • 如何重導(redirect)網址

直接使用javascript的話, 我們可以這樣寫:


window.location = "url_to_redirect";

(繼續閱讀...)
文章標籤

Perry Wu 發表在 痞客邦 留言(0) 人氣(289)

  • 個人分類:常用指令區
▲top
  • 5月 23 週六 201506:13
  • Flooding Test Commands

* UDP Flooding - Dst

hping3 -I eth1 --udp --rand-source 192.168.1.100


(繼續閱讀...)
文章標籤

Perry Wu 發表在 痞客邦 留言(0) 人氣(123)

  • 個人分類:常用指令區
▲top
  • 5月 03 週日 201520:45
  • GIT常用指令


從remote複製整個git到local

git clone --mirror git@[IP:/Path_to_git]



在mirror的git repository 同步所有remote的修正

git fetch -q --all -p


git push



將遠端的 branch checkout 回來並建立一個新的 local branch,加上 --track 表示你之後還要pull、push回去,所以請 Git 記住對應關係。

git checkout --track -b foobar origin/foobar



刪除local branch

git branch -d local_branch



刪除remote branch

git push origin :remote_branch



若是remote已經沒有該branch但local還是看得到remote的branch

git fetch -all -p



在Git Server端建新的Git repository

mkdir xxx.git


cd xxx.git


git init --bare



在Client端新建立的程式上傳至remote

cd new_program


git init


git add .


git commit


git remote add origin git@192.168.100.10:/git/xxx.git


git push -u origin master



建立Tag 並推到remote上

git tag -a v1.0.0 -m "some messages"


git push origin --tags



(繼續閱讀...)
文章標籤

Perry Wu 發表在 痞客邦 留言(0) 人氣(391)

  • 個人分類:常用指令區
▲top
  • 5月 03 週日 201520:23
  • Curl 常用指令

* 使用basic認證 帳號:密碼

curl --user user:password http://192.168.101.192/


(繼續閱讀...)
文章標籤

Perry Wu 發表在 痞客邦 留言(0) 人氣(14,461)

  • 個人分類:常用指令區
▲top
1

文章分類

toggle 工具間 (3)
  • javascript (2)
  • 常用指令區 (4)
  • 開發工具 (5)
toggle 雜物間 (1)
  • 網路應用 (1)
toggle Pilla (2)
  • Node.js (14)
  • RaspberryPi (6)
  • 未分類文章 (1)

最新文章

  • [Node.js] Express Session&Cookie的定義
  • 如何重導(redirect)網址
  • 保護你的OAuth Secrets
  • 在Heroku上佈署node.js
  • [Node.js] 在Express上使用https
  • [RPI] 安裝telegram測試
  • [研究] 瞭解Node.js上達成Reverse Proxy的方式
  • Flooding Test Commands
  • 提交開發的NPM包
  • [RPI2] 修改/usr/bin/bluez-simple-agent 改成DisplayYesNo才可以配對?

個人資訊

Perry Wu
暱稱:
Perry Wu
分類:
不設分類
好友:
累積中
地區:

熱門文章

  • (14,461)Curl 常用指令
  • (11,151)使用googleapis存取google的服務
  • (6,893)Linux Locale設定
  • (2,750)[Node.js] 在Express上使用https

最新留言

    文章精選

    文章搜尋

    誰來我家

    參觀人氣

    • 本日人氣:
    • 累積人氣: