Skip to content

Instantly share code, notes, and snippets.

View francocorreasosa's full-sized avatar
:shipit:
Ship it

Franco Correa francocorreasosa

:shipit:
Ship it
View GitHub Profile
@francocorreasosa
francocorreasosa / base.prisma
Last active April 4, 2021 20:00
For some reason Prisma does not use the standard PSQL field and table naming, but they let you map to them so I'm keeping this as a base.
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
@francocorreasosa
francocorreasosa / docker-compose.yml
Created March 25, 2020 00:18
docker-compose para Wordpress
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@francocorreasosa
francocorreasosa / 1-setup.md
Created March 5, 2020 16:54 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.

@francocorreasosa
francocorreasosa / BaseViewController.cs
Last active September 11, 2019 03:18
Base View Controller with common utilities for iOS
public abstract class BaseViewController : UIViewController
{
/// <summary>
/// Returns a set of NSLayoutConstraints from a visual format string.
/// </summary>
/// <param name="visualFormat">Visual Format String</param>
/// <param name="views">Set of views to be enumerated</param>
/// <example>
/// VFConstraints("V:|-16-[v0]-8-[v1]|", TitleLabel, DescriptionLabel);
/// </example>
@francocorreasosa
francocorreasosa / dead-links-report.txt
Last active June 27, 2018 16:32
Guidelines Dead Links
@francocorreasosa
francocorreasosa / cl_variables.scss
Created March 5, 2016 20:26
CrossLine Variables
// Foundation for Sites Settings
// -----------------------------
//
// Table of Contents:
//
// 1. Global
// 2. Breakpoints
// 3. The Grid
// 4. Base Typography
// 5. Typography Helpers

Keybase proof

I hereby claim:

  • I am francocorreasosa on github.
  • I am francocorrea (https://keybase.io/francocorrea) on keybase.
  • I have a public key whose fingerprint is ECB1 4272 A290 99FD 286A AB75 7E64 029A 1EAE 8030

To claim this, I am signing this object:

@francocorreasosa
francocorreasosa / gist:389ddc90a2aae687de02
Created March 23, 2015 15:38
AES-Helper Use Example
# suponiendo que tu archivo aes-helper.py este en el mismo directorio y ya hayas corrido ./configure.sh
import aeshelper as aes
str_a_encriptar = "Esto sera encriptado"
clave_secreta = "ftz73gT&Fzgr8ywehfcrvgvh"
encriptada = aes.aes_encrypt(clave_secreta, str_a_encriptar)
print "String encriptada: %s" % (encriptada) # String encriptada: SNURVIcrKSkDulSwxigtXZo0/M2xk/zAhnpZ2UN89wl7SFbEeF7uuaweqPwv9DLO
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-item/paper-item.html">
<polymer-element name="my-element">
<template>