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 / 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;
}
@alcidesqueiroz
alcidesqueiroz / gist:4f64352e38ffdd8e1d5d
Last active August 29, 2015 14:02
Sass: Function to render a "begins with" selector, which matches elements with some class beginning with a given text
@function class-begins-with($class-name){
@return '[class^="#{$class-name}"], [class*=" #{$class-name}"]';
}
//Usage
#{class-begins-with(main-toolbar-action)}{
color: black;
}
//Output
@alcidesqueiroz
alcidesqueiroz / gist:86ceed070b1d5e25a28a
Created June 29, 2014 20:01
Git: Remove files in .gitignore from a repository
git ls-files -i --exclude-from=.gitignore | xargs git rm --cached
@alcidesqueiroz
alcidesqueiroz / gist:8d5e40a0c4c3b91bc1cb
Created December 14, 2014 15:20
Error installing Nokogiri gem on OS X Mavericks
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2
@alcidesqueiroz
alcidesqueiroz / gist:a53add38194a19e6344e
Created December 20, 2014 17:04
OS X Mavericks: Show hidden files and folders
defaults write com.apple.finder AppleShowAllFiles -boolean true && killall Finder
@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'