This file contains hidden or 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
-- Create table users with all needed fields | |
CREATE TABLE IF NOT EXISTS users ( | |
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
email VARCHAR(50) UNIQUE, | |
password VARCHAR(50), | |
firstname VARCHAR(30), | |
lastname VARCHAR(30), | |
company VARCHAR(30), | |
country VARCHAR(30) | |
); |
This file contains hidden or 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: gitPush.sh | |
# | |
# USAGE: ./gitPush.sh | |
# | |
# DESCRIPTION: | |
# | |
# OPTIONS: --- |
This file contains hidden or 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
import csv | |
import sys | |
def parseLinks(fileName): | |
redirectsList = [] | |
with open(fileName, 'rb') as f: | |
reader = csv.reader(f) | |
next(reader, None) # Skip CSV file headers | |
for row in reader: | |
destination = row[3].split(' ')[0] |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<title>Error|DeployHandler</title> | |
<meta charset="utf-8" /> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet"> |
This file contains hidden or 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
# Get the application gateway | |
$gw = Get-AzureRmApplicationGateway -Name DHProductionGatewayFE -ResourceGroupName DeployHandler | |
# Get the existing HTTPS listener | |
$httpslistener = Get-AzureRmApplicationGatewayHttpListener -Name appgatewayhttplistener -ApplicationGateway $gw | |
# Get the existing front end IP configuration | |
$fipconfig = Get-AzureRmApplicationGatewayFrontendIPConfig -Name appgatewayfrontendip -ApplicationGateway $gw | |
# Add a new front end port to support HTTP traffic |
This file contains hidden or 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 | |
if($argc == 2){ | |
$db['db_host'] = '127.0.0.1'; | |
$db['db_username'] = 'username'; | |
$db['db_password'] = 'password'; | |
$db['db_databaseName'] = 'db'; | |
$db['db_port'] = '3306'; // This is default MySql port, you can change it if needed | |
foreach ($db as $key => $value) { | |
define(strtoupper($key), $value); | |
} |
This file contains hidden or 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 | |
#VARS | |
now=$(date) | |
nowDate="$(date +'%d-%m-%Y')" | |
nowTime="$(date +'%H%M')" | |
workDir="/root/backups/" | |
fileName="backup_wp_$nowTime.tar.gz" | |
fileNameOffSite="backup_wp_$nowTime_$nowDate.tar.gz" |
This file contains hidden or 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
--- | |
- hosts: | |
- containers | |
tasks: | |
#Check if nestegg3.py main script file exists | |
- stat: | |
path: /usr/local/sbin/nestegg3.py | |
register: resultPy | |
NewerOlder