Skip to content

Instantly share code, notes, and snippets.

View Karabdyn's full-sized avatar
💭
I may be slow to respond.

Karabdyn

💭
I may be slow to respond.
View GitHub Profile
@netcaty
netcaty / app.py
Last active February 28, 2025 23:09
from flask import Flask, request, jsonify
from flask_cors import CORS
import lark_oapi as lark
from lark_oapi.api.bitable.v1 import *
from lark_oapi.adapter.flask import *
from lark_oapi.api.im.v1 import *
import json
@T1c0MmRtODFORlpt
T1c0MmRtODFORlpt / AndroidManifest.xml
Last active March 18, 2025 05:06
Android FileProvider
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.fileProvider"
android:exported="false"
android:grantUriPermissions="true">
@nomyfan
nomyfan / pnpm-restore.mjs
Created October 20, 2024 17:00
Create a npm package from pnpm store
import * as childProcess from "node:child_process";
import * as fsAsync from "node:fs/promises";
import * as os from "node:os";
import * as path from "node:path";
import * as process from "node:process";
//#region code from pnpm
/**
* @param {{ env: NodeJS.ProcessEnv; platform: string}} opts
@ToBiDi0410
ToBiDi0410 / FixContentScriptWorldsPlugin.js
Last active March 4, 2025 02:02
CRXJS: Fix content scripts in "MAIN" world plugin
import { writeFileSync } from 'fs';
import { resolve } from 'path';
export default function FixContentScriptWorldsPlugin() {
let outputOptions;
return {
name: 'FixContentScriptWorlds',
outputOptions(options) {
outputOptions = options;
},
From ea0a4bec141d8297910a0d8c300a54c2eb2f34ba Mon Sep 17 00:00:00 2001
From: bagaskara815 <bagaskara815@gmail.com>
Date: Mon, 27 Nov 2023 15:15:01 +0800
Subject: [PATCH 1/2] Add KernelSU
---
fs/exec.c | 11 +++++++++++
fs/open.c | 5 +++++
fs/read_write.c | 6 ++++++
fs/stat.c | 3 +++
diff --git a/drivers/kernelsu/Makefile b/drivers/kernelsu/Makefile
index be90948001b0..1516b7b811c1 100644
--- a/drivers/kernelsu/Makefile
+++ b/drivers/kernelsu/Makefile
@@ -10,19 +10,13 @@ obj-y += core_hook.o
obj-y += ksud.o
obj-y += embed_ksud.o
obj-y += kernel_compat.o
-
obj-y += selinux/
From fb56c6f88ecf89b868db1ec2e8308b346bf5d0d2 Mon Sep 17 00:00:00 2001
From: zainarbani <zaintsyariev@gmail.com>
Date: Fri, 27 Oct 2023 19:42:42 +0700
Subject: [PATCH] Add KernelSU
Signed-off-by: zainarbani <zaintsyariev@gmail.com>
---
drivers/input/input.c | 4 ++++
fs/exec.c | 5 +++++
fs/open.c | 5 +++++
@nomyfan
nomyfan / package.json
Created July 24, 2023 15:55
npm-optional-dependencies
{
"name": "optional-deps-demo",
"version": "1.0.0",
"optionalDependencies": {
"@esbuild/darwin-arm64": "^0.18.16",
"@esbuild/win32-x64": "^0.18.16"
}
}
#!/bin/sh
set -eux
GKI_ROOT=$(pwd)
echo "[+] GKI_ROOT: $GKI_ROOT"
if test -d "$GKI_ROOT/common/drivers"; then
DRIVER_DIR="$GKI_ROOT/common/drivers"
elif test -d "$GKI_ROOT/drivers"; then
@malte-j
malte-j / hpi_moodle_autologin.js
Created April 26, 2023 10:16
Automatically clicks the SSO login button in moodle.
// ==UserScript==
// @name HPI Moodle Autologin
// @namespace https://malts.me/
// @version 1.0
// @description Automatically clicks the SSO login button in moodle.
// @author Malte Janßen (hi@malts.me)
// @match https://moodle.hpi.de/login/index.php
// @icon https://moodle.hpi.de/theme/image.php/boost/theme/1678719034/favicon
// @grant none
// ==/UserScript==