Skip to content

Instantly share code, notes, and snippets.

View Zheaoli's full-sized avatar
๐Ÿ‡ฏ๐Ÿ‡ต
Travel In Japan

Nadeshiko Manju Zheaoli

๐Ÿ‡ฏ๐Ÿ‡ต
Travel In Japan
View GitHub Profile
from bcc import BPF
import time
import argparse
bpf_text = """
#include <uapi/linux/ptrace.h>
#include <linux/fs.h>
#include <linux/sched.h>
BPF_HASH(fd_info, pid_t, int);
from flask import Flask, request, render_template_string, jsonify
from flask_caching import Cache
app = Flask(__name__)
cache = Cache(app, config={"CACHE_TYPE": "SimpleCache"})
# The HTML template as a string
html_template = """
<!doctype html>
<html>
version: '3.8'
services:
emby:
container_name: emby
image: emby/embyserver:latest
# Obviously you'll need to update these
environment:
- UID=1002
- GID=1002
@Zheaoli
Zheaoli / demo.s
Last active August 30, 2023 11:19
.global _start
.section .text
_start:
# Setup stack frame
movq %rsp, %rbp
# Load argc
movq (%rbp), %r8 # %r8 now holds argc
use reqwest::Client;
use serde::{Deserialize, Serialize};
use serde_json;
use bytes::Bytes;
#[derive(Clone, Debug, Deserialize, Serialize)]
struct DropboxDeleteArgs {
path: String,
}

้ฆ–ๅ…ˆ่ตฐ debug ๆจกๅผ่ฟ›ๅ…ฅ console

็ผ–่พ‘ไปฅไธ‹ๆ–‡ไปถ

nano /usr/share/X11/xorg.conf.d/10-quirks.conf

็„ถๅŽ่พ“ๅ…ฅไปฅไธ‹ๅ†…ๅฎน

โ•ฐโ”€ cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
//!HOOK NATIVE
//!BIND HOOKED
//!COMPONENTS 4
// RemoveGrain(11,-1) equivalent by -Vit-
#define Src(a,b) HOOKED_texOff(vec2(a,b))
vec4 hook() {
vec4 o = Src(0,0).xyzx;
o.x += o.x;
@Zheaoli
Zheaoli / demo.go
Created September 21, 2022 19:55
package main
import (
"fmt"
)
func Absdiff1(x, y int) int {
if x > y {
return x - y
}
@Zheaoli
Zheaoli / gist:aebc269899a5ea549a980475c6a815f1
Created August 15, 2022 07:02 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue: