ollama run qwen3:0.6b
ollama stop qwen3:0.6b
ollama rm qwen3:0.6b
This file contains hidden or 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
| import argparse | |
| import requests | |
| import subprocess | |
| import os | |
| def get_repos(username, api_key): | |
| url = f"https://api.github.com/users/{username}/repos" | |
| headers = {"Authorization": f"token {api_key}"} | |
| repos = [] | |
This file contains hidden or 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
| sudo pacman -S base-devel linux-headers | |
| git clone https://github.com/gnab/rtl8812au.git | |
| cd rtl8812au | |
| make | |
| sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless | |
| sudo depmod -a |
This file contains hidden or 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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug test", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeArgs": [ | |
| "--inspect-brk", | |
| "${workspaceRoot}/node_modules/.bin/jest", |
This file contains hidden or 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 | |
| if [ "$1" == "-h" ]; then | |
| echo "Usage: `basename $0` npm_package_dir project_dir" | |
| echo "Installs a local NPM package to a local project for test purposes" | |
| exit 0 | |
| fi | |
| PACKAGE_DIR=$1 | |
| REPO_DIR=$2 | |
| PACKAGE_DIR=$1 |
This file contains hidden or 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 | |
| free_port() { | |
| kill -9 $(lsof -t -i:$1) | |
| } | |
| terminate() { | |
| pids_to_kill=$(ps aux|grep $1|grep -v grep|grep -v terminate.sh |awk '{print $2}') | |
| [[ ! -z $pids_to_kill ]] && kill -9 $pids_to_kill |
This file contains hidden or 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 | |
| compress_videos() { | |
| for f in "$@"; do compress_video $f; done; | |
| } | |
| compress_video() { | |
| fullname=$1 | |
| extension="${fullname##*.}" | |
| name_without_extension="${fullname%.*}" |
kind create cluster --name k8s-playground --config kind-config.yaml
kind delete cluster --name k8s-playground
This file contains hidden or 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
| kind: Cluster | |
| apiVersion: kind.x-k8s.io/v1alpha4 | |
| # One control plane node and three "workers". | |
| # | |
| # While these will not add more real compute capacity and | |
| # have limited isolation, this can be useful for testing | |
| # rolling updates etc. | |
| # | |
| # The API-server and other control plane components will be | |
| # on the control-plane node. |
This file contains hidden or 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
| rsync -ah --progress source_dir/ dest_dir/ |
NewerOlder