Skip to content

Instantly share code, notes, and snippets.

View TiuTalk's full-sized avatar
🌴
Tropical Developer

Thiago Belem TiuTalk

🌴
Tropical Developer
  • Assando Sites
  • Arraial d'Ajuda, BA - Brazil
  • 18:18 (UTC -03:00)
View GitHub Profile
@TiuTalk
TiuTalk / gist:1045708
Created June 24, 2011 21:17
Habilitando GZIP em servidores Nginx
# Habilita o gzip
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
# Mime-types que serão compactados
gzip_types text/html text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
* [Features](#features)
* [Key Bindings](#key-bindings)
* [GFM Spesific Features](#gfm-spesific-features)
* [Commands for Command Palette](#commands-for-command-palette)
* [Installation](#installation)
* [Configuration](#configuration)
* [Tips](#tips)
* [Similar Plugins](#similar-plugins)
* [Contributing](#contributing)
* [Credits](#credits)

The error looks like this?

Bundler::GemNotFound: Could not find jumpup-heroku-0.0.1.gem for installation
An error occurred while installing jumpup-heroku (0.0.1), and Bundler cannot continue.
Make sure that `gem install jumpup-heroku -v '0.0.1'` succeeds before bundling.

How to run only the broken integration task:

2.0.0p353 :001 > "2".to_i +2
=> 0
2.0.0p353 :002 > "2".to_i + 2
=> 4
outdated_gems = `gem outdated`
regex = %r((?<gem>[\w-]+) \((?<old>[\d\.]+) < (?<new>[\d\.]+)\))
gemfile = File.read("./Gemfile")
outdated_gems.each_line do |line|
data = line.match(regex)
gemfile.gsub!(%r(gem '#{data[:gem]}',(\s+)'[^']+'), "gem '#{data[:gem]}',\\1'#{data[:new]}'")
end
<!-- como veio no HTML -->
<ul class="pagination">
<li><a href="#" class="inative">anterior</a></li>
<li><a href="#" class="active">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">próximo</a></li>
</ul>
@TiuTalk
TiuTalk / .env
Last active December 26, 2015 10:59
APP: projeto
PRODUCTION_APP: projeto
STAGING_APP: projeto-staging
<script src="/bower_components/jquery/jquery.min.js"></script>
<script src="/bower_components/angular/angular.min.js"></script>
bower update
bower cloning git://github.com/angular/bower-angular.git
bower cached git://github.com/angular/bower-angular.git
bower fetching angular
bower cloning git://github.com/components/jquery.git
bower cached git://github.com/components/jquery.git
bower fetching jquery
bower checking out angular#v1.0.7
bower copying /Users/digdin/.bower/cache/angular/ef2188def21eb1bbd1f1792311942a53
bower checking out jquery#2.0.2
bower copying /Users/digdin/.bower/cache/jquery/29cb4373d29144ca260ac7c3997f4381