Skip to content

Instantly share code, notes, and snippets.

View level120's full-sized avatar

Gusam Park level120

  • Republic of Korea
  • 20:13 (UTC +09:00)
View GitHub Profile
@karpathy
karpathy / microgpt.py
Last active September 29, 2026 11:08
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@bennlee
bennlee / remapping-keys-via-hidutil.md
Created November 19, 2021 05:39
How to remapping keys on macOS without thirdparty applications.

How to remapping keys on macOS without thirdparty applications.

You could remapping keys via the macOS embedded command line tool hidutil.


Key IDs Table
Usage Usage ID (hex) Usage Usage ID (hex) Usage Usage ID (hex) Usage Usage ID (hex)
@rdelrosario
rdelrosario / app_notarizer.sh
Last active January 12, 2024 19:40
macOS Application Notarization Script
#!/bin/bash
usage()
{
# Display Help
echo "*********************************************************************************************************************************************************"
echo " MacOS Application Notarization Script"
echo "*********************************************************************************************************************************************************"
echo
@6londe
6londe / license-badges.md
Last active February 8, 2025 13:43 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

마크다운 라이센스 배지 (Markdown License badges)

프로젝트의 README 파일에 표시할 라이센스 배지(License badges) 모음입니다. 아래 목록은 가장 흔히 사용되는 오픈소스 및 오픈 데이터 라이센스입니다. 간단하게 배지 아래에 있는 코드를 복사해서 마크다운 파일에 붙여넣기하면 됩니다.

주의사항

@Gumball12
Gumball12 / _worth-reading.md
Last active June 11, 2026 02:39
나를 위해 저장하는 읽어볼 만한 글들 모음
@kevinGodell
kevinGodell / mpeg-dash-ffmpeg-dashjs.md
Created September 20, 2017 22:53
Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.

Live streaming mpeg-dash video using ffmpeg and dash.js

Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.

Prerequisites

A linux server, such as Ubuntu

Apache web server installed, running, and reachable via its ip address
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active September 23, 2026 21:22
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active April 25, 2026 07:50
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@MrZoidberg
MrZoidberg / OpenFileWithRetry.cs
Created October 12, 2012 13:17
C# FileStream Lock. How to wait for a file to get released and lock safely.
public static FileStream OpenFileWithRetry(string path, FileMode mode, FileAccess fileAccess, FileShare fileShare)
{
ArgumentsChecker.ArgumentNotNull(path, "path");
var autoResetEvent = new AutoResetEvent(false);
while (true)
{
try
{