Skip to content

Instantly share code, notes, and snippets.

View brunoocasali's full-sized avatar

Bruno Casali brunoocasali

View GitHub Profile
require "instagram"
require "restclient"
require "twitter"
require 'koala'
hashtag = "danpluslaura"
INSTAGRAM_ACCESS_TOKEN = "############"
INSTAGRAM_CLIENT_ID = "###########"
INSTAGRAM_CLIENT_SECRET = "###########"
@jonatanrdsantos
jonatanrdsantos / flash-chromium.md
Last active August 29, 2015 14:03
Instalando Flash do chromium no Arch Linux

Para instalar o Flash player no Chromium:

Baixe o pacote pelo AUR e instale usando o pacman:

$ cd Downloads/

$ ls
flashplugin-11.2.202.378-1-x86_64.pkg.tar.xz

$ sudo pacman -U flashplugin-11.2.202.378-1-x86_64.pkg.tar.xz

@alejogutierrez
alejogutierrez / index.html
Last active February 25, 2016 04:20
Embed youtube video without console errors
<!doctype html>
<html>
<head>
<title>Embed youtube video</title>
<meta charset="utf-8">
<link href="video.css">
</head>
<body>
<div id='embed-container'>
<div id='ytapiplayer'></div>
@ruario
ruario / create-ffmpeg-opera.sh
Last active April 28, 2017 19:51
Creates an installable package containing H.264 and MP3 support libraries for Opera on Linux
#!/bin/sh
#
# Creates an installable package containing H.264 and MP3 support
# libraries for Opera on Linux
#
# Note: You will need a suitable development environment to run this
# script successfully. Make sure the following is installed before
# proceeding:
#
# * autoconf
@selaromi
selaromi / rails-postgres-wercker-database_url.md
Last active June 26, 2017 08:27
wercker.yml for Rails with Postgresql and DATABASE_URL (docker stack)

RAILS & POSTGRES WITH WERCKER AND DATABASE_URL

Basically, if you prefer to use DATABASE_URL in your application better than creating the whole database.yml thing, set the following ENV variable in your wercker app settings:

  • APP_POSTGRES_PASSWORD (required)
  • APP_POSTGRES_USER (optional)
  • APP_POSTGRES_DB (optional)
  • DATABASE_URL (value below)

name: DATABASE_URL

source "https://rubygems.org"
gem 'activerecord', '~> 5.1'
gem 'mysql2', '~> 0.4'
gem 'spreadsheet'
@tarot
tarot / Readme.md
Last active February 28, 2018 13:21
rails, postgres, redis, hipchat-notify, heroku-deployなwercker.yml

Werckerの設定

Environment variables

hipchat-notify用の設定。werckerのApplication Settings (右上の歯車アイコン) → Environment variables から、HIPCHAT_TOKENHIPCHAT_ROOM_IDを追加する。

@sstarr
sstarr / wercker.yml
Created December 19, 2013 14:37
A Wercker config for Ruby on Rails, Elasticsearch, Postgres and Qt (for capybara-webkit).
box: wercker/ruby
services:
- wunki/elasticsearch@0.0.1
- wercker/postgresql
build:
steps:
# Taken from https://gist.github.com/pjvds/6008266
- script:
@runspired
runspired / components.bar-component.js
Last active March 6, 2018 14:19
Inner Component Routing
import Ember from 'ember';
export default Ember.Component.extend({
});
@joel
joel / .irbrc
Created July 9, 2012 09:21
Make all factory girl is available in your rails console
# mate ~/.irbrc
#!/usr/bin/env ruby
if defined? Rails
begin
require 'factory_girl'
Dir[Rails.root.join("spec/factories/**/*.rb")].each { |f| require f }
rescue LoadError
end