Skip to content

Instantly share code, notes, and snippets.

View mritd's full-sized avatar

mritd mritd

View GitHub Profile
@mritd
mritd / Monaco.otf
Last active September 30, 2021 13:34
Synced via Snip
This file has been truncated, but you can view the full file.
OTTO
� CFF ���x�׍DSIGU�OS/2�K�(`cmap���M\@�head�Զ��6hhea
v�$hmtx�S�pZ�maxp�Pname�lc�P\post���Up b�_<�^�ŀ�}����� = ��� =��� =oP��������2���P9�pyrs����� �^ �O] ��������G�������������G�������!�G�������0���f�����G�����G�G�G����!���v�������v�~���n�����8�~�G���G�����0�~�!��0�4�z�c�!�C�G�G�@�f�����r�����r���������y�G���W���r�����`���!��8� ������~�8�!�!�v���~�G�~�f�f�f�f�f�f���������������������W�W�W�W�W�����������W�v�����b�W������@��G��G�G�G�G�G�4�z�@�[�!�0�������!�?�W�����G
@mritd
mritd / vmctl.sh
Last active January 27, 2021 06:13
VMware Fusion helper tool
#!/usr/bin/env bash
set -e
VMP_DIR=${VMP_DIR:-"/Volumes/Data/vms"}
main(){
if [ "${1}" == "" ]; then
print_help
exit 0
@mritd
mritd / open_editor.go
Created September 7, 2021 04:09
open os editor
func openEditor() (string, error) {
f, err := ioutil.TempFile("", "gitflow-toolkit")
if err != nil {
return "", err
}
defer func() {
_ = f.Close()
_ = os.Remove(f.Name())
}()
@mritd
mritd / k3s-etcd-commands.md
Created January 26, 2022 07:31 — forked from superseb/k3s-etcd-commands.md
k3s etcd commands

k3s etcd commands

etcd

Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin):

Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER below accordingly:

curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version
@mritd
mritd / Apple_Maps.sgmodule
Last active May 27, 2022 17:39
Surge Modules
#!name= Redirect Apple Maps to 🇺🇸US
#!desc=只作用于Apple Maps,不修改定位服务和地区检测,可以通过搭配使用其他模块达成混合效果。
[URL Rewrite]
# Redirect Apple Maps to US
(^https?:\/\/gspe\d*-ssl\.ls\.apple\.)(com|cn)(\/.*)(country_code=[A-Z]{2})(.*) $1$2$3country_code=US$5 header
(^https?:\/\/gspe\d*-ssl\.ls\.apple\.)(com|cn)(\/.*)(environment=[a-z/-]{4,})(.*) $1$2$3environment=prod$5 header
[MITM]
hostname = %APPEND% gspe35-ssl.ls.apple.com