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
CFLAGS=-Wall -Werror -lssl -lcrypto | |
default: testcase1 testcase2 testcase3 testcase4 base | |
base: base.c filesys.c | |
gcc -o base base.c filesys.c $(CFLAGS) | |
testcase1: filesys.c testcase1.c base | |
gcc -o testcase1 testcase1.c filesys.c $(CFLAGS) |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.2</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="ExcelDataReader" Version="3.4.2" /> | |
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.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
<?php | |
$serverName = "WNETBOOK-WIN7\SQLEXPRESS"; | |
$connectionInfo = array( "Database"=>"master"); | |
$conn = sqlsrv_connect( $serverName, $connectionInfo); | |
if( $conn ) echo "Conectado a la Base de Datos SQL Server!"; | |
else{ | |
echo "NO se puede conectar a la Base de Datos SQL Server"; | |
die( print_r( sqlsrv_errors(), true)); | |
} |
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
require_relative 'cne_parser' | |
if ARGV.size>0 | |
data = CneService::find(ARGV[0]) | |
puts data.inspect | |
else | |
puts "Uso: #{$0} cedula" | |
end |
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 ruby | |
#Pre-requisite: gem install mail (https://github.com/mikel/mail) | |
require 'mail' | |
mysql_username = 'root' | |
mysql_password = '123456' | |
mysql_database = 'your database' # consider use of ARGV | |
file_suffix = Time.new.strftime('%Y%m%d_%H%M%S') | |
mysql_backup_file = "backup-#{mysql_database}-#{file_suffix}.sql.gz" |
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
# Instalación del Ambiente LAMP en Ubuntu 13.10 | |
# William Yanez - [email protected] - Febrero 2014 | |
# | |
#Git | |
echo " *** Instalando Git ***" | |
aptitude install -y git git-gui gitk git-flow | |
#Apache2 | |
echo " *** Instalando Apache ***" |
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
#Liberar Memoria | |
free -m | |
sudo sync | |
sudo sysctl -w vm.drop_caches=3 | |
free -m | |
#Eliminar paquetes innecesarios | |
sudo apt-get remove unity-lens-music | |
sudo apt-get autoremove unity-scope-musicstores | |
#sudo apt-get remove ubuntuone-client |
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
# Script para liberar memoria RAM | |
# Fuente: http://ubunlog.com/como-liberar-memoria-ram-en-ubuntu/ | |
# 13/03/2013 | |
free -m | |
sudo sync | |
sudo sysctl -w vm.drop_caches=3 | |
free -m |
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 | |
# | |
# Scripts de Instalacion de Paquetes para Ubuntu 13.04 | |
# William Yanez - | |
# | |
# Creado 26/06/11 | |
# Actualizado al 31/01/2012 (Ubuntu 11.10) | |
# Actualizado al 12/02/2013 (Ubuntu 12.04) | |
# Actualizado al 03/06/2013 (Ubuntu 13.04) | |
####################### FUNCIONES DE INSTALACION ############################### |
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
Descargamos el JRE: | |
http://java.com/en/download/linux_manual.jsp | |
Instalamos: | |
$ sudo tar xvzf jre-7u45-linux-i586.tar.gz -C /usr/lib/jvm/ | |
$ sudo chown root: /usr/lib/jvm/jre1.7.0_45/ -R | |
$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0_45/bin/java 0 | |
$ sudo update-alternatives --config java | |
Existen 2 opcioens para la alternativa java (que provee /usr/bin/java). |
NewerOlder