Skip to content

Instantly share code, notes, and snippets.

View entimm's full-sized avatar
🤒
Out sick

entimm entimm

🤒
Out sick
View GitHub Profile
@zhuziyi1989
zhuziyi1989 / enable_gemini.sh
Last active March 1, 2026 03:10
强制开启 Gemini in Chrome 的脚本 2026.01.29
#!/bin/bash
# 定义 Chrome Local State 文件的路径
CHROME_STATE_FILE="$HOME/Library/Application Support/Google/Chrome/Local State"
echo "🚀 开始尝试强制开启 Chrome Gemini 功能..."
# 1. 安全检查:检测 Google Chrome 是否正在运行
# 如果 Chrome 没关,修改配置文件可能会被覆盖或导致错误
if pgrep "Google Chrome" > /dev/null; then
@opastorello
opastorello / sublime text 4143 license key
Last active February 6, 2026 20:03
sublime text 4143 license key
> * Go to [hexed.it](https://hexed.it/)
> * Click "Open File" and choose your sublime_text.exe **(DON'T FORGET TO BACKUP YOUR EXE FILE)**
> * Go to Search and in "Search for" put: 80 78 05 00 0F 94 C1
> * In Search Type select "Enable replace" and put: 80 78 05 00 0F 94 C1
> * Click "Find next" then "Replace"
> * Do the same thing with: C6 40 05 01 48 85 C9 => C6 40 05 01 48 85 C9
> * Click "Save as" then name it: sublime_text
> * Copy your modified sublime_text.exe to directory Sublime Text
@fkurz
fkurz / mermaid-image-export.md
Last active July 15, 2025 15:09
Mermaid Diagram Image Export

We can export a mermaid diagram to PNG very simply using the official Mermaid CLI Tool.

Installation via npm

npm i -g mermaid.cli

Usage:

@fandean
fandean / .zshrc
Last active November 18, 2024 14:57
Powerlevel9k - .zshrc
# .zshrc 中 p9k 的配置内容
#####################################
# P9k 配色方案: bright、 light、dark(模式下右侧提示符不显示)
POWERLEVEL9K_COLOR_SCHEME='light'
# 在新提示符之前插入一行以保持间距
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
# https://github.com/bhilburn/powerlevel9k/tree/next#customizing-prompt-segments
# LEFT_PROMPT 左侧提示符
@hutusi
hutusi / git paging.md
Last active December 11, 2025 13:37
Git checkout next / prev commit

Treat git log as a book, exec git next or git prev to checkout the next or the previous commit.

Please check hutusi/git-paging for updates.

@cprakashagr
cprakashagr / LICENCE SUBLIME TEXT
Last active June 24, 2024 20:13
Sublime Text 3 Serial key build is 3143
## Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
@mylxsw
mylxsw / logstash-biz-logs.conf
Last active August 26, 2018 11:50
logstash-biz-logs.conf
input {
beats {
port => 5044
}
}
filter {
if [log_type] == "php_slow" {
# php 慢查询日志
ruby {
#!/bin/bash
# variables
LOGFILE="/var/log/nginx/access.log"
LOGFILE_GZ="/var/log/nginx/access.log.*"
RESPONSE_CODE="200"
# functions
filters(){
grep $RESPONSE_CODE \
@judy2k
judy2k / parse_dotenv.bash
Created March 22, 2017 13:34
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
@denji
denji / README.md
Last active October 19, 2025 11:13 — forked from Cubixmeister/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000