Skip to content

Instantly share code, notes, and snippets.

@conoro
conoro / yunmai_protocol.txt
Created March 28, 2017 14:38 — forked from pwnall/yunmai_protocol.txt
Yunmai smart scale (M1301, M1302, M1303) Bluetooth LE protocol notes
Yunmai smart scale (M1301, M1302, M1303) Bluetooth LE protocol notes
Commands are written to GATT attribute 0xffe9 of service 0xffe5. Responses come
as value change notifications for GATT attribute 0xffe4 of service 0xffe0. These
are 16-bit Bluetooth LE UUIDs, so nnnn is 0000nnnn-0000-1000-8000-00805F9B34FB.
-----
Packet Structure
@lifthrasiir
lifthrasiir / inquiry.md
Last active December 21, 2025 08:19
"구글, 'https' 채택 안한 누리집에 안전하지 않은 곳 '낙인'" 기사에 대한 의견

아래 메일은 2017-02-12 21:43(이하 한국 표준시)에 한겨레 기사에 대한 의견으로서 기사에 제시된 김재섭 기자의 메일로 보낸 내용이다. 메일에서 사실 관계 등의 오류가 있다면 모두 나의 실수이다.

2017-02-13 14:53에 덧붙임: 더 이상 gist를 비공개로 할 이유가 없어졌으므로 공개로 전환. 이 메일에 대한 답변은 받았으나 공개할 만큼 중요한 반론이 들어 있진 않으며 공개 여부도 묻지 않았으므로 공개하지 않는다. 아래 글 자체에도 다양한 비문과 오자가 있으나 본래 보낸 내용을 살리기 위해 전혀 수정을 하지 않기로 했음을 양해 바람.

2017-02-13 19:00에 덧붙임: 이 기사의 후속으로 구글코리아 측의 기자간담회가 올라갔다. 새 기사에 대해서는 특이한 게 없으므로 노코멘트. 또한 위의 기사 링크를 미디어다음에서 한겨레 웹사이트로 가도록 수정.

원문

안녕하십니까, 귀하께서 작성하신 (물론 저는 그 진위를 알 수 없습니다만, 적어도 그렇게 나와 있는) 기사에 대한 의견을 제기하고자 메일을 씁니다. 이 메일은 저의 개인 의견이며 저를 고용하고 있는 회사나 단체 등의 의견을 전혀 대변하지 않음을 혹시나 싶지만 미리 밝혀 둡니다.

@neremin
neremin / BAT_CMD_runAsAdmin_fix.bat
Last active January 28, 2021 16:32
Template for windows cmd shell scripts (BAT, CMD) which need to auto-request user run as Administrator. Plus script for fixing "Run as Administrator" on batch files.
@ECHO off
net session >nul 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS
:ELEVATE
ECHO Elevated privileges are temporarily required to run script
cd /d %~dp0
mshta "javascript: var shell = new ActiveXObject('Shell.Application'); shell.ShellExecute('%~nx0', '', '', 'runas', 1); close();"
@SciresM
SciresM / ida_fireemblem_symbols.py
Last active July 15, 2023 18:29
Get full symbols for your Fire Emblem If/Fates IDB
import idaapi
import idautils
import idc
import struct
def do_rename(eaaddr, name):
idc.MakeCode(eaaddr)
idc.MakeFunction(eaaddr)
idc.MakeNameEx(eaaddr, name, idc.SN_NOWARN)
@rajadain
rajadain / unstable-warner.js
Last active November 15, 2017 02:01
GitHub Pull Request Unstable Warner Tampermonkey Script
// ==UserScript==
// @name Unstable Warner
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Warn before merging unstable pull requests on GitHub
// @author Terence Tuhinanshu @rajadain
// @match https://github.com/**/pull/*
// @grant none
// ==/UserScript==
@Mrrraou
Mrrraou / global_backdoor.h
Last active June 11, 2022 23:33
svcGlobalBackdoor usage demonstration. Licensed under the MIT License - Mrrraou 2017
#pragma once
#include <3ds/types.h>
typedef u32(*backdoor_fn)(u32 arg0, u32 arg1);
u32 svc_30(void *entry_fn, ...); // can pass up to two arguments to entry_fn(...)
Result svcGlobalBackdoor(s32 (*callback)(void));
#!/usr/bin/env python3
import binascii
import struct
import sys
from Crypto.Cipher import AES
if len(sys.argv) < 3:
print("usage: cia_extract_deckey.py <cia-file> <decrypted-titlekey>")
sys.exit(1)
@psxdev
psxdev / session.txt
Created November 19, 2016 19:08
in game :P with ps4link in background
PID PPID PGID SID TSID LOGIN WCHAN EMUL COMM TDNAME
65 0 0 0 0 - lvdhddwk - lvd0 lvd0hdd0
[PS4][ERROR]: PID 65 number of vmaps is 0
PID PPID PGID SID TSID LOGIN WCHAN EMUL COMM TDNAME
66 0 0 0 0 - lvddft1w - lvd1 lvd1dflt1
[PS4][ERROR]: PID 66 number of vmaps is 0
PID PPID PGID SID TSID LOGIN WCHAN EMUL COMM TDNAME
67 0 0 0 0 - lvddft0w - lvd2 lvd2dflt0
[PS4][ERROR]: PID 67 number of vmaps is 0
PID PPID PGID SID TSID LOGIN WCHAN EMUL COMM TDNAME
@psxdev
psxdev / output.txt
Created November 19, 2016 18:58
proc and vmap
[PS4][DEBUG]: [PS4LINK] commands listener received packet size (266)
[PS4][DEBUG]: [PS4LINK] Received command execuserelf argc=1 argv=host0:listproc.elf
[PS4][DEBUG]: [PS4LINK] file open req (host0:listproc.elf, 0 0)
[PS4][DEBUG]: [PS4LINK] file open reply received (ret 8)
[PS4][DEBUG]: [PS4LINK] file lseek req (fd: 8)
[PS4][DEBUG]: [PS4LINK] ps4link_lseek_file: lseek reply received (ret 21904)
[PS4][DEBUG]: [PS4LINK] file lseek req (fd: 8)
[PS4][DEBUG]: [PS4LINK] ps4link_lseek_file: lseek reply received (ret 0)
[PS4][DEBUG]: [PS4LINK] ps4link_read_file: Reply said there's 21904 bytes to read (wanted 21904)
[PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 0 readed 4096
/*
Scramble/descramble raw NAND dumps from the NES Classic.
plutoo 2016
Cheers to brizzo, derrek.
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>