Skip to content

Instantly share code, notes, and snippets.

View pedrolopez's full-sized avatar

Pedro López pedrolopez

View GitHub Profile
@pedrolopez
pedrolopez / README.md
Created April 5, 2016 00:28 — forked from magnetikonline/README.md
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.
@pedrolopez
pedrolopez / gitlab-sidekiq.conf
Created March 18, 2016 05:28 — forked from jirutka/gitlab-sidekiq.conf
Upstart job configuration files (aka runscripts) for GitLab CE.
#!upstart
description "GitLab (Sidekiq)"
author "Jakub Jirutka"
start on starting gitlab
stop on stopping gitlab
env sidekiq_logfile="/var/log/gitlab/sidekiq.log"
env sidekiq_queues="-q post_receive -q mailer -q system_hook
@pedrolopez
pedrolopez / gist:25d0f9c44f8376e20982
Created February 21, 2016 18:06 — forked from tonyoconnell/gist:2351492
Install Magento 1.8 With Sample Data By SSH
mkdir demo
cd demo
wget http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz
wget http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz
tar -zxvf magento-1.8.1.0.tar.gz
tar -zxvf magento-sample-data-1.6.1.0.tar.gz
mv magento-sample-data-1.6.1.0/media/* magento/media/
mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql magento/data.sql
mv magento/* magento/.htaccess .
chmod o+w var var/.htaccess app/etc
@pedrolopez
pedrolopez / magento installation script
Created February 21, 2016 18:06 — forked from asimsikka/magento installation script
Installing Magento 1.8.1.0 on Mac OsX 10.8 & 10.9 Note: Make sure you have already installed the following: 1- php 2- php mcrypt extension 3- mysql
cd ~/Downloads
curl -O http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz
curl -O http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz
tar -zxvf magento-1.8.1.0.tar.gz
mv ~/Downloads/magento-1.8.1.0 ~/Sites/magento
tar -zxvf magento-sample-data-1.6.1.0.tar.gz
mv magento-sample-data-1.6.1.0/media/* ~/Sites/magento/media/
mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql ~/Sites/magento/data.sql
cd ~/Sites
mv magento/* magento/.htaccess magento

Deploying to Heroku

  1. Deploy the app to heroku following heroku normal instructions (add link to heroku help)

  2. Set heroku environment variables

    Make sure all the options in config.yml are properly set then run:

     bundle exec rake heroku:config
    
Install Elance Tracker
------------------------
1. Download elance tracker from the elance for ubuntu.
2. Download Adobe Air
wget http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRInstaller.bin
3. Provide proper permission
chmod +X AdobeAIRInstaller.bin
-- MarI/O by SethBling
-- Feel free to use this code, but please do not redistribute it.
-- Intended for use with the BizHawk emulator and Super Mario World or Super Mario Bros. ROM.
-- For SMW, make sure you have a save state named "DP1.state" at the beginning of a level,
-- and put a copy in both the Lua folder and the root directory of BizHawk.
if gameinfo.getromname() == "Super Mario World (USA)" then
Filename = "DP1.state"
ButtonNames = {
"A",

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev
require 'mechanize'
require 'csv'
# Load up the trending Ruby repos on GitHub from the last month.
url_to_scrape = "https://github.com/trending?l=ruby&since=monthly"
# Snag the website with Mechanize & parse it into an XML document we can query.
page = Mechanize.new.get(url_to_scrape)
# Set the name of the CSV we'll create & load from.
file = "repo_data.csv"