Skip to content

Instantly share code, notes, and snippets.

View hunterMG's full-sized avatar
🧠Uploading...

hunterMG

🧠Uploading...
View GitHub Profile
@johnvilsack
johnvilsack / get-vmwarefusion.sh
Created August 8, 2025 21:27
Direct Download VMWare Fusion - Download, Install, and Update VMWare Fusion Automatically.
#!/usr/bin/env bash
# VMware Fusion Latest Version Downloader, Installer, and Updater
# This script automatically finds, downloads, and optionally installs the highest version available
#
# Inspired by this gist: https://gist.github.com/jetfir3/6b28fd279bbcadbae70980bd711a844f
#
# Usage: $0 [-y] [-i] [-d] [-f] [-t <dmg_path>]
# -y: Skip download confirmation prompt
# -i: Automatically install after download (implies -y)
@obeone
obeone / README.md
Last active March 24, 2026 04:46
LM Studio CLI (lms) ZSH Completion

ZSH Completion for LM Studio CLI (lms command)

This ZSH completion script enhances your command line interface by providing auto-completion for the lms command, which is part of the LM Studio suite. It supports all subcommands and their options, improving efficiency and reducing the need for memorizing syntax.

Installation

  1. Download the Completion Script
    You can download the _lms script directly using the following command:

@dcb9
dcb9 / clash-for-asus-merlin-ac-5300.md
Last active November 15, 2024 00:45
ASUS Merlin AC-5300 使用 Clash 搭建透明代理
@OuSatoru
OuSatoru / java8.rb
Created May 16, 2019 02:22
brew cask install java8
# /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks
# download dmg first
cask 'java8' do
version '8u212,b10:59066701cf1a433da9770636fbc4c9aa'
sha256 '9bcb4265a55e2fe63b9c58ca6c5a54eb6dda303bb69510ca6eddc2f088e41b2a'
url "http://localhost:8000/jdk-#{version.before_comma}-macosx-x64.dmg",
cookies: {
'oraclelicense' => 'accept-securebackup-cookie',
@wkliwk
wkliwk / btt.sh
Last active August 4, 2026 07:24
BTT reset trial time
# BetterTouchTool reset trial time
# ** All preference will reset
echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist"
rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist
echo "Done"
echo "remove ~/Library/Application\ Support/BetterTouchTool/"
rm -rf ~/Library/Application\ Support/BetterTouchTool/
echo "Done"
@revotu
revotu / remove_attrs.py
Last active January 27, 2024 06:48
remove all HTML attributes with BeautifulSoup except some tags(<a> <img>...)
from bs4 import BeautifulSoup
# remove all attributes
def _remove_all_attrs(soup):
for tag in soup.find_all(True):
tag.attrs = {}
return soup
# remove all attributes except some tags
def _remove_all_attrs_except(soup):
按照网上的说法,简单的就是购买Paragon NTFS或者Tuxera NTFS之类的收费软件,不想花钱的就用NTFS-3G。作为一个开发人员,既然能够自己解决,当然没有必要花钱买软件了。于是乎在我的OS X 10.9.2上,按照网上的说明安装了NTFS-3G,可惜依然无法使用。google了一下,其实直接使用Mac自带的mount_ntfs就可以轻松搞定,记录一下,方便以后查询。
1,接上NTFS硬盘后,打开终端,输入diskutil info /Volumns/$磁盘名,找到Device Node
例:diskutil info /Volumes/Elements/
2,再自己的Home目录下建一个目录来作为挂载点,mkdir /Users/$YourName/$磁盘名
例:mkdir /Users/shihb/Elements
@chilts
chilts / alexa.js
Created October 30, 2013 09:27
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;