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 | |
$numero_cedula = $_GET['cedula']; | |
//CONEXION A LA BASE DE DATOS | |
$username = "root"; | |
$password = "root"; | |
$hostname = "localhost"; |
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 | |
//CONEXION A LA BASE DE DATOS | |
$username = "root"; | |
$password = "root"; | |
$hostname = "localhost"; | |
$link = mysql_connect($hostname, $username, $password); | |
if (!$link) { | |
die('Could not connect: ' . mysql_error()); | |
} |
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
<VirtualHost *:80> | |
# Admin email, Server Name (domain name), and any aliases | |
ServerAdmin [email protected] | |
ServerName sub.domain.com | |
ServerAlias www.sub.domain.com | |
# Index file and Document Root (where the public files are located) | |
DirectoryIndex index.html index.php | |
DocumentRoot /var/www/subdomainfolder/public_html | |
# Log file locations |
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 | |
# ESTE ARCHIVO TIENE POR PROPOSITO FACILITAR LA MIGRACION DE UN SITIO EN LOCAL | |
# A UN SITIO ANDANDO EN LINODE. SOLO PARA EL CASO DE ACTUALIZACIONES | |
#DECLARACI脫N DE VARIABLES NECESARIAS | |
greentext="\033[32m" | |
bold="\033[1m" | |
normal="\033[0m" | |
bkpdate=$(date +"%Y%m%d%s") |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty32" | |
config.vm.network 'forwarded_port', guest: 3000, host: 3000 | |
config.vm.provision 'shell', path: 'install_software.sh' |
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
UPDATE wp_options | |
SET option_value = 'http://yourdomain.com/' | |
WHERE option_name = 'siteurl'; | |
UPDATE wp_options | |
SET option_value = 'http://yourdomain.com/' | |
WHERE option_name = 'home'; | |
/* M谩s informaci贸n: | |
https://otroespacioblog.wordpress.com/2014/12/10/la-solucion-definitiva-al-error-de-las-cookies-en-wordpress |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress |
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
# Change these | |
set :repo_url, '[ENTER YOUR GIT REPO URL HERE]' | |
set :user, 'macsa' | |
set :branch, 'test' | |
set :application, 'staging' | |
set :puma_threads, [4, 16] | |
set :puma_workers, 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
#!/usr/bin/expect -f | |
spawn ssh-add /home/[USER]/.ssh/gh_rsa | |
expect "Enter passphrase for /home/[USER]/.ssh/gh_rsa:" | |
send "[PUT-PASSPHRASE HERE]\n"; | |
interact | |
## Call with command | |
## expect gh_automatic_login.sh | |
#Found in: |
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 | |
find /path/to/folder -depth -name ".DS_Store" -exec rm {} \; | |
find /path/to/folder -depth -name "._*" -exec rm -Rf {} \; |
OlderNewer