Skip to content

Instantly share code, notes, and snippets.

View dminones's full-sized avatar

Darío Miñones dminones

View GitHub Profile
@dminones
dminones / gist:de70a38bbb7f517e91c632b147d20123
Last active June 29, 2019 20:55
React App Native Basic Design System

Setup basic design system

Addresable points

1. Setup react-native-paper theme

This is not correclty configured and we are not using this theme in our components properly

Output (WIP)

Done. Guidelines for using theming on your components

@dminones
dminones / server-stress.js
Created May 31, 2019 16:21
Secuentially execute a request as many times as passed by param
const { exec } = require("child_process");
function promiseFromChildProcess(child) {
return new Promise(function(resolve, reject) {
child.addListener("error", e => {
console.log("Error generating docs:", e);
reject(e);
});
child.addListener("exit", e => {
if (e !== 0) {
#!/bin/bash
sudo lego --email="info@guiahoteleraargentina.com" --domains="guiahoteleraargentina.com" --domains="www.guiahoteleraargentina.com" --domains="api.guiahoteleraargentina.com" --domains="www.guiahotelerabolivia.com" --domains="guiahotelerabolivia.com" --domains="imagenes.guiahoteleraargentina.com" --domains="imagenes.guiahotelerabolivia.com" --path="/etc/lego" renew
sudo mv /opt/bitnami/apache2/conf/server.crt /opt/bitnami/apache2/conf/server.crt.old
sudo mv /opt/bitnami/apache2/conf/server.key /opt/bitnami/apache2/conf/server.key.old
sudo ln -sf /etc/lego/certificates/guiahoteleraargentina.com.key /opt/bitnami/apache2/conf/server.key
sudo ln -sf /etc/lego/certificates/guiahoteleraargentina.com.crt /opt/bitnami/apache2/conf/server.crt
@dminones
dminones / gist:8bacb85f3dd46bd7dd4629e7f02ee585
Created February 5, 2019 20:32
0xAE6fd5402D8f9209D706c2aeA72EE057F7aD06Eb
0xAE6fd5402D8f9209D706c2aeA72EE057F7aD06Eb
@dminones
dminones / bitbucket-backup-all-repos.sh
Last active October 2, 2015 17:26 — forked from nixjobin/bitbucket-backup-all-repos.sh
bitbucket-backup-all-repos.sh
#!/bin/bash
#Author Jobin Joseph
#Blog : JobNix.in
#Bio : JobinJoseph.com
#Bitbucket credentials
bbuser='Username_here'
bbpass='password_here'
bbteam='teamname_here'
@dminones
dminones / UIColor+ColorFromHexa.h
Created January 10, 2015 20:18
Objective C Category: hex NString to UIColor
//
// UIColor+ColorFromHexa.h
// TellApp
//
// Created by Dario on 1/10/15.
// Copyright (c) 2015 Cactus. All rights reserved.
//
#import <Foundation/Foundation.h>
@dminones
dminones / ViewController
Created December 16, 2014 13:59
Show how to present MPMoviePlayerController
//
// ViewController.m
// VideoTest
//
// Created by Dario on 11/28/14.
// Copyright (c) 2014 Cactus. All rights reserved.
//
#import "ViewController.h"
#import <MediaPlayer/MediaPlayer.h>
//
// UIViewController+DismissOnTapOutside.h
// Telly
//
// Created by Mazyad Alabduljaleel on 5/8/14.
// Copyright (c) 2014 Telly, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>