Skip to content

Instantly share code, notes, and snippets.

View flopezre's full-sized avatar

Fabian Lopez flopezre

  • Chile
View GitHub Profile
@HoussemNasri
HoussemNasri / BalsamiqForever.py
Last active June 27, 2024 02:50
Extend your trial period for Balsamiq Wireframes on Windows and macOS Forever!
import json
import os
import time
import webbrowser
import sys
import re
def handleWindows(extra_seconds):
print("OS : Windows")
@Raulebc
Raulebc / MySQL:regiones-provincias-comunas-chile.sql
Last active June 16, 2024 01:33
MySQL-Chile:regiones-provincias-comunas
Script comunas, regiones, provincias Junio 2022
DROP TABLE IF EXISTS `comunas`;
CREATE TABLE `comunas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`comuna` varchar(64) NOT NULL,
`provincia_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=346 DEFAULT CHARSET=utf8;
@huynhsamha
huynhsamha / xampp-nginx-ubuntu-ec2.md
Last active May 16, 2024 03:10
Config XAMPP with NGINX on Ubuntu 16.04 AWS EC2

Install NGINX

bla bla...

Install XAMPP

# Download
wget https://www.apachefriends.org/xampp-files/7.2.2/xampp-linux-x64-7.2.2-0-installer.run

# Install
chmod +x xampp-linux-x64-5.6.33-0-installer.run
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active June 29, 2024 01:12
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@gourab5139014
gourab5139014 / create_hr_schema.sql
Created July 3, 2018 16:45
Script to create Oracle XE's HR schema in Postgres
-- Best used for learning purposes. Original developer also has an ER diagram available at https://dbseminar.r61.net/node/32
--create tables
BEGIN;
CREATE TABLE regions
( region_id SERIAL primary key,
region_name VARCHAR(25)
);
CREATE TABLE countries
@MichaelPolla
MichaelPolla / github-resize-pictures.md
Last active May 22, 2024 19:00
Markdown - Resize pictures in GitHub, including in comments comment

Markdown - Resize pictures in GitHub

I found that the "best" way is to use HTML, as it works both in Readme/.md files and also in comments (within Issues, Gist...)

E.g. when adding/editing a comment (within Issues, Gist...) :

  • Upload the picture by drag-and-drop in the text field
  • replace ![image](https://your-image-url.type) with <img src="https://your-image-url.type" width="100" height="100">

As mentioned by @cbestow (thanks!), it's not mandatory to set both width and height. If only one is set, the other will be adjusted accordingly to preserve the aspect ratio of the image.

@masudcsesust04
masudcsesust04 / sdk-command-not-found.md
Created January 22, 2018 12:32
Fix sdk command not found after installing SDKMAN

Fix sdk command not found after installing SDKMAN.

You need to install following packages before installing sdkman:

sudo apt-get install unzip
sudo apt-get install zip
sudo apt-get install sed

Uninstall skdman if you installed already:

@hauke96
hauke96 / libffmpeg_vivaldi.md
Last active July 4, 2023 18:56
Install libffmpeg.so in vivaldi

Install libffmpeg.so in vivaldi

This short instruction shows how to install libffmpeg.so in vivaldi to play e.g. mp4 videos.

I use the ubuntu repository for that but this is just one way to get the file.

1. Download .deb package

Go to http://security.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/ and choose the latest chromium-codecs-ffmpeg-extra and download it.

For example: chromium-codecs-ffmpeg-extra_58.0.3029.110-0ubuntu1.1354_amd64.deb

Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@juanbrujo
juanbrujo / comunas-regiones.json
Last active June 3, 2024 16:31 — forked from sergiohidalgo/comunas-regiones-chile.json
Comunas y regiones de chile JSON
{
"regiones": [
{
"region": "Arica y Parinacota",
"comunas": ["Arica", "Camarones", "Putre", "General Lagos"]
},
{
"region": "Tarapacá",
"comunas": ["Iquique", "Alto Hospicio", "Pozo Almonte", "Camiña", "Colchane", "Huara", "Pica"]
},