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 | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateRegionsTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
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
telegraf: | |
image: telegraf | |
restart: always | |
environment: | |
HOST_PROC: /rootfs/proc | |
HOST_SYS: /rootfs/sys | |
HOST_ETC: /rootfs/etc | |
hostname: localhost | |
volumes: | |
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro |
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 | |
// Start / Stop / Reboot MySQL Database server using SSH with PHP | |
// Requires the library from phpseclib.sourceforge.net / https://github.com/phpseclib/phpseclib | |
// Server user login data | |
$ssh_user = ''; | |
$ssh_password = ''; | |
$ssh_server_ip = ''; | |
?> | |
<!DOCTYPE html> |
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
data: | |
image: debian:jessie | |
user: www-data | |
volumes: | |
- ./src:/var/www/ | |
web: | |
image: php:5.6-apache | |
links: | |
- db |
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 | |
# usage : ./rshutdown.sh host user password | |
host=$1 | |
username=$2 | |
password=$3 | |
#SSH, requires sshpass package installed | |
sshpass -p "$password" ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $username@$host "echo $password | sudo -S poweroff" > /dev/null 2>&1 |
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
/* Estructura y Datos de las Regiones, Provincias */ | |
/* y Comunas de Chile. */ | |
/* */ | |
/* Fecha: Julio 2010 */ | |
/* Autor: Juan Pablo Aqueveque - juque.cl */ | |
-- | |
-- Comunas | |
-- | |
DROP TABLE IF EXISTS `comunas`; |