Skip to content

Instantly share code, notes, and snippets.

View carlosrenatohr's full-sized avatar
💭
I may be slow to respond.

Carlos Hernandez carlosrenatohr

💭
I may be slow to respond.
  • Managua, Nicaragua
View GitHub Profile
@carlosrenatohr
carlosrenatohr / scraper.py
Last active May 16, 2023 20:49 — forked from eduardogpg/scraper.py
Una clase del BC de Ciencia de datos.
import csv
import json
import requests
from bs4 import BeautifulSoup
TITLE = 'Próximos lanzamientos'
URL = 'https://www.imdb.com/calendar/?region=MX'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@carlosrenatohr
carlosrenatohr / rm_mysql.md
Created February 6, 2019 06:31 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql

@carlosrenatohr
carlosrenatohr / Laravel PHP7 LEMP AWS.md
Created August 7, 2017 06:28 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@carlosrenatohr
carlosrenatohr / api.js
Created January 23, 2017 03:10 — forked from fwielstra/api.js
An example NodeJS / Mongoose / Express application based on their respective tutorials
/* The API controller
Exports 3 methods:
* post - Creates a new thread
* list - Returns a list of threads
* show - Displays a thread and its posts
*/
var Thread = require('../models/thread.js');
var Post = require('../models/post.js');
var tz = (new Date().getTimezoneOffset() / 60) * -1;
$('#timezones_control').val(tz.toString());
@carlosrenatohr
carlosrenatohr / README-Template.md
Created November 2, 2016 16:50 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@carlosrenatohr
carlosrenatohr / gist:1bf6eeb8d47b4ed7a403a8b02cb2f1a5
Created August 1, 2016 04:29 — forked from stuart11n/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@carlosrenatohr
carlosrenatohr / rails_resources.md
Last active August 29, 2015 14:24 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@carlosrenatohr
carlosrenatohr / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console