Split file into per file 1024MB
split -b 1024M -d foo.tar.xz foo.tar.xz-
foo.tar.xz-00 1024MB
foo.tar.xz-01 1024MB
...
Merge pieces to large file
cat foo.tar.xz-* > foo.tar.xz
Split file into per file 1024MB
split -b 1024M -d foo.tar.xz foo.tar.xz-
foo.tar.xz-00 1024MB
foo.tar.xz-01 1024MB
...
Merge pieces to large file
cat foo.tar.xz-* > foo.tar.xz
Trouble Shooting:
% bundle install
Your Ruby version is 2.6.3, but your Gemfile specified 2.7.4
or
Your Ruby version is 2.6.8, but your Gemfile specified 2.7.5
Windows下使用Firefox看Youtube影片時,用工作管理員觀察,發現GPU的使用率都為0,但如果用Chrome則會使用到GPU。最後發現以about:config進行修改,就可以讓Firefox使用GPU 加速影片decoding。
壓縮比例
-mx=5
可填入數值0(封存),1,3,5(預設),7,9(最大壓縮比)
壓縮檔案分割大小
-v650m
可填入單位b(bytes),k(KB),m(MB),g(GB)
範例:
封存Source目錄,以650MB分割壓縮檔,以aaa.7z為壓縮檔名
7z a -mx=0 -v650m aaa.7z Source
在命令列模式下使用MSBuild下載Nuget套件(Restore NuGet packages in command line)
msbuild version > 16.5
專案中有packages.config檔案
在有.sln檔案的路徑,執行以下命令即可
msbuild -t:restore -p:RestorePackagesConfig=true
Reference:
https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore#restore-using-the-nugetexe-cli
Firefox 顯示Serif字型時,英文粗體會出現直線/豎線/pipeline,影響觀看
$ fc-match serif
uming.ttc: "AR PL UMing TW" "Light"
修正方式如下:
建立~/.config/fontconfig/conf.d/50_priority.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="family" qual="any">
<string>serif</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>DejaVu Serif</string>
</edit>
</match>
</fontconfig>
關閉Firefox再重開,即可修正Serif字型顯示問題
$ nslookup
> server YOUR_LOCAL_DNS_SERVER_IP (EX: 192.168.1.1)
Default server: 192.168.1.1
Address: 192.168.1.1#53
> set type=any
> _ldap._tcp.dc._msdcs.DOMAIN_NAME (EX:abc.com.local)
Server: 192.168.1.1
Address: 192.168.1.1#53
_ldap._tcp.dc._msdcs.abc.com.local service = 0 100 389 ad02.abc.com.local.
> ad02.abc.com.local
Server: 192.168.1.1
Address: 192.168.1.1#53
Name: ad02.abc.com.local
Address: 192.168.1.30
Reference:https://www.tecknowledgebase.com/6383/how-you-can-find-out-the-name-and-ip-address-of-the-ad-domain-controller-on-your-network/