I hereby claim:
- I am markallenpark on github.
- I am markallenpark (https://keybase.io/markallenpark) on keybase.
- I have a public key whose fingerprint is 702D E428 F8AB 0252 2C1A 9607 B187 83B1 C7B7 C1CF
To claim this, I am signing this object:
<?php | |
$input_valid = false; | |
while ( ! $input_valid ) { | |
$input = readline('Input octal permission string: '); | |
if (! preg_match('/[0-7]/', $input)) | |
{ |
#!/bin/bash | |
## | |
# Simple script to get cockpit to use certs issued by FreeIPA, rather than | |
# self-signed certificates. | |
# | |
# This script is for distributions compatible with RHEL 8 or newer, and Fedora 28 or newer. | |
# Older versions will require extra steps. I don't run anything older than RHEL 9 or | |
# Fedora 39, so I didn't bother with those. | |
# |
<?php | |
$client_ip = $_SERVER['REMOTE_ADDR']; | |
$ip_version = (filter_var($client_ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) ? | |
'4' : | |
'6'; | |
$tz = new DateTimeZone('UTC'); | |
$datetime = new DateTime(); | |
$datetime->setTimezone($tz); |
#!/bin/sh | |
ls -l | awk '{ | |
k = 0 | |
s = 0 | |
for( i = 0; i <= 8; i++ ) | |
{ | |
k += ( ( substr( $1, i+2, 1 ) ~ /[rwxst]/ ) * 2 ^( 8 - i ) ) | |
} | |
j = 4 |
I hereby claim:
To claim this, I am signing this object:
#!/bin/env python3 | |
import crypt | |
from getpass import getpass | |
print('Generate password hash\n\n----\n') | |
password = getpass('Password: ') | |
password_confirm = getpass('Confirm Password: ') | |
print('\n') |
[Unit] | |
Description=PaperMC Server | |
After=network.target | |
[Service] | |
WorkingDirectory=/opt/paper | |
User=paper | |
Group=paper |
#!/bin/env python3 | |
import os | |
import sys | |
def sendCommand(command): | |
os.system('/usr/bin/screen -p 0 -S paper -X stuff "' + command + '"') | |
def getCommand(): |