Skip to content

Instantly share code, notes, and snippets.

View Zxce3's full-sized avatar
💤
Sleep for a while

Memet Zx Zxce3

💤
Sleep for a while
View GitHub Profile
@Mr-MaNia7
Mr-MaNia7 / userRouter.js
Created December 26, 2024 05:52
obfuscated js code
const express = require("express");
const authController = require("../controllers/authController");
const userController = require("../controllers/userController");
const transactionController = require("../controllers/transactionController");
const router = express.Router();
router.post("/getVerifyCode", authController.getVerifyCode);
router.post("/signup", authController.check2FACode, authController.signUp);
router.post("/login", authController.logIn);
@khromov
khromov / service-worker.ts
Created April 10, 2023 21:17
SvelteKit service worker example
/// <reference types="@sveltejs/kit" />
/// <reference no-default-lib="true"/>
/// <reference lib="esnext" />
/// <reference lib="webworker" />
// https://kit.svelte.dev/docs/service-workers#type-safety
const sw = self as unknown as ServiceWorkerGlobalScope;
import { build, files, version } from '$service-worker';
@ammarfaizi2
ammarfaizi2 / slc.cpp
Last active May 27, 2022 14:00
Socket Lost Control
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifndef likely
#define likely(EXPR) __builtin_expect(!!(EXPR), 1)
#endif
#ifndef unlikely
@dietrichmax
dietrichmax / nginxnextjs.conf
Last active May 27, 2025 13:55
Nginx Configuration for Nextjs
# Based on https://steveholgado.com/nginx-for-nextjs/
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=STATIC:10m inactive=7d use_temp_path=off;
upstream nextjs_upstream {
server nextjs:3000;
keepalive 2;
}
server {
@ammarfaizi2
ammarfaizi2 / gpg-offline-master.md
Created January 31, 2022 03:08 — forked from abeluck/gpg-offline-master.md
GPG Offline Master Key w/ smartcard
@MarshalX
MarshalX / 1_pytgcalls_video_telethon_example.py
Last active February 2, 2025 21:16
Example of the most simple way to stream any video to Telegram Live Stream (Group Call) with https://github.com/MarshalX/tgcalls
# before run this script install required packages via command below
# pip3 install -U pytgcalls==3.0.0.dev24
import asyncio
import pytgcalls
import telethon
# EDIT THIS
# more info about API keys here https://docs.telethon.dev/en/latest/basic/signing-in.html

Prepare Your Linux Server

What Does This Really Do?

Basically we set up the timezone and locale, and only allow for SSH root login without password, by using SSH authentication key. We also add a basic Vim conviguration inside .vimrc by adding line numbers by default.

Then we update the repository and the system, and also add basic tools like nano, curl, tmux, even vim itself doesn't included by the system. zsh and git is prequisites for oh-my-zsh,

@azureru
azureru / extract android kernel.md
Last active June 9, 2025 07:53
How to Extract Android Kernel And Modify The Boot Ramdisk (Android 4.4) on Allwinner based Processor

Extracting Existing Kernel + Ramfs

Enter the machine using adb shell

Run cat /proc/partitions

  #  Path                     Purpose        Size
  0 /dev/block/mmcblk0                       7761920
  1 /dev/block/mmcblk0p1      data           6085631