Skip to content

Instantly share code, notes, and snippets.

View BonyChops's full-sized avatar
SinaGo‼️

BonyChops BonyChops

SinaGo‼️
View GitHub Profile
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@nweddle
nweddle / agnoster-newline.zsh-theme
Created March 11, 2016 21:25
Agnoster ZSH Theme with New Line
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@abcang
abcang / .zshrc
Created April 9, 2016 10:33
ssh先の場合tmux自動起動するやつ。.zshrcとかに入れると便利。tmuxをデタッチするとssh終了するか聞かれるので便利
## ssh先の場合tmux自動起動
if [[ -n "${REMOTEHOST}${SSH_CONNECTION}" && -z "$TMUX" && -z "$STY" ]] && type tmux >/dev/null 2>&1; then
function confirm {
MSG=$1
while :
do
echo -n "${MSG} [Y/N]: "
read ans
case $ans in
[yY]) return 0 ;;
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active July 22, 2024 17:46 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@nogajun
nogajun / wine-japanese.reg
Last active December 18, 2023 12:12
LinuxのWine環境で日本語周りをいい感じに設定するレジストリデータ。Windowsで使われるフォント名置換とビットマップフォント無効、InputStyleをrootにします
Windows Registry Editor Version 5.00
' 文字コードをUTF-16リトルエンディアン、改行をCR+LFで保存してください
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"Meiryo UI"="Noto Sans CJK JP"
"Meiryo"="Noto Sans CJK JP"
"MS Gothic"="Ume Gothic"
"MS Mincho"="Ume Mincho"
"MS PGothic"="Ume P Gothic"
@mascii
mascii / nintendoswitch_access.log
Created February 10, 2018 06:27
Nintendo Switch アクセスログ
192.168.10.3 - - [09/Feb/2018:01:32:07 +0900] "GET http://ctest.cdn.nintendo.net/ HTTP/1.1" 200 370 "-" "NX NIFM/00" TCP_MISS:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:08 +0900] "CONNECT receive-lp1.dg.srv.nintendo.net:443 HTTP/1.1" 200 1820 "-" "-" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:08 +0900] "CONNECT accounts.nintendo.com:443 HTTP/1.1" 200 4531 "-" "libcurl (nnAccount; 789f928b-138e-4b2f-afeb-1acae821d897; SDK 4.4.0.0; Add-on 4.4.0.0)" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:09 +0900] "CONNECT api.accounts.nintendo.com:443 HTTP/1.1" 200 4345 "-" "libcurl (nnAccount; 789f928b-138e-4b2f-afeb-1acae821d897; SDK 4.4.0.0; Add-on 4.4.0.0)" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:15 +0900] "CONNECT app-a02.lp1.npns.srv.nintendo.net:443 HTTP/1.0" 200 11121 "-" "-" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:30 +0900] "GET http://ctest.cdn.nintendo.net/ HTTP/1.1" 200 370 "-" "NX NIFM/00" TCP_MISS:HIER_DIRECT
192.168.10.3 - - [09/Feb/20
@dmail
dmail / url.js
Last active January 5, 2024 11:09
URL parts naming. Inspired from web browsers API (new URL(), window.location) and rfc3986.
/*
href
┌────────────────────────────────────────┴──────────────────────────────────────────────┐
origin │
┌────────────┴──────────────┐ │
│ authority │
│ ┌───────────────┴───────────────────────────┐ │
│ │ host resource
│ │ ┌──────────┴─────────────────┐ ┌────────────┴───────────┬───────┐
│ │ hostname │ pathname │ │
@lyshie
lyshie / config-deb-i386.json
Last active June 1, 2024 22:01
Scratch Desktop (Scratch 3.0 Offline Editor) on GNU/Linux
{
"src": "/tmp/scratch-desktop/",
"dest": "/tmp/",
"arch": "i386",
"icon": "/tmp/scratch-desktop/resources/Icon.png",
"categories": [
"Education"
]
}
@shun-shobon
shun-shobon / README.md
Last active June 4, 2024 07:53
Hide private address on Amazon
#!/bin/bash
#this should be the directory where all the extensions are installed
EXT="$HOME/.local/share/code-server/extensions"
cd /tmp
ls $EXT | awk -F- '/latex-workshop/ {print $NF}' | while read VER; do
echo $VER