Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View eternalphane's full-sized avatar
😶
Mechanus Mind

Zuo Zongyuan eternalphane

😶
Mechanus Mind
  • National University of Singapore
  • Singapore / Beijing
View GitHub Profile
@eternalphane
eternalphane / reverse-engineering-webpack-apps.md
Created February 20, 2026 13:54 — forked from 0xdevalias/reverse-engineering-webpack-apps.md
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps
@eternalphane
eternalphane / hosts
Created July 10, 2025 10:51
GitCode Hosts
116.205.2.91 gitcode.com
116.205.2.45 web-api.gitcode.com
58.20.209.162 cdn-static.gitcode.com
116.205.6.213 lfs.gitcode.com
116.205.6.30 lfs-ai.gitcode.com
58.20.209.152 lfs-cdn.gitcode.com
58.20.209.152 lfs-ai-cdn.gitcode.com
116.205.6.218 api.gitcode.com

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

ℹ️ git-conventional-commits A CLI util to ensure this conventions and generate changelogs

Commit Message Formats

Default

Aspect or Feature kubernetes/ingress-nginx nginxinc/kubernetes-ingress with NGINX nginxinc/kubernetes-ingress with NGINX Plus
Fundamental
Authors Kubernetes community NGINX Inc and community NGINX Inc and community
NGINX version Custom NGINX build that includes several third-party modules NGINX official mainline build NGINX Plus
Commercial support N/A N/A Included
Implemented in Go/Lua (while Nginx is written in C) Go/Python Go/Python
Load balancing configuration via the Ingress resource
@eternalphane
eternalphane / download.js
Created October 5, 2019 14:22
xiaozhan_toefl_tpo resource downloader (小站托福TPO资源下载)
import fs from 'fs';
import sqlite from 'sqlite';
import fetch from 'node-fetch';
(async () => {
const db = await sqlite.open('C:\\Program Files (x86)\\xiaozhan_toefl_tpo\\resources\\cache\\ylk.db');
const tags = (await db.all('SELECT DISTINCT tag FROM t_download_info WHERE tag LIKE "tpo%"')).map(row => row.tag);
for (const tag of tags) {
if (fs.existsSync(tag)) {
continue;
@eternalphane
eternalphane / SSLeay.c.patch
Created April 26, 2019 13:17
Patches for building perl module `Net::SSLeay` on Windows with MSVC 160
diff --git a/SSLeay.c b/SSLeay.c
index 5048a2f..d0cd5a7 100644
--- a/SSLeay.c
+++ b/SSLeay.c
@@ -13035,7 +13035,7 @@ XS_EUPXS(XS_Net__SSLeay_d2i_X509_CRL_bio)
;
}
- RETVAL = d2i_X509_CRL_bio(bp, unused);
+ RETVAL = d2i_X509_CRL_bio(bp, (X509_CRL**)unused);
@eternalphane
eternalphane / Get-DiskUsage.ps1
Last active April 27, 2019 04:03
du in powershell
function Get-DiskUsage {
[CmdletBinding(PositionalBinding = $false)]
param (
[Alias("a")]
[Switch]
$All,
[Alias("b")]
[Switch]
$Bytes,
[Alias("k")]
@eternalphane
eternalphane / decorator-example.ts
Last active May 6, 2018 13:49
TypeScript mixin class decorator (with initializer)
import { mixin } from './mixin.ts';
abstract class ListLike<T> {
private _data: T[] = [];
public get length(): number {
return this._data.length;
}
public add(elem: T, i?: number): void {
@eternalphane
eternalphane / stackoverflow-purifier.user.js
Last active February 19, 2024 08:52
StackOverflow净化器 屏蔽某个智障用户
// ==UserScript==
// @name StackOverflow净化器
// @namespace https://gist.github.com/EternalPhane/
// @version 0.2
// @description 屏蔽某个智障用户Ciro Santilli
// @author EternalPhane
// @include /^https?:\/\/stackoverflow\.com\//
// ==/UserScript==
(function() {