Skip to content

Instantly share code, notes, and snippets.

View alcidesqueiroz's full-sized avatar
💭
Doing some OSS contribution in my spare time

Alcides Queiroz alcidesqueiroz

💭
Doing some OSS contribution in my spare time
View GitHub Profile
@alcidesqueiroz
alcidesqueiroz / git_commit_only_deleted_files
Created August 3, 2012 21:00
Git - Commit only deleted files...
git ls-files --deleted | xargs git rm
git commit
@alcidesqueiroz
alcidesqueiroz / gist:3407518
Created August 20, 2012 20:22
Erro Library not loaded: libmysqlclient.18.dylib [MySQL] [Mac OS X]
sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib ~/.rvm/gems/ruby-1.9.3-p0/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
@alcidesqueiroz
alcidesqueiroz / gist:3454318
Created August 24, 2012 18:56
Ubuntu 12.04 - add-apt-repository command not found
how to fix:
apt-get install python-software-properties
@alcidesqueiroz
alcidesqueiroz / gist:3666995
Created September 7, 2012 15:10
Git - Always rebase when pulling
git config --global branch.autosetuprebase always
@alcidesqueiroz
alcidesqueiroz / gist:4622499
Created January 24, 2013 14:46
Ubuntu 12.10 + capybara-webkit error: An error occurred while installing capybara-webkit (0.12.1), and Bundler cannot continue.
sudo apt-get install libqtwebkit-dev
gem install capybara-webkit -v '0.12.1'
@alcidesqueiroz
alcidesqueiroz / gist:4699895
Created February 3, 2013 00:25
Ubuntu - Paperclip dependencies
sudo apt-get install imagemagick librmagick-ruby
@alcidesqueiroz
alcidesqueiroz / colordiff
Created May 27, 2013 03:53
Perl terminal Script which calculates the difference between two colors in percentages and generates a prepared scale-color SASS function.
#!/usr/bin/perl
if ($#ARGV != 1) {
print "usage: colordiff color_a color_b\n";
exit;
}
$color_a = $ARGV[0];
$color_b = $ARGV[1];
@alcidesqueiroz
alcidesqueiroz / config.rb
Last active December 27, 2015 06:09
config.rb básico para o Workshop "Rompendo os (vários) Limites do CSS com Sass e Compass"
current_path = File.dirname(__FILE__)
sass_path = File.join(current_path, 'scss')
css_path = File.join(current_path, 'css')
#:expanded, :nested, :compact, :compressed
output_style = :expanded
@alcidesqueiroz
alcidesqueiroz / gist:9475942
Created March 10, 2014 22:36
Fix: Erro "invalid command name 'bind'" no Ubuntu 13.04 ao tentar rodar o Receitanet-x.xx.bin
sudo apt-get install libgtk2.0-0:i386 libidn11:i386 libglu1-mesa:i386
@alcidesqueiroz
alcidesqueiroz / gist:401ea1059a6a90aa2ac7
Last active August 29, 2015 14:01
Sass/CSS: Prevent flicker when doing transition with transform (webkit only)
@mixin fix-flicker-for-transform-transition{
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
}