This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import sys | |
import array | |
import fcntl | |
import termios | |
from base64 import b64encode | |
from PIL import Image | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cstdint> | |
#include <fcntl.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
int main(int argc, char *argv[]) { | |
if (argc == 1) { | |
fprintf(stderr, "usage: pcstat <file>"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QApplication> | |
#include <QWidget> | |
#include <QLabel> | |
#include <QVBoxLayout> | |
#include <QWindow> | |
#include <QTimer> | |
#include <QPushButton> | |
#ifdef signals | |
#define SIGNALS_BACKUP signals |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from base64 import b64decode | |
from urllib.parse import unquote | |
import httpx | |
share_url = httpx.URL(input()) | |
params = b64decode(httpx.QueryParams(share_url.params)['linkToken']).decode() | |
params = unquote(params).split('&') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cxxabi.h> | |
#include <dlfcn.h> | |
#include <unwind.h> | |
void backtrace() { | |
int count = 0; | |
_Unwind_Trace_Fn cb = [] (_Unwind_Context *context, void *args) -> _Unwind_Reason_Code { | |
int *count = static_cast<int *>(args); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <iostream> | |
#include <sys/inotify.h> | |
#include <sys/mman.h> | |
#include <sys/mount.h> | |
#include <sys/stat.h> | |
#include <sys/unistd.h> | |
#define TMP_FILE "/tmp/fake.brightness" | |
#define HIJACK_FILE "/sys/class/backlight/intel_backlight/brightness" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET="/usr/bin/typora" | |
if [ $(id -u) = 0 ]; then | |
rm /usr/bin/typora | |
cat <<-EOF > "$TARGET" | |
#!/usr/bin/sh | |
exec bwrap --unshare-all --share-net \ | |
--ro-bind / / \ | |
--dev-bind /dev /dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fd-perm $(id -u nobody) | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <fcntl.h> | |
#include <sys/unistd.h> | |
#include <sys/wait.h> | |
int main(int, char *argv[]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name New Bing | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Mufanc | |
// @match https://www.bing.com/search?*showconv=1* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bing.com | |
// @grant GM_addStyle | |
// @run-at document-start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
from os import path | |
for info in inspect.stack(): | |
if path.split(info.filename)[1] != 'main.py': | |
continue | |
print(''.join(info.frame.f_globals['hash_name'])) | |
exit() |
NewerOlder