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
/* | |
Crear "n" procesos con fork() en C++ | |
por Daniel Gacitúa | |
<danielgacituav@gmail.com> | |
*/ | |
#include <iostream> | |
#include <cstring> | |
#include <cstdlib> | |
#include <cerrno> |
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
#include <iostream> | |
int main() { | |
std::cout << "hi!" << std::endl; | |
return 0; | |
} |
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 | |
echo -n "Ingrese URL del Template a descargar: " | |
read url | |
wget -r -p -U Mozilla -e robots=off --wait 1 $url |
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
# Repositorios para Debian Testing con Mirrors Chilenos | |
# Creado por Daniel Gacitúa <daniel.gacitua@usach.cl> para CGL USACH | |
# Debes guardar este archivo en /etc/apt/sources.list | |
# Actualizado el 16/01/2016 | |
# Repos por Default (mirrors chilenos) # | |
deb http://mirrors.tecnoera.com/debian/ testing main contrib non-free | |
deb http://mirrors.tecnoera.com/debian/ testing-updates main contrib non-free | |
deb http://security.debian.org/ testing/updates main contrib non-free |
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 | |
# OpenShift deploy action hook for Grails projects | |
# Based on https://github.com/ronicthomas/openshift-grails-buildpack-jbossews | |
set -x | |
USER_ENV_PATH="$OPENSHIFT_REPO_DIR/.openshift/config/.env" | |
[[ -f $USER_ENV_PATH ]] && source "$USER_ENV_PATH" | |
VERSION=`awk -F'=' '/app.grails.version/ { print $2 }' $OPENSHIFT_REPO_DIR/application.properties | tr -d '\r\n'` |
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
# Poner al final del archivo ~/.profile | |
export ANDROID_HOME="$HOME/Software/android-sdk" | |
export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" |
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/sh | |
# Save in /etc/cron.daily/trim | |
# Then make it executable with: sudo chmod +x /etc/cron.daily/trim | |
LOG=/var/log/trim.log | |
echo "*** $(date -R) ***" >> $LOG | |
fstrim -a -v >> $LOG |
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
@book{ejemploLibro, | |
title = "Comunicaciones y redes de computadores", | |
author = "William Stallings", | |
publisher = "Pearson Prentice Hall", | |
location = "Madrid", | |
isbn = {8420541109 9788420541105}, | |
date = {2004} | |
} | |
@online{ejemploSitioWeb, |
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/sh | |
# Run this script from the root directory of your Meteor project | |
export LC_ALL=es_CL.utf8 | |
meteor |
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
REM Script removedor de thumbnails para Lakka by Presi | |
REM Ejecutar este script en la carpeta de imágenes | |
REM En este directorio debe haber también una lista con los nombres de archivo a incluir, llamada "romlist.txt" | |
REM Para generar "romlist.txt", usar el siguiente comando en el directorio de ROMs: | |
REM (for %a in (".\*") do @echo %~na) > romlist.txt | |
@echo off |
OlderNewer