Skip to content

Instantly share code, notes, and snippets.

View 0komo's full-sized avatar

Komo 0komo

  • Indonesia
  • 02:35 (UTC +08:00)
View GitHub Profile
@imkushalpatel
imkushalpatel / zte_extract.py
Created July 8, 2022 08:44 — forked from ndunks/zte_extract.py
Modem Indihome ZTE F609 Config Extract and Repack
#!/usr/bin/env python
# https://reverseengineering.stackexchange.com/a/13395
import sys
import binascii
import struct
import zlib
if (len(sys.argv) <= 1):
print('USAGE:\n%s [configBak.cfg|config.bin]' % sys.argv[0])
exit(1)
@niutech
niutech / hosts
Last active November 27, 2025 13:50
/etc/hosts file for blocking Microsoft Edge tracking domains (and more)
0.0.0.0 a-0001.a-msedge.net
0.0.0.0 a-0002.a-msedge.net
0.0.0.0 a-0003.a-msedge.net
0.0.0.0 a-0004.a-msedge.net
0.0.0.0 a-0005.a-msedge.net
0.0.0.0 a-0006.a-msedge.net
0.0.0.0 a-0007.a-msedge.net
0.0.0.0 a-0008.a-msedge.net
0.0.0.0 a-0009.a-msedge.net
0.0.0.0 a-msedge.net
@Andre-LA
Andre-LA / libmylib.c
Last active October 17, 2022 11:46
nelua as C library
/* Generated by Nelua 0.2.0-dev */
/* Compile command: gcc "libmylib.c" -o "libmylib" -Wall -fwrapv -g -lm */
/* Compile hash: 3ubsTFvAUFqRHss7xDS1yGaiVwdM */
/* ------------------------------ DECLARATIONS ------------------------------ */
// moved to here:
#ifndef MYLIB_H
#define MYLIB_H
#ifdef __GNUC__
#pragma GCC diagnostic error "-Wimplicit-function-declaration"
@cyd01
cyd01 / ANSI.md
Created May 18, 2021 09:21 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@truemedian
truemedian / clock_gettime.lua
Last active February 28, 2025 21:14
Windows / Posix compatible clock_gettime(REALTIME) ffi bindings.
local ffi = require 'ffi'
local bit = require 'bit'
local clock_gettime
if ffi.os == 'Windows' then
local UNIX_TIME_START = 0x019DB1DED53E8000LL
local TICKS_PER_SECOND = 10000000LL
ffi.cdef [[
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 7, 2025 14:28
Conventional Commits Cheatsheet
@fnky
fnky / ANSI.md
Last active December 7, 2025 01:21
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@ndunks
ndunks / ZTE-F609.md
Last active December 5, 2025 15:15
Manual help untuk Modem Indihome TELNET ZTE F609

Telnet Manual Modem Indihome

Saya sering lupa, jadi tulis aja di gist.

Login Root via Telnet

telnet 192.168.1.1
login: root

pass : Zte521

@matiasinsaurralde
matiasinsaurralde / Makefile
Created August 24, 2016 11:39 — forked from huxuan/Makefile
Hello World for LuaJIT FFI/C++ binding.
all: lib run
lib:
g++ -shared -fPIC -o libhello.so libhello.cpp hello.cpp
run:
luajit main.lua
clean:
rm *.so
@arpanpal010
arpanpal010 / awsetbg.sh
Last active December 5, 2023 16:02
wallpaper cropper and setter for awesomeWM, also generates theme and shell colors
#!/bin/bash
# default location of theme and wallpaper
# replace 'awtheme' with your current theme
wallpaperDestination="$HOME/.config/awesome/themes/awtheme/wallpaper";
# add #include "/home/arch/.Xresources_colors" to .Xresources
colorScriptDestination="/home/arch/.Xresources_colors"
# add [[ -f "$HOME/.bash_colors" ]] && . "$HOME/.bash_colors"; to .bashrc
# bashColorsDestination="/home/arch/.bash_colors"