Skip to content

Instantly share code, notes, and snippets.

@kasperis7
kasperis7 / disass-fn.py
Created October 18, 2023 07:38
script for dumping the disassambly of specific function from vmlinux
#!/usr/bin/env python3
import os, sys
fn = sys.argv[1]
f = open("./System.map")
lines = f.readlines()
candi_lines = []
for l in lines:
@kasperis7
kasperis7 / main.py
Last active January 18, 2022 07:23
adnmb-search.ml
from flask import Flask
from flask import request, redirect
app = Flask(__name__)
@app.route('/', methods=["GET"])
def query_form():
return '''
<!DOCTYPE html>
<html lang="en">
@kasperis7
kasperis7 / PKGBUILD
Created October 31, 2021 01:57
PKGBUILD for synology-drive 3.0.1_12682
# Maintainer: Felipe Martin <me@fmartingr.com>
pkgname="synology-drive"
pkgver="3.0.1_12682"
pkgrel="1"
pkgdesc="Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers."
arch=('i686' 'x86_64')
url="https://www.synology.com"
license=('custom')
depends=('glibc' )
@kasperis7
kasperis7 / README.md
Last active January 17, 2022 12:24
A Simple Gitbook Summary Generator

A Simple Gitbook Summary Generator

Let's say you use a local editor like Obsidian or Typora to take notes on a daily basis and save them all on your local file system. One day, you want to build a blog to share these notes, but too lazy to generate an outline for them. Well, this script is for you.

Suppose your notes are organized like this:

notes
├── 2021
│   ├── document_1.md