Skip to content

Instantly share code, notes, and snippets.

@fi-xz
fi-xz / CHZZK_SESSION_RUNTIME_TEST.md
Last active July 27, 2026 07:25
CHZZK Official API - Session Test Results

CHZZK 세션 서버 실측

실제 서버에 붙어 확인한 내용이다. 공식 문서에 없는 것들이 있다.

  • 핸드셰이크는 pingInterval=25000, pingTimeout=60000. 생존 시한이 85초로 넉넉하다.

  • 네임스페이스는 루트(/)다. 세션 URL에 경로가 없다.

  • 인증은 핸드셰이크 쿼리의 auth 하나로 끝난다. 여기에 더해 루트 네임스페이스로 CONNECT를 보내면 인증 없는 새 연결로 취급해 다음과 같이 응답한다.

@chand1012
chand1012 / temps.py
Created February 20, 2018 18:19
Get CPU and GPU temps from Windows with Python and OHM
import wmi
def avg(value_list):
num = 0
length = len(value_list)
for val in value_list:
num += val
return num/length
@rcmachado
rcmachado / remove_hover_rule.js
Created November 4, 2013 14:21
Remove CSS :hover rules for touch devices to avoid iOS double-tap behavior. Copied and adapted from http://retrogamecrunch.com/tmp/hover (just a fix for sheet.cssRules)
// disable :hover on touch devices
// based on https://gist.github.com/4404503
// via https://twitter.com/javan/status/284873379062890496
// + https://twitter.com/pennig/status/285790598642946048
// re http://retrogamecrunch.com/tmp/hover
// NOTE: we should use .no-touch class on CSS
// instead of relying on this JS code
function removeHoverCSSRule() {
if ('createTouch' in document) {
try {
@gonecoding
gonecoding / Readme.markdown
Created February 22, 2011 12:42
Adding methods to NSData and NSString using categories to provide AES256 encryption on iOS

Important notice

I took down this Gist due to concerns about the security of the encryption/decryption part of this code (see comments below).

Rob Napier (@rnapier) has created a publicly available class that provides similar AES encryption/decryption functionality at https://github.com/rnapier/RNCryptor.