This file contains hidden or 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
diff --git a/src/gwproxy/ev/epoll.c b/src/gwproxy/ev/epoll.c | |
index 143786ab6fa9..e7495f63917b 100644 | |
--- a/src/gwproxy/ev/epoll.c | |
+++ b/src/gwproxy/ev/epoll.c | |
@@ -112,6 +112,9 @@ static int handle_ev_raw_dns_query(struct gwp_wrk *w) | |
ret = gwp_dns_res_complete_query(res, gcp->gdp, buf, len, | |
&gcp->target_addr); | |
+ if (ret == -EAGAIN) | |
+ return send_dns_payload(res, gcp); |
This file contains hidden or 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
Some of extreme events that caused significant shifts in U.S. interest | |
rates (avg per year). | |
1) Post-Pandemic Inflation Surge (2022-2023) | |
As the world emerged from the pandemic, a combination of supply chain | |
disruptions, strong consumer demand fueled by government stimulus, and | |
rising energy prices from the war in Ukraine unleashed the highest | |
inflation in four decades. To combat this surge, the Federal Reserve | |
embarked on its most aggressive rate-hiking cycle in years. Interest | |
rates were rapidly increased from just 0.08% in 2021 to over 5% by 2023 |
This file contains hidden or 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
viro@freezing-night:/tmp$ cat t.c | |
#include <stdlib.h> | |
#include <string.h> | |
#define __unsafe_optimization asm volatile("" ::: "memory") | |
#define __unsafe_optimization_end __unsafe_optimization | |
int main(void) | |
{ | |
__unsafe_optimization; | |
char* p = malloc(1000); | |
memset(p, 0, 1000); |
This file contains hidden or 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
viro@freezing-night:/tmp$ cat t.c | |
#include <stdlib.h> | |
#include <string.h> | |
int main(void) | |
{ | |
char* p = malloc(1000); | |
memset(p, 0, 1000); | |
__asm__ ("" ::"r"(p): "memory"); |
This file contains hidden or 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
There was a chat about Indomie: | |
A: "Is Indomie healthy?" | |
B: "it's healthy if you eat it with protein and fiber on the side (it's carb basically). it's not healthy if you eat in excess, as for all things too, always consume in moderation" | |
A: "That being said, if in daily healthy menu, I replace rice with Indomie everyday, with the same portion of carb, that is totally healthy? (( Assuming I also rebalance the natrium in the menu to keep up with Indomie seasonings ))" | |
Can you answer the A's last question? | |
----------------------------- | |
<think> |
This file contains hidden or 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
updated_at: Sat, 20 Jul 2024 07:21:00 +0700 | |
updated_by: viro_ssfs | |
======================================================================= | |
* Tue, 23 Jul 2024: | |
- SEC clears 5 spot Ethereum ETFs for trading. | |
Five Spot Ethereum ETFs to launch on July 23, Cboe confirms: |
This file contains hidden or 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
code review client.c [code style only] 26 october 2023 (for yuki) | |
44 if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { | |
45 perror("connect"); | |
46 close(fd); | |
47 return -1; | |
48 } | |
49 | |
hapus trailing white space di line 49 |
This file contains hidden or 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
code review server.c [code style + resource leak issue] 26 october 2023 (for yuki) | |
67 static int plug_client(int fd, struct sockaddr_in addr, struct server_ctx *srv_ctx) | |
68 { | |
69 struct client_state *cs = NULL; | |
70 char addr_str[INET_ADDRSTRLEN]; | |
71 uint16_t port; | |
72 uint32_t i; | |
73 | |
74 for (i = 0; i < NR_CLIENT; i++) { |
This file contains hidden or 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
iptables -t nat -N HTTP_LB | |
iptables -t nat -I OUTPUT -d 100.0.0.10/32 -p tcp -m tcp --dport 8081 -j HTTP_LB | |
iptables -t nat -A HTTP_LB -m statistic --mode nth --every 2 --packet 0 -j DNAT --to 127.0.0.5 | |
iptables -t nat -A HTTP_LB -j DNAT --to 127.0.0.6 | |
# open a new terminal (.5) | |
php -S 127.0.0.5:8081 | |
# open a new terminal (.6) |
This file contains hidden or 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
/* automatically generated by rust-bindgen 0.66.1 */ | |
#[repr(C)] | |
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] | |
pub struct __BindgenBitfieldUnit<Storage> { | |
storage: Storage, | |
} | |
impl<Storage> __BindgenBitfieldUnit<Storage> { | |
#[inline] | |
pub const fn new(storage: Storage) -> Self { |
NewerOlder