Skip to content

Instantly share code, notes, and snippets.

View cybort's full-sized avatar
💥
booom

cybort

💥
booom
  • I will be always collecting before 'everything went down'.
View GitHub Profile
@cybort
cybort / deepclean.cmd
Created October 27, 2024 03:56 — forked from allenk/deepclean.cmd
ASUS Software Clean Up Tool
@echo off
:: ------------------------------------------------------------------------------------------------------------
:: Clean Up ASUS All
:: ------------------------------------------------------------------------------------------------------------
:: The tool helps to clean up all ASUS software from system
:: ------------------------------------------------------------------------------------------------------------
:: Before running the tools,
:: 1. Complete backup your system.
:: 2. Disable ASUS Apps from BIOS (MyASUS and Armoury)
:: 3. Run ASUS remove tools (Armoury Crate Uninstall Tool.exe, or geek_uninstall.exe).
@cybort
cybort / longest_chinese_tokens_gpt4o.py
Created June 4, 2024 13:10 — forked from ctlllll/longest_chinese_tokens_gpt4o.py
Longest Chinese tokens in gpt4o
import tiktoken
import langdetect
T = tiktoken.get_encoding("o200k_base")
length_dict = {}
for i in range(T.n_vocab):
try:
length_dict[i] = len(T.decode([i]))
except:
@cybort
cybort / gpt-4-tokens.txt
Created June 4, 2024 13:06 — forked from s-macke/gpt-4-tokens.txt
All 100k GPT-4 Tokens. New lines are replaced with \n and carriage returns with \r. The index of the token is (index=line-1). The list is extracted using https://github.com/openai/tiktoken
!
"
#
$
%
&
'
(
)
*
@cybort
cybort / pppdata.js
Created February 9, 2024 17:52 — forked from s1ntoneli/pppdata.js
各国家购买力水平清单
const ppp = [
{
"range": "0.0-0.1",
"countries": []
},
{
"range": "0.1-0.2",
"countries": []
},
{
@cybort
cybort / checksum_calculation.md
Created February 28, 2022 07:48 — forked from david-hoze/checksum_calculation.md
How to Calculate IP/TCP/UDP Checksum
@cybort
cybort / download-vs-code-server.sh
Created July 12, 2021 02:07 — forked from b01/download-vs-code-server.sh
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
set -e
# You can get the latest commit SHA by looking at the latest tagged commit here: https://github.com/microsoft/vscode/releases
commit_sha="08a217c4d27a02a5bcde898fd7981bda5b49391b"
archive="vscode-server-linux-x64.tar.gz"
owner='microsoft'
repo='vscode'
# Auto-Get the latest commit sha via command line.
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@cybort
cybort / kill_open_files.sh
Created July 2, 2021 09:12 — forked from wilvk/kill_open_files.sh
Linux - Kill all processes of deleted files that are still open
#!/bin/bash
lsof|grep deleted|awk '{print $2}'|xargs kill -9
@cybort
cybort / Makefile
Created March 8, 2021 08:57 — forked from prwhite/Makefile
Add a help target to a Makefile that will allow all targets to be self documenting
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
# Everything below is an example
target00: ## This message will show up when typing 'make help'
@echo does nothing