lvm 筆記

在 kickstart 的範例 # System bootloader configuration bootloader –append=” crashkernel=auto” –location=mbr –boot-drive=sda # Partition clearing information clearpart –all –initlabel –drives=sda part /boot –fstype ext4 –size=1024 part pv.01 –size=1000 –grow –ondisk=sda volgroup vg00 pv.01 logvol / –vgname=vg00 –fstype=xfs –size=40960 –name=lv_root logvol swap –vgname=vg00 –fstype=swap –size=32768 –name=lv_swap logvol /data –vgname=vg00 –fstype=xfs –size=10000 …

swift 4 – 國曆轉農曆

let dateAt: String = “2016/1/1” let dateFormatter: DateFormatter = DateFormatter() dateFormatter.dateFormat = “yyyy/MM/dd” let dateComps: NSDateComponents = NSCalendar(calendarIdentifier: NSCalendar.Identifier.chinese)!.components([.year, .month, .day], from: dateFormatter.date(from: dateAt)!) as NSDateComponents print(“\(dateAt) => Chinese calendar date (Lunar): \(dateComps.month)/\(dateComps.day)”) 之前的 swift – 國曆轉農曆 已經不能用了

ubuntu 設定 時間 locale

$ localectl set-locale LC_TIME=en_US.UTF-8 變成 super user 後再更新一下 # update-locale en_US.UTF-8 然後打 locale 就可以看到結果 LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE=”en_US.UTF-8″ LC_NUMERIC=”en_US.UTF-8″ LC_TIME=en_US.UTF-8 LC_COLLATE=”en_US.UTF-8″ LC_MONETARY=”en_US.UTF-8″ LC_MESSAGES=”en_US.UTF-8″ …

建立 macOS High Sierra 開機 USB

sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/UNTITLED –applicationpath /Applications/Install\ macOS\ High\ Sierra.app

lustre el7 add repo

# vi /etc/yum.repos.d/lustre.repo [lustre-server] name=lustre-server baseurl=https://downloads.hpdd.intel.com/public/lustre/latest-release/el7/server # exclude=*debuginfo* gpgcheck=0 [lustre-client] name=lustre-client baseurl=https://downloads.hpdd.intel.com/public/lustre/latest-release/el7/client # exclude=*debuginfo* gpgcheck=0 [e2fsprogs-wc] name=e2fsprogs-wc baseurl=https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el7 # exclude=*debuginfo* gpgcheck=0

python pip

一直認為自己編譯比較好,所以都不太想用 pip,後來用了之後就覺得回不去了 XD # python -mpip install -U pip # python -mpip install -U matplotlib 覺得有人做好車子,幹嘛自己做輪子 XD 同場加映 # pip3.6 –proxy http://YOUR_PROXY_SERVER:3128 …