跳到主要內容

發表文章

飛碟 FT-1000BS ViewPower in OSX

剛買了這台 UPS "飛碟 FT-1000BS",在 High Sierra 裝完 ViewPower v2.14 SP1 後, tomcat web 介面可以開啟但似乎沒有從 USB 收到任何 UPS 的資料。 查了一下 osx 的 log, 發現 ViewPower 安裝程式會偷偷用 sudo 下三行 command 但是失敗 "incorrect password attempt ;" /bin/cp -f -r /Applications/ViewPower2.15/UPSVendor.kext /System/Library/Extensions/ /bin/cp -f -r /Applications/ViewPower2.15/jre/libusb-1.0.0.dylib /System/Library/Extensions/ /bin/cp -f -r /Applications/ViewPower2.15/jre/ /Library/Java/Extensions 手動把 driver copy 到相關位置就好了,看來 ViewPower installer 是假設使用者會剛好用過 sudo 有 cache password? XDDD

universal build machine: holy build box

今天看到同事分享說有這種東西: https://github.com/phusion/holy-build-box 一看之下驚為天人,我覺得這真的很有搞頭啊... 對於一個目前有 RedHat 6 / RedHat 7 / Ubuntu 12 / Ubuntu 14 / Ubuntu 16 / Debian 7 / Debian 8 / Amazon Linux / Oracle Linux 5 / Oracle Linux 6 / Cloud Linux 5 / Cloud Linux 6 / Cloud Linux 7 可能要去支援的 agent 程式而言,(BTW Debian 9 也要 release 了...),光是這些 build machine 的 maintain 和單純 build 的測試就可以讓整個 R&D 花費無數光陰在這些不一定有辦法全部一一 build 過的 platform 上面.... 對於客戶的價值是什麼?只要下載 / 匯入 一個 agent 聽起來就很酷啊!

docker run cmd with pipe broken?

半年多前放在 github 裡的 build container Dockerfile 突然有同事拿去用,但我很多細節都忘光了XD 記得之前是用 bind mount 的方式將 git repository 掛進 container 裡面,然後再用 git archive HEAD | tar -x -C /tmp 將 git repository export 到 container 的 tmp 目錄再開始 build 不知道為什麼如果在 host 用一行的方式去執行 tar 會說 broken archive... docker run -it -v $(pwd):/mnt/repo -w /mnt/repo mybuild:latest git archive HEAD | tar -x -C /tmp && cd /tmp && make 但是在 container 裡面執行 archive 再 pipe 給 tar 又都沒問題... 最後是在 Dockerfile 裡用 CMD 執行 default command,這樣也沒問題.... docker run -it -v $(pwd):/mnt/repo -w /mnt/repo mybuild:latest

Disable SMBv1 to avoid EternalBlue exploit in Windows 7

Disable SMBv1 server from windows 7: Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 0 -Force Disable SMBv1 client from windows 7: sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi sc.exe config mrxsmb10 start= disabled References: https://www.saotn.org/disable-smbv1-windows-10-windows-server/  https://github.com/RiskSense-Ops/MS17-010/blob/master/exploits/eternalblue/ms17_010_eternalblue.rb

VMware Linux Guest Introspection Driver

VMware NSX for vSphere 6.3:  Install Guest Introspection for Linux vmware-nsx-gi-file depends on fanotify and vm_vmci kernel modules. Linux Kernel - fanotify 更全面性的檔案監控機制 RFC: VMCI for Linux KB 2073804: VMware support for Linux inbox VMware drivers

Getting start with Golang!

#Get started with Go https://talks.golang.org/2012/tutorial.slide#1 #Go for C programmers https://talks.golang.org/2012/goforc.slide#1 #Share Memory By Communicating https://blog.golang.org/share-memory-by-communicating #Codewalk: Share Memory By Communicating https://golang.org/doc/codewalk/sharemem/ #Go Concurrency Patterns: Timing out, moving on https://blog.golang.org/go-concurrency-patterns-timing-out-and #Go Language for Ops and Site Reliability Engineering https://talks.golang.org/2013/go-sreops.slide#1 #Go Dynamic Tools https://talks.golang.org/2015/dynamic-tools.slide#1 #Program your next server in Go https://talks.golang.org/2016/applicative.slide#1 #HTTP/2 Server Push https://blog.golang.org/h2push #gRPC Basics - Go http://www.grpc.io/docs/tutorials/basic/go.html #Go talks https://talks.golang.org/

[MV] 我心中尚未崩壞的地方

有天發現自己竟然成了片場裡的小丑。 小丑幸運的走上了舞台還發現了光。 但光是短暫會熄滅的,只能不停的尋找更大更亮的光。 小丑找到越來越亮的光,直到被強光灼傷.... 受傷的小丑又找到了一種淡淡的光,卻還是熄滅了。 最後小丑發現其實即使沒有光,只要他想表演,哪裡就是他的舞台。 小丑是在追求光,還是在尋找舞台?