Skip to content

Instantly share code, notes, and snippets.

@OmerFarukOruc
OmerFarukOruc / opencode-kimi-setup.md
Last active April 25, 2026 21:17
OpenCode + Kimi For Coding (K2.5) Setup

OpenCode + Kimi For Coding (K2.5) Setup

1. Add credentials

opencode auth login
# Select "Kimi For Coding"
# Enter your API key (sk-kimi-...)
@mtilson
mtilson / .env
Last active February 20, 2025 03:59
how to rebuild your web app container on every commit with local 'docker-compose' and 'post-commit' git hook [docker] [docker-compose] [git]
APPNAME=myapp
APPVERSION=latest
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 3, 2026 03:10
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@BobbyWibowo
BobbyWibowo / alacritty-arc-dark.yml
Created February 12, 2019 21:59
Arc Dark colorscheme for Alacritty
# Colors (Arc Dark)
colors:
# Default colors
primary:
background: '0x383c4a'
foreground: '0xd3dae3'
# Normal colors
normal:
black: '0x4b5164'
@edrex
edrex / README.md
Last active February 6, 2025 09:19
Streaming screen capture under Wayland

Recipes

kmsgrab capture with ffmpeg

sudo LIBVA_DRIVER_NAME=iHD ffmpeg -crtc_id 69  -framerate 60 -f kmsgrab -i - -vaapi_device /dev/dri/renderD128 -filter:v hwmap,scale_vaapi=w=1920:h=1200:format=nv12 -c:v h264_vaapi -profile:v constrained_baseline -level:v 3.1 -b:v 20000k test.mp4

LIBVA_DRIVER_NAME=iHD ffmpeg -device /dev/dri/card0 -f kmsgrab -i - -vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' -c:v h264_vaapi -vstats output.mp4

@dideler
dideler / bot.rb
Last active April 23, 2026 04:26
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@basarat
basarat / md5.ts
Created November 2, 2017 00:43
Create md5 using TypeScript / JavaScript / NodeJS
import * as crypto from 'crypto';
export const md5 = (contents: string) => crypto.createHash('md5').update(contents).digest("hex");
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active May 1, 2026 18:22
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@arindam89
arindam89 / .bashrc
Created June 5, 2012 06:43
.bashrc example
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't overwrite GNU Midnight Commander's setting of 'ignorespace'.
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
# ... or force ignoredups and ignorespace
export HISTCONTROL=ignoreboth