Put this in the file /etc/systemd/system/irssiscreen@.service
[Unit]
Description=irssiscreen
After=network.target
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
// FILENAME: server_WelcomeCredits.sqf | |
// ===== | |
// SCRIPT NAME: Server Intro Credits Script by IT07 | |
// SCRIPT VERSION: v1.3.7 BETA | |
// Credits for original script: Bohemia Interactive http://bistudio.com | |
// ========== SCRIPT CONFIG ============ | |
_onScreenTime = 6; //how long one role should stay on screen. Use value from 0 to 10 where 0 is almost instant transition to next role | |
//NOTE: Above value is not in seconds. It is percentage. Default: 6 |
PS1='\[\033[1;31m\]\W/\[\033[0m\] ' | |
##### DEFAULTS ##### | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
PROMPT_COLOR='35;1m' | |
export HISTCONTROL=ignoreboth |
<? | |
header("Content-type: text/html; charset=utf-8"); | |
if(empty($_SERVER['PHP_AUTH_USER'])) { | |
header('WWW-Authenticate: Basic realm=""'); | |
header('HTTP/1.0 401 Unauthorized'); | |
echo 'Login and Password Required'; | |
exit; | |
} else { | |
echo "Username: ".$_SERVER['PHP_AUTH_USER']."<br>"; | |
echo "Password: ".$_SERVER['PHP_AUTH_PW']."<p>"; |
Put this in the file /etc/systemd/system/irssiscreen@.service
[Unit]
Description=irssiscreen
After=network.target
#!/bin/bash | |
aptitude -y install expect | |
// Not required in actual script | |
MYSQL_ROOT_PASSWORD=abcd1234 | |
SECURE_MYSQL=$(expect -c " | |
set timeout 10 |
rsync (Everyone seems to like -z, but it is much slower for me)
#!/bin/bash | |
# | |
# Example of how to parse short/long options with 'getopt' | |
# | |
OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"` | |
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi | |
echo "$OPTS" |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |