Skip to content

Instantly share code, notes, and snippets.

View kawaii-ghost's full-sized avatar
😐
Lost in the internet

<I°_°I> kawaii-ghost

😐
Lost in the internet
View GitHub Profile
// Online C++ compiler to run C++ program online
#include <cstdio>
#include <vector>
#include <inttypes.h>
#include <cstdbool>
using std::vector;
int_fast32_t prime(int_fast32_t num_k, vector<int_fast32_t> &arr);
@kawaii-ghost
kawaii-ghost / mount.ntfs
Created November 18, 2022 03:36
Shell script for using ntfs3 driver
!#/bin/sh
$(which mount) -t ntfs3 "$@"
#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <format>
int main() {
std::ios_base::sync_with_stdio(false);
std::cout << "Irrashai, inputnya dipisah spasi ya ~ " << std::endl;
std::cout << "Maksimum 255 bilangan bulat positif rentang 1 <= 255" << std::endl;
#include <windows.h>
int main(void)
{
// I don't realize this lmao until i see KernelBase.dll
WriteFile(UlongToHandle(STD_OUTPUT_HANDLE), "Hello, world!\n", 14, NULL, NULL);
/*
* NtWriteFile(NtCurrentPeb()->ProcessParameter->StandardOutput,
* NULL,
* NULL,
@kawaii-ghost
kawaii-ghost / hello_win32O0.asm
Last active July 6, 2023 00:39
Hello world using Win32 on x64 Assembly unoptimized
extern WriteFile
extern ExitProcess
section .rdata
szText db `Hello, world!\n\0`
cbLength equ $szText-1
section .text
global start
start:
sub rsp, 40 ;
@kawaii-ghost
kawaii-ghost / .prospector.yaml
Created April 3, 2023 00:24 — forked from CTimmerman/.prospector.yaml
Out Of Memory (OOM) Killer to save your SSD and other processes.
pylint:
disable:
- line-too-long
- multiple-imports
- pointless-string-statement
- too-many-nested-blocks
#include <liburing.h>
#include <stdio.h>
#include <unistd.h>
#include <wchar.h>
int main(void)
{
struct io_uring ring;
io_uring_queue_init(1, &ring, 0);