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
#!/bin/bash | |
#setting variables | |
now=$(date) | |
domain="https://$1" | |
log="webmon.log" | |
#checking if no arguments | |
if [[ $1 = "" ]]; then | |
echo "Format: webmon.sh https://domain.com" |
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
#!/bin/bash | |
file="/data/buckets.txt" | |
count=$(cat "$file") | |
echo "There are $count buckets" |
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
<?php | |
$file = file_get_contents("filename.txt"); | |
$data = preg_replace("/[^A-Za-z0-9 ]/", '', $file); | |
$result = preg_split("/[\s,]+/", $data); | |
echo $result[1]; | |
echo $result[2]; |
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
if($event>$now): | |
if($event==""):else:$t=$event;endif; | |
elseif($event1>$now): | |
if($event1==""):else:$t=$event1;endif; | |
elseif($event2>$now): | |
if($event2==""):else:$t=$event2;endif; | |
elseif($event3>$now): | |
if($event3==""):else:$t=$event3;endif; | |
elseif($event4>$now): | |
if($event4==""):else:$t=$event4;endif; |
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
version: "2" | |
services: | |
icecast: | |
image: moul/icecast | |
environment: | |
- ICECAST_SOURCE_PASSWORD=secret | |
- ICECAST_ADMIN_PASSWORD=secret | |
- ICECAST_PASSWORD=secret | |
- ICECAST_RELAY_PASSWORD=secret |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; |