Skip to content

Instantly share code, notes, and snippets.

View la9una's full-sized avatar

Raul Jesus Lopez la9una

  • Buenos Aires, Argentina
View GitHub Profile
@la9una
la9una / addvhost.sh
Created November 10, 2022 00:33 — forked from runbrun/addvhost.sh
bash script to create nginx virtual hosts
#!/usr/bin/env bash
#
# Nginx - new server block
# http://rosehosting.com
read -p "Enter username : " username
read -p "Enter domain name : " domain
# Functions
ok() { echo -e '\e[32m'$domain'\e[m'; } # Green
die() { echo -e '\e[1;31m'$domain'\e[m'; exit 1; }

Install Google Fonts

Download desired fonts

https://fonts.google.com/?selection.family=Open+Sans

Install Google Fonts on Ubuntu

cd /usr/share/fonts
sudo mkdir googlefonts
cd googlefonts
sudo unzip -d . ~/Downloads/Open_Sans.zip

@la9una
la9una / csv_to_flask.py
Created October 13, 2020 06:27 — forked from dasdachs/csv_to_flask.py
Upload, read and save the content of a csv file to your model
#!/usr/bin/env python
from io import TextIOWrapper
import csv
from flask import Flask, request, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
# Create Flaskk app, config the db and load the db object
# http://flask-sqlalchemy.pocoo.org/2.1/quickstart/#a-minimal-application

DOCKER

Mini cheatsheet sobre la gestión de contenedores con Docker

INSTALACIÓN

En Ubuntu:

sudo apt install docker.io
@la9una
la9una / aws_phpmyadmin_ubuntu_20.04.md
Last active October 1, 2020 22:00
Solución al problema con phpmyadmin en Ubuntu 20.04 en AWS

Solución al problema con phpmyadmin en Ubuntu 20.04

Abrir el archivo de configuración de Apache

sudo nano /etc/apache2/apache2.conf 

Al final del archivo, pegar la siguiente linea:

@la9una
la9una / appsScript_ListFilesFolders_ver.2.js
Created September 24, 2020 22:14 — forked from mesgarpour/appsScript_ListFilesFolders_ver.2.js
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/*
* Copyright 2017 Mohsen Mesgarpour
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@la9una
la9una / index.md
Created June 22, 2020 05:33 — forked from franleplant/index.md
Delegacion de dominios de nic.ar

IMPORTANTE mi recomendacion es evitar nic.ar en lo posible ya que es tenido diversos problemas con su servicio, la renovacion es incomoda, me han disputado y quitado dominios que he tenido y pagado por años, tenes que sacar clave fiscal para crear un dominio. Si no tienen problemas teniendo un dominio que no sea .com.ar entonces usen Godaddy u otra cosa.

Dicho esto, si no te es posible escaparle al .com.ar segui leyendo.

Si te sirvio esta informacion considera aportar para apoyar mi trabajo via Bitcoin 1MBakrHeKFxks4SbhY7MdnhDEQnkDnPoJK Desde ya muchas gracias

Como delegar?

Mi recomendacion es usar un DNS hosted como Route 53 de AWS. DNS hosted significa que es un servidor de DNS, conectado a la base de datos distribuida que es DNS, hostead / administrado por otro, en este caso AWS. Hay otras alternativas solo que yo solo use Route 53. Busquen Hosted DNS en internet para ver alternativas. Route 53 es realmente muy barato, algo asi como 1 dolar por mes mas 0.2 dolares por hosted zone (domi