Skip to content

Instantly share code, notes, and snippets.

View ammarfaizi2's full-sized avatar
๐Ÿ€
Baby Opossum Posse

Ammar Faizi ammarfaizi2

๐Ÿ€
Baby Opossum Posse
View GitHub Profile
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2022 Ammar Faizi <[email protected]>
*
* A Simple multi-threaded coroutine written in C.
* Running on Linux x86-64.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 5.17.0-rc4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc-9 (Debian 9.3.0-22) 9.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90300
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23502
// SPDX-License-Identifier: GPL-2.0-only
/**
*
* Simple reverse engineering game for GNU/Weeb.
*
* Copyright (C) 2022 Ammar Faizi <[email protected]>
*
* Compile with:
* gcc -Wall -Wextra -Os -ffreestanding -nostdlib -nostartfiles -static qwe.c -o qwe
*
@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
<?php
const TARGET_DIR = "/tmp/gwml";
$files = scandir(".");
foreach ($files as $file) {
if ($file === "." || $file === "..")
continue;
$content = file_get_contents($file);
// SPDX-License-Identifier: Public Domain
/*
* @author Ammar Faizi <[email protected]>
* @link https://www.facebook.com/groups/cpp.indonesia.programmer/posts/10158199401866073
*/
#include <cstdio>
#include <cerrno>
#include <unordered_map>
int main(void)
<?php
chdir("/opt/systemd/linux2");
$handle = fopen("/tmp/.linux.git_lock", "a");
while (!flock($handle, LOCK_EX | LOCK_NB)) {
printf("Waiting for the lock...\n");
sleep(1);
}
function ca($str)
<?php
chdir("/opt/systemd/linux");
$handle = fopen("/tmp/.linux.git_lock", "a");
while (!flock($handle, LOCK_EX | LOCK_NB)) {
printf("Waiting for the lock...\n");
sleep(1);
}
$remotes = [
<5>[ 0.000000][ T0] Linux version 5.15.6-icetea2-stable-00459-ga2547651bc89 (root@integral2) (gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.37) #1 SMP Sun Dec 5 17:40:38 WIB 2021
<6>[ 0.000000][ T0] Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.6-icetea2-stable-00459-ga2547651bc89 root=UUID=a9e744f9-2273-4109-b6a0-37b0b13a2fc1 ro mitigations=off
<6>[ 0.000000][ T0] KERNEL supported cpus:
<6>[ 0.000000][ T0] Intel GenuineIntel
<6>[ 0.000000][ T0] AMD AuthenticAMD
<6>[ 0.000000][ T0] Hygon HygonGenuine
<6>[ 0.000000][ T0] Centaur CentaurHauls
<6>[ 0.000000][ T0] zhaoxin Shanghai
<6>[ 0.000000][ T0] x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
<6>[ 0.000000][ T0] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'