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
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 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 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 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 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
TITLE: Kerberos V | |
LFS VERSION: any | |
AUTHOR: Succendo Fornacalis <[email protected]> | |
SYNOPSIS: | |
Installing Kerberos V on clients and the KDC | |
HINT: | |
So, you want to run Kerberos eh? Or just curious what Kerberos is? Well in such | |
a case I will give you my explanation of Kerberos. Kerberos is an authentication |
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
// cc -g3 -I /usr/local/include -l usrsctp -L /usr/local/lib -l pthread server.c -o server | |
// [email protected] | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdarg.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <sys/time.h> |
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
Host * | |
ConnectTimeout 32 | |
Compression no | |
ConnectionAttempts 8 | |
CheckHostIP yes | |
ControlPath /tmp/ssh-%r@%h:%p.socket | |
EnableSSHKeysign no | |
ExitOnForwardFailure yes | |
ForwardX11 no | |
ForwardX11Trusted no |
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
sudo btattach -P bcm --speed 115200 -B /dev/ttyACM0 | |
Attaching Primary controller to /dev/ttyACM0 | |
Switched line discipline from 0 to 15 | |
Device index 1 attached | |
[ 1334.338855] Bluetooth: hci1: BCM: chip id 144 | |
[ 1334.340953] Bluetooth: hci1: BCM: features 0x0e | |
[ 1334.363807] Bluetooth: hci1: Find Me Target | |
[ 1334.363818] Bluetooth: hci1: BCM (001.003.005) build 0000 | |
[ 1334.374913] Bluetooth: hci1: BCM: firmware Patch file not found, tried: |
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
[ 751.738319] hid_xpadneo: loading out-of-tree module taints kernel. | |
[ 751.738631] loaded hid-xpadneo v0.9-144-g9b3b696 | |
[ 760.908133] xpadneo 0005:045E:0B13.0009: BLE firmware version 5.01, please upgrade for better stability | |
[ 760.908137] xpadneo 0005:045E:0B13.0009: pretending XB1S Windows wireless mode (changed PID from 0x0B13 to 0x028E) | |
[ 760.908138] xpadneo 0005:045E:0B13.0009: working around wrong SDL2 mappings (changed version from 0x00000501 to 0x00001130) | |
[ 760.908140] xpadneo 0005:045E:0B13.0009: report descriptor size: 283 bytes | |
[ 760.908141] xpadneo 0005:045E:0B13.0009: fixing up Rx axis | |
[ 760.908141] xpadneo 0005:045E:0B13.0009: fixing up Ry axis | |
[ 760.908142] xpadneo 0005:045E:0B13.0009: fixing up Z axis | |
[ 760.908143] xpadneo 0005:045E:0B13.0009: fixing up Rz axis |
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
for x in $(curl -L -k -s http://www.textfiles.com/artscene/ansi/bbs/ | tr ' ' '\n' | grep HREF | tr '"' ' ' | awk '{print $2}' | grep -P "(ans|vt)" | grep -v ".png" | grep "." | shuf); do | |
#echo $x | |
curl -L -k -s http://www.textfiles.com/artscene/ansi/bbs/$x | iconv -f 437 -t utf-8 | pv -q -L 600 | |
done |
NewerOlder