Skip to content

Instantly share code, notes, and snippets.

$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();
@fadhil-riyanto
fadhil-riyanto / encode_decode.php
Created May 14, 2021 04:19 — forked from LogIN-/encode_decode.php
PHP custom encode decode functions
<?php
function encode($string,$key) {
$key = sha1($key);
$strLen = strlen($string);
$keyLen = strlen($key);
for ($i = 0; $i < $strLen; $i++) {
$ordStr = ord(substr($string,$i,1));
if ($j == $keyLen) { $j = 0; }
$ordKey = ord(substr($key,$j,1));
$j++;
function rampingkan_teks(string, type) {
if (type == "NEW_LINE") {
ipes = '\r\n';
} else if (type == "SPACE") {
ipes = " ";
} else if (type == "KOMA") {
ipes = ",";
} else if (type == "TITIK") {
ipes = ".";
} else if (type == "NEW_LINE_SPACE") { ipes = '\r\n' + " "; }
<?php
function rampingkan_text($string, $type)
{
//PERTAMA cek kondisi dia milih type rampingkan apanya
if($type == "NEW_LINE"){
$ipes = PHP_EOL;
}elseif($type == "SPACE"){
$ipes = " ";
}elseif($type == "KOMA"){
$ipes = ",";