2016年7月19日 星期二

政治人物之日常

最近越來越常看到政治人物整天在facebook po文章治國,連蔡英文作總統也是,政策透明度是好的,但本末倒置實在無法讓人認同

2016年7月13日 星期三

1.Add cron cartridge to your app

#rhc cartridge add  cron -a <APP>

2.update your git folder

#cd ~/<APP>
#git pull
#cd .openshift/cron

3.you will see there are fore directory for schedule jobs

Tree view
Figure 1. cron directory

4.put your execute script in this folder and add it to jobs.allow

5.Once doen you can just use "git push" to trigger openshift auto deployment

2016年7月12日 星期二

從一銀ATM盜領事件看資訊安全到底有多脆弱

原始新聞事件:一銀ATM 盜領事件

這個病毒基本上已經在國外橫行了一兩年了,病毒名字叫做”Tyupkin” ,你可以用這當關鍵字找他很多網路上的連結

實際上的手法,根據報導形容是會插入一個USB driver  然後重開機ATM 進入維修模式(Maintenance mode)  這時候

只要一些簡單的案件操作就可以讓ATM 自己吐鈔,在github 上面也有人放了一些Binary 的sample code 以供研究

不會太難搜尋

 

2016/07/13 更新

調查局已經找到有問題的可疑程式了,分別為

@三個執行檔

cngdisp.exe(658B0502B53F718BD0611A638DFD5969)、

cnginfo.exeC0105ADA8686DC537A64919C73A18DB7) ===>這二個執行檔都是與吐鈔功能有關;

sdelete.exe(C74673589D5DD38B6443DA6054B8DD7A)==>則是在提款機吐鈔後刪除植入程式。目前調查局仍在試圖恢復檔案中。

cleanup.bat,檔案大小僅1kb的批次檔 , 用在指揮sdelete.exe刪除執行檔。

 

A free Cloud VM for simple service : openshift

I have used this service more than 1 years.   It was contributed  by Redhat.

You can get 1 free domain with 3 apps.   In the beginning, I just used it as web server 

to host some testing  machine.  Recently, I use it to do some backend jobs.

 

Some basic operations for my personal memories.

1. rhc  apps  :   it will show your apps information, include ssh remote information.

You can select some suitable cartridge ( like vm templates )  and deploy it to open shift.

2.get your code.

   #git clone   git:/xxxxxxxxxx

3.remote access

#ssh   xxxxx@xxx.com  ( you can get it for above folder.

 

 

2016年7月11日 星期一

python graph tool

brew install boost —with-python
brew install boost-python —with-python

brew -v install --with-icu4c --build-from-source --with-c++11 boost brew -v install --with-icu4c --build-from-source --with-c++11 boost-python brew -v install --build-from-source graph-tool --without-scipy --without-matplotlib --without-numpy

export CPPFLAGS=“-I/Volumes/MacintoshHD/usr/local/Cellar/boost/1.60.0_2/include/ -L/Volumes/MacintoshHD/usr/local/Cellar/boost/1.60.0_2/include/lib"


2016年7月8日 星期五

[MAC] 檔案屬性後面顯示@,代表什麼意思?

以前都沒注意過,最近來發現,用ls -al *會看到有些檔案的後面帶有小老鼠@<

查了一下,是因為有附加的額外屬性,所以可以使用xattr把它讀出來,也可以使用xattr -d 把額外檔案屬性砍掉

## ls -al 

rwxrwxr-x 19 linamos staff 714 7 8 12:44 ..
-rw-r--r--@ 1 linamos admin 10244 7 8 12:59 .DS_Store
-rw-r--r--@ 1 linamos admin 292323574 6 6 01:04 DynaDump-Test.7z
drwxr-xr-x 34329 linamos admin 1167186 6 17 17:16 DynaDump-Train

 

 

## xattr DynaDump-Test.7z

#  xattr DynaDump-Test.7z
com.apple.metadata:kMDItemDownloadedDate
com.apple.metadata:kMDItemWhereFroms
com.apple.quarantine

How to restore a deleted onenote page

復原不小心誤刪的onenote