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; | |
server_name mydomain.org; | |
root /home/myuser/html; | |
index index.html; | |
try_files $uri /index.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
#------------------------------------------------------------------------------# | |
# OFFICIAL UBUNTU REPOS # | |
#------------------------------------------------------------------------------# | |
###### Ubuntu Main Repos | |
deb http://cl.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse | |
deb-src http://cl.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse | |
###### Ubuntu Update Repos | |
deb http://cl.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse |
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
version: '2' | |
services: | |
mongo: | |
container_name: project-db | |
restart: unless-stopped | |
image: mongo | |
volumes: | |
- ~/docker-data/project-db:/data/db | |
- ~/docker-data/project-backups:/backups |
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
#HTTP Server | |
server { | |
listen 80; | |
server_name jupyter.mydomain.info; | |
return 301 https://jupyter.mydomain.info$request_uri; | |
} | |
# HTTPS Server | |
server { | |
listen 443 ssl; |
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
#HTTP Server | |
server { | |
listen 80; | |
server_name myapp.com www.myapp.com; | |
return 301 https://myapp.com$request_uri; | |
} | |
# HTTPS Server | |
server { | |
listen 443 ssl default_server; |
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 | |
set -e | |
set -u | |
# Set local persistence directories" | |
MONGO_DIR="/media/linuxdata/volumes/mongo" | |
SOLR_DIR="/media/linuxdata/volumes/solr" | |
# Set Solr core name |
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 9 Stable ("stretch") | |
# Creado por Daniel Gacitúa <daniel.gacitua@usach.cl> para CGL USACH | |
# Debes guardar este archivo en /etc/apt/sources.list | |
# Actualizado el 28/10/2017 | |
# Repos Oficiales Debian (mirrors chilenos) # | |
deb http://ftp.cl.debian.org/debian/ stretch main contrib non-free | |
deb http://ftp.cl.debian.org/debian/ stretch-updates main contrib non-free | |
deb http://security.debian.org/ stretch/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
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 |
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
#! /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 |