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
void print_ip(unsigned int ip) | |
{ | |
unsigned char bytes[4]; | |
bytes[0] = ip & 0xFF; | |
bytes[1] = (ip >> 8) & 0xFF; | |
bytes[2] = (ip >> 16) & 0xFF; | |
bytes[3] = (ip >> 24) & 0xFF; | |
printf("%d.%d.%d.%d\n", bytes[3], bytes[2], bytes[1], bytes[0]); | |
} |
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
docker run -it --rm -v $(pwd)/crdb/certs:/certs -v $(pwd)/crdb/my-safe-directory:/my-safe-directory docker.io/cockroachdb/cockroach:latest cert create-ca --certs-dir=/certs --ca-key=/my-safe-directory/ca.key | |
docker run -it --rm -v $(pwd)/crdb/certs:/certs -v $(pwd)/crdb/my-safe-directory:/my-safe-directory docker.io/cockroachdb/cockroach:latest cert create-node vps-1-1.8n1.io 1.2.3.4 aaaa:bbbb:cccc:dddd:eeee::ffff 127.0.0.1 localhost vps-1-1 --certs-dir=/certs --ca-key=/my-safe-directory/ca.key | |
docker run -it --rm -v $(pwd)/crdb/certs:/certs -v $(pwd)/crdb/my-safe-directory:/my-safe-directory docker.io/cockroachdb/cockroach:latest cert create-client root --certs-dir=/certs --ca-key=/my-safe-directory/ca.key | |
docker run -it -d --restart always --net host -v $(pwd)/crdb/data:/cockroach/cockroach-data -v $(pwd)/crdb/certs:/certs docker.io/cockroachdb/cockroach:latest start --certs-dir=/certs --join=vps-1-2.8n1.io,vps-1-3.8n1.io --listen-addr=:26257 --http-addr=:443 --advertise-addr=vps-1-1.8n1.io | |
docker run -it - |
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
FROM ubuntu:latest | |
ENV ADMIN_EMAIL="[email protected]" | |
ENV SID="01A" | |
ENV SERVER_NAME="irc.lame-network.local" | |
ENV NETWORK_NAME="LameNet" |
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
In [104]: id_hi = 3491199 | |
...: id_lo = 1322211 | |
...: id_hi = 3491199 | |
...: id_lo = 1322211 | |
...: torn_actual_total_players = 2067868 | |
...: id_hi - torn_actual_total_players | |
...: 1423331 - 1322211 | |
...: id_hi / torn_actual_total_players | |
...: id_hi / 10000 | |
Out[104]: 349.1199 |
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
#NO_UNIVERSE | |
cpu ARM64 | |
ident BROADCOM | |
include "std.arm64" | |
include "std.dev" | |
include "std.broadcom" | |
# Standard kernel config items for all ARM64 systems. |
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
#!/usr/bin/env perl | |
use Env; | |
use HTTP::Server::Simple::CGI::PreFork; | |
{ | |
package WebServer; | |
use base 'HTTP::Server::Simple::CGI::PreFork'; | |
use File::Slurp; | |
sub handle_request { |
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
FROM ubuntu:noble | |
RUN apt -y update | |
RUN apt -y install apache2 perl git cpanminus | |
WORKDIR /tmp | |
RUN git clone https://github.com/PrefKarafuto/ex0ch.git |
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
<?php | |
/** | |
* Created by Klaas Tammling. | |
* Project: anope2atheme | |
* User: ktammling | |
* Date: 10.10.2016 | |
* Time: 15:55 | |
*/ | |
$mu_hold = 0x00000001; |
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/sys/kern/kern_jail.c b/sys/kern/kern_jail.c | |
index 6ffeab59112b..fca83c74671b 100644 | |
--- a/sys/kern/kern_jail.c | |
+++ b/sys/kern/kern_jail.c | |
@@ -325,8 +325,11 @@ sys_jail(struct thread *td, struct jail_args *uap) | |
struct jail j; | |
error = copyin(uap->jail, &version, sizeof(uint32_t)); | |
- if (error) | |
+ if (error) { |
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
#!/bin/bash | |
# Exit codes: | |
# 1: No input file specified | |
# 2: Input file not found | |
# 3: WAV conversion failed | |
# 4: Empty WAV file created | |
# 5: fdkaac encoding failed | |
# 0: Success |