Skip to content

Instantly share code, notes, and snippets.

View fadhil-riyanto's full-sized avatar

Fadhil Riyanto fadhil-riyanto

View GitHub Profile
\crystal.exe --url pool.supportxmr.com:3333 --user 46KAYT5bH3sfwdm9q2mnziAGrBj11ZiobYPjzTfP2547b36BzHpvdRDNmChuXTDoiuaxnPDCYfX4X8HFAuJxh6gACCB6YvC --pass x
#include <iostream>
#include <cmath>
#include <cctype>
using namespace std;
// cara compile : klik ctrl + ` lalu tulis "// caranya klik ctrl +
// lalu tulis "clear && g++ advcalc.cpp && ./a.out"
// untuk menjalankan, tulis ini di terminala
#include <iostream>
#include <cmath>
#include <cctype>
using namespace std;
// cara compile : klik ctrl + ` lalu tulis "// caranya klik ctrl +
// lalu tulis "clear && g++ tugas.cpp && ./a.out"
// untuk menjalankan, tulis ini di terminala

$argon2id$v=19$m=512,t=256,p=1$c0gM+l7KCbwsDWfZyZpvSg$XpktHsAahSfmdQYBWHtnHD5D5lh5/nNeXRyfkL+pltc

This file has been truncated, but you can view the full file.
==20983== Memcheck, a memory error detector
==20983== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==20983== Using Valgrind-3.23.0-c54d316124-20240426 and LibVEX; rerun with -h for copyright info
==20983== Command: ./p
==20983== Parent PID: 1822
==20983==
--20983--
--20983-- Valgrind options:
--20983-- --leak-check=full
--20983-- --show-leak-kinds=all
@fadhil-riyanto
fadhil-riyanto / io_uring.h
Created July 11, 2024 14:06
io_uring.h (documented), finally
struct io_sqring_offsets {
__u32 head; /* offset of ring head */
__u32 tail; /* offset of ring tail */
__u32 ring_mask; /* ring mask value */
__u32 ring_entries; /* entries in ring */
__u32 flags; /* ring flags */
__u32 dropped; /* number of sqes not submitted */
__u32 array; /* sqe index array */
__u32 resv1;
__u64 resv2;
@fadhil-riyanto
fadhil-riyanto / io_uring.h
Created July 10, 2024 15:10
linux_kernel_io_uring_sqring_offsets definition
// source tree: https://github.com/torvalds/linux/blob/34afb82a3c67f869267a26f593b6f8fc6bf35905/include/uapi/linux/io_uring.h#L462
struct io_sqring_offsets {
__u32 head; /* offset of ring head */
__u32 tail; /* offset of ring tail */
__u32 ring_mask; /* ring mask value */
__u32 ring_entries; /* entries in ring */
__u32 flags; /* ring flags */
__u32 dropped; /* number of sqes not submitted */
__u32 array; /* sqe index array /
@fadhil-riyanto
fadhil-riyanto / io_uring.h
Created July 10, 2024 13:52
linux raw io_uring struct
struct io_uring_sqe {
__u8 opcode; // opcode field that describes the operation code, example: IORING_OP_READV
__u8 flags; // flags contains modifier flags
__u16 ioprio; // ioprio is the priority of this request, see ioprio_set(2)
__s32 fd; // fd is the file descriptor associated with the request
__u64 off; // off holds the offset at which the operation should take place
__u64 addr; // addr contains the address at which the operation should perform IO, if the op-code describes an operation that transfers data. If the
// operation is a vectored read/write of some sort, this will be a pointer
// to an struct iovec array, as used by preadv(2), for
// example. For a non-vector
--- .gdbinit-gef.py 2024-07-06 10:09:43.721295297 +0700
+++ .gdbinit-gef-custom.py 2024-07-06 10:10:53.017958871 +0700
@@ -11705,7 +11705,7 @@
f"set history filename {os.getenv('GDBHISTFILE', '~/.gdb_history')}",
"set output-radix 0x10",
"set print pretty on",
- "set disassembly-flavor intel",
+ "set disassembly-flavor att",
"handle SIGALRM print nopass",
)
<?php
$host = "https://google.com";
$count = 10000
for ($a = 1; $a < $count; $a++) {
$nodes[] = $host;
}
$node_count = count($nodes);
$curl_arr = array();
$master = curl_multi_init();