Skip to content

Instantly share code, notes, and snippets.

View soulmachine's full-sized avatar

Frank Dai soulmachine

View GitHub Profile
@soulmachine
soulmachine / cloudSettings
Last active May 13, 2022 00:40
Visual Studio Code Settings Sync, for Node.js, TypeScript, Python, Go, C++ and Rust. Install this extension https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync, fill in this gist ID, then everything will be installed automatically
{"lastUpload":"2022-03-23T11:50:25.185Z","extensionVersion":"v3.4.3"}
@soulmachine
soulmachine / _install.sh
Created June 25, 2018 05:34 — forked from marklit/_install.sh
Find the cheapest availability zone across all regions for an EC2 spot instance type
pip install sh
@soulmachine
soulmachine / manual-uninstall-paragon-ntfs.sh
Created December 12, 2017 15:00 — forked from guycalledseven/manual-uninstall-paragon-ntfs.sh
Manually remove Paragon NTFS v15 leftovers MacOS
# Just delete .config and .support in folder "/Library/Application Support/Paragon Software/"
# then you will get an another 10 days trial.
# after appcleaner does his magic, do this
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
@soulmachine
soulmachine / gist:752fb4ebfd2c9b6d6470928cb194855f
Created February 1, 2017 22:57 — forked from zythum/gist:2848881
google收录的敏感词
@soulmachine
soulmachine / gist:a61b5d3f690b117b037c9654623bd451
Created September 9, 2016 06:16 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@soulmachine
soulmachine / ubuntu-mount-new-disk.md
Created August 17, 2016 08:42 — forked from gaoyifan/ubuntu-mount-new-disk.md
ubuntu 添加新硬盘

ubuntu 添加新硬盘

查看硬盘:

# fdisk -l
...
Disk /dev/sdb: 274.9 GB, 274877906944 bytes
255 heads, 63 sectors/track, 33418 cylinders, total 	536870912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes