This file contains 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
#!/usr/bin/env php | |
<?php | |
// SPDX-License-Identifier: GPL-2.0-only | |
const LOCK_FILE = "/tmp/public_inbox.lock"; | |
function clean_header_val(string $str): string | |
{ | |
$ex = explode("\n", $str); | |
foreach ($ex as &$v) |
This file contains 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
<?php | |
const DB_HOST = "1.1.1.1"; | |
const DB_USER = "1"; | |
const DB_PASS = "1"; | |
const DB_PORT = 3306; | |
const DB_NAME = "00002_indihome"; | |
$g_user_hashtable = []; |
This file contains 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
<?php | |
const DB_HOST = "1.1.1.1"; | |
const DB_USER = "root"; | |
const DB_PASS = "???"; | |
const DB_PORT = 3306; | |
const DB_NAME = "00002_indihome"; | |
function pdo(): PDO | |
{ |
This file contains 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
<?php | |
function gen_grid(float $total_value, float $total_amount, | |
int $nr_sell_grid, float $sell_percent_interval, | |
float $sell_percent_init_margin, | |
float $total_prep_value, int $nr_buy_grid, | |
float $buy_percent_interval, float $buy_percent_init_margin) | |
{ | |
$sell_lines = []; | |
$avg_price = $total_value / $total_amount; |
This file contains 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
<center> | |
<div class="ib-station-name"><div style="display:inline" class="fn org"><span style="display:inline-block; position:relative; vertical-align:middle; border:6.25px solid #009BBF; border-radius:50%; margin:1px; height:37.5px; width:37.5px; line-height:100%; background:white; font-size:18.75px"><span style="position:absolute; left:0; width:37.5px; text-align:center; font-weight:bold; color:black; top:1px; height:16px; line-height:16px; font-size:16px;">T</span><span style="position:absolute; bottom:2.5px; left:0; height:19px; width:37.5px; line-height:19px; text-align:center; font-weight:bold; font-size:19px; color:black;">09</span></span> <span style="display:inline-block; position:relative; vertical-align:middle; border:6.25px solid #F62E36; border-radius:50%; margin:1px; height:37.5px; width:37.5px; line-height:100%; background:white; font-size:18.75px"><span style="position:absolute; left:0; width:37.5px; text-align:center; font-weight:bold; color:black; top:1px; height:16px; line-height:16px; font |
This file contains 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
let rdx = document.getElementById('rdx'); | |
let c = rdx.children; | |
let arr = []; | |
for (i of c) { | |
let x = i.children; | |
if (x.length < 4) | |
continue; | |
if (!x[0].innerText || !x[1].innerText || !x[2].innerText) | |
continue; |
This file contains 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
// SPDX-License-Identifier: GPL-2.0-only | |
/* | |
* Simple CRUD with x86-64 Assembly (System V ABI). | |
*/ | |
#define MAX_INPUT_LEN 255 | |
#define SEEK_END 2 | |
/* | |
* The struct stored in the DB looks like this: |
This file contains 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
Makefile | 10 ++--- | |
README.md | 97 ++++++++++++++++++++++++++++++---------- | |
src/core/src/hev-socks5-server.c | 42 ++++++++++------- | |
3 files changed, 103 insertions(+), 46 deletions(-) | |
diff --git a/Makefile b/Makefile | |
index 4fec989e7531d10c..db449cb220f2e6c7 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -10,10 +10,10 @@ CCFLAGS=-O3 -pipe -Wall -Werror $(CFLAGS) \ |
This file contains 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
[pid 7604] [00000000006aa98f] accept(21, NULL, NULL) = 94 | |
[pid 7604] [00000000006a821f] ioctl(94, FIONBIO, [1]) = 0 | |
[pid 7604] [00000000006aa98f] accept(21, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable) | |
[pid 7604] [00000000006aa4ce] epoll_ctl(22, EPOLL_CTL_ADD, 94, {EPOLLIN|EPOLLOUT|EPOLLET, {u32=2415928312, u64=140499386115064}}) = 0 | |
[pid 7604] [00000000006aabbe] recvfrom(94, "w\1", 2, 0, NULL, NULL) = 2 | |
[pid 7604] [00000000006aabbe] recvfrom(94, "\0", 1, 0, NULL, NULL) = 1 | |
[pid 7604] [00000000006aadfe] sendto(94, "\5\0", 2, 0, NULL, 0) = 2 | |
[pid 7604] [00000000006aabbe] recvfrom(94, 0x7fc8a6570c10, 4, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable) | |
[pid 7604] [00000000006aabbe] recvfrom(94, 0x7fc8a6570c10, 4, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable) | |
[pid 7604] [00000000006aabbe] recvfrom(94, "\5\1\0\3", 4, 0, NULL, NULL) = 4 |
This file contains 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
int OK = 0; | |
int ERR_IO_PENDING = -1; | |
int ERR_FAILED = -2; | |
int ERR_ABORTED = -3; | |
int ERR_INVALID_ARGUMENT = -4; | |
int ERR_INVALID_HANDLE = -5; | |
int ERR_FILE_NOT_FOUND = -6; | |
int ERR_TIMED_OUT = -7; | |
int ERR_FILE_TOO_BIG = -8; | |
int ERR_UNEXPECTED = -9; |
NewerOlder