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
server { | |
listen 80; | |
root /var/www/opus/public; | |
index index.php; | |
server_name opus.misitio.com; | |
location / { |
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 FOREIGN_KEY_CHECKS=0; | |
-- ---------------------------- | |
-- Table structure for `estados` | |
-- ---------------------------- | |
DROP TABLE IF EXISTS `estados`; | |
CREATE TABLE `estados` ( | |
`idestado` int(11) NOT NULL, | |
`estado` varchar(70) NOT NULL, | |
PRIMARY KEY (`idestado`) |
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 | |
cd $HOME | |
function updateinstall(){ | |
echo -e "Updating system and installing tools...\n" | |
sudo apt-get update | |
sudo apt-get install -y curl gnupg build-essential |
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
extract () { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjf $1 ;; | |
*.tar.gz) tar xzf $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) rar x $1 ;; | |
*.gz) gunzip $1 ;; | |
*.tar) tar xf $1 ;; | |
*.tbz2) tar xjf $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
public static void EnviaCorreoInterno(string cAsunto, List<string> destinatarios, string cBody, List<string> cAdjuntos, int port, bool ssl, string usr, string pass, string host, string correo) | |
{ | |
var mail = new MailMessage(); | |
bool succesSend = true; | |
mail.From = new MailAddress(correo); | |
var smtp = new SmtpClient | |
{ | |
Port = port, |
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
// FROM http://www.codeproject.com/Tips/777322/A-Faster-File-Copy | |
/// <summary> Time the Move | |
/// </summary> | |
/// <param name="source">Source file path</param> | |
/// <param name="destination">Destination file path</param> | |
public static void MoveTime (string source, string destination) | |
{ | |
DateTime start_time = DateTime.Now; | |
FMove (source, destination); | |
long size = new FileInfo (destination).Length; |
NewerOlder