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
#!/usr/bin/env bash | |
PWD=`pwd` | |
SCRIPT_DIR=`dirname -- "$0"` | |
cd $SCRIPT_DIR | |
wget https://wb.setupad.com/api/getAdsTXT/1793/download -q -O ads-new.txt | |
if [ `cat ads-new.txt | wc -l` -gt 0 ]; then | |
echo "setupad.com, 1793, DIRECT" >> ads-new.txt |
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
# Set-ExecutionPolicy Bypass -Scope Process -Force; or use run.bat | |
$cred = Import-Clixml .\backup.cred | |
iex "wbadmin start backup -allCritical -backupTarget:\\backup-server.lan\backup\komputery\ -user:$($cred.UserName) -password:$($cred.GetNetworkCredential().password) -quiet > .\backup.log" |
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
<? | |
// based on: | |
// https://www.mailpiler.org/wiki/current:custom-authentication | |
$config['CUSTOM_EMAIL_QUERY_FUNCTION'] = 'set_email_aliases'; | |
function set_email_aliases($username = '') { | |
$session = Registry::get('session'); | |
$data = $session->get("auth_data"); |
OlderNewer