Below is a description on how to use the classes in the below script
###Include script and set up db variables
include 'zdb.php';
Descarga el paquete de instalacion | |
wget https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm | |
Instala la llave | |
wget https://s3.amazonaws.com/amazoncloudwatch-agent/assets/amazon-cloudwatch-agent.gpg | |
gpg --import amazon-cloudwatch-agent.gpg # obten el <key-value> | |
gpg --fingerprint <key-value> # obten el fingerprint | |
Descarga la firma y verifica el paquete |
[ | |
{ | |
"value": "Aguachica", | |
"label": "Aguachica" | |
}, | |
{ | |
"value": "Apartado", | |
"label": "Apartadó" | |
}, | |
{ |
<option value="">Seleccione</option> | |
<option value="Aguachica">Aguachica</option> | |
<option value="Apartado">Apartadó</option> | |
<option value="Arauca">Arauca</option> | |
<option value="Armenia">Armenia</option> | |
<option value="Barrancabermeja">Barrancabermeja</option> | |
<option value="Barranquilla">Barranquilla</option> | |
<option value="Bello">Bello</option> | |
<option value="Bogotá">Bogotá D.C.</option> | |
<option value="Bucaramanga">Bucaramanga</option> |
function go() { | |
var userId = prompt('Username?', 'Guest'); | |
checkIfUserExists(userId); | |
} | |
var USERS_LOCATION = 'https://SampleChat.firebaseIO-demo.com/users'; | |
function userExistsCallback(userId, exists) { | |
if (exists) { | |
alert('user ' + userId + ' exists!'); |
#Setup bridge for guest wifi (br1) with separate subnet/dhcp | |
# setup virtual wifi wlan0.1 | |
#the following rules go under administration -> scripts -> firewall then reboot after saving | |
#NOTE: -I inserts at the beginning be default, so restrictive rules at the top, permissive at the bottom. | |
#default deny guest | |
iptables -I FORWARD -i br1 -j DROP | |
#Removes guest access to physical network |
#!/bin/bash | |
# This script assumes you have ssh access to a remote server | |
# Both databases are backed up to sql files in the same directory | |
# this script is executed from. | |
# Usage: | |
# 1. Make sure this file is executable with `chmod +x mysqlsync` | |
# 2. Set the credentials for the variables at the top | |
# (Remember, no spaces around the '=' sign) | |
# 3. Run it from a directory where you'd like the backup files to go: |
This assumes you are now connected to the server via SSH.
sudo -s
Enter root mode for admin accessgroupadd devgroup
Create new group to be later granted access to /var/www/htmluseradd -G root,devgroup masterdev
Create new root user. Also add to the devgrouppasswd masterdev
Change password for the new root userwget -mkEpnp http://example.org |
$(document).ready(function(){ | |
var fullDate = new Date(); | |
var twoDigitMonth = (fullDate.getMonth()+1)+"";if(twoDigitMonth.length==1) twoDigitMonth="0" +twoDigitMonth; | |
var twoDigitDate = fullDate.getDate()+"";if(twoDigitDate.length==1) twoDigitDate="0" +twoDigitDate; | |
var currentDate = twoDigitDate + "/" + twoDigitMonth + "/" + fullDate.getFullYear(); | |
$("#datepicker").val(currentDate); | |
}); |