csrutil disable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lftp sftp://dos -e "pget -c --parallel=5 --use-pget-n=5 --continue /home/user/data.duckdb .; quit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# What: quick workflow to headless get a video's text and timestamps for each chunk | |
# brew install yt-dlp | |
yt-dlp https://www.youtube.com/watch\?v\=LGkASsEBAiY -o ufo-cbs-video.mp4 | |
# brew install ffmpeg | |
ffmpeg -i ufo-cbs-video.mp4.webm -q:a 0 -map a cbs-transcribed.mp3 | |
# pip install git+https://github.com/openai/whisper.git | |
whisper cbs-transcribed.mp3 | |
### example output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to check if a command exists | |
command_exists() { | |
type "$1" &> /dev/null | |
} | |
# Function to gather system information | |
function gather_system_info() { | |
info="System Information Report\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JAMES | |
JOHN | |
ROBERT | |
MICHAEL | |
WILLIAM | |
DAVID | |
RICHARD | |
CHARLES | |
JOSEPH | |
THOMAS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from huggingface_hub import snapshot_download | |
model_id="01-ai/Yi-34B" | |
snapshot_download(repo_id=model_id, local_dir="vicuna-hf", | |
local_dir_use_symlinks=False, revision="main") | |
# convert to gguf clone llama.cpp first git clone git clone https://github.com/ggerganov/llama.cpp.git | |
# python3 convert.py /Users/jc/projects/models/01ai/vicuna-hf --outfile /Users/jc/01ai.gguf --outtype f16 | |
# ./quantize /Users/jc/01ai.gguf /Users/jc/01ai-q5.gguf Q5_K_M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval "$(/opt/homebrew/bin/brew shellenv)" | |
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew' | |
export PYENV_ROOT="$HOME/.pyenv" | |
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove / bypass MDM on Sonoma. Working as of November 2023. | |
For you being part of group one all you have to do is access recovery mode and disable SIP. | |
Reboot then go back in recovery mode, open a safari tab, go to https://skipmdm.com and press the button to copy the code. | |
Should be this: (curl https://raw.githubusercontent.com/maclifevn/bypasmdm/main/mdm.sh -o test.sh && chmod +x ./test.sh && ./test.sh) | |
Then exit safari, open terminal, paste it there & hit enter, follow the steps and then boom done. Restart computer and once in for added reassurance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## must have jq installed already and curl | |
curl https://api.draftkings.com/draftgroups/v1/draftgroups/95258/draftables | jq '[.draftables[] | select(.isDisabled != true) | {displayName: .displayName, position: .position, salary: .salary, FPTG: (.draftStatAttributes | map(select(.id == 90)) | first.value // null), OPTS: (.draftStatAttributes | map(select(.id == -2)) | first.value // null)}] | unique_by(.displayName)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.rando '!sh -c "git add -A && git commit -m \"$(curl -s https://whatthecommit.com/index.txt)\" && git push"' |
NewerOlder