Skip to content

Instantly share code, notes, and snippets.

View gideao's full-sized avatar

Gideao Santana gideao

View GitHub Profile
@gideao
gideao / gtk3-with-pyenv.md
Last active March 30, 2019 03:10
How to install and compile PyGObject to use GTK+ 3 bindings on Python 3 and pyenv.

I'm using Arch Linux and in the current date I selected the most updated version of these libraries. If use system with stable but old packages you may encounter some problems.

I listed what was needed be installed on my system. I alredy have gcc and make and stuff like that installed. I recomend you to check out the documentation of each libary and see the build dependencies.

sudo pacman -S autoconf-archive gtk3 cairo

You will need install python 3 through pyenv and select it to use.

@gideao
gideao / rubocop.sh
Last active February 12, 2018 13:10
Auto format and correcting Ruby code using rubocop or rufo
# Install entr and silversearcher-ag
sudo aptitude install entr silversearcher-ag
# Install rubocop and add "gem 'rubocop'" to Gemfile
gem install rubocop
# Add rubocop to Gemfile
echo "gem 'rubocop', require: false" >> Gemfile
# Watch for changes
@gideao
gideao / install-adobe-source-code-pro-font.sh
Created December 12, 2017 23:33
A simple installer of Adobe Fonts Source Code Pro for use in Ubuntu or Debian
#!/bin/bash
shopt -s extglob
font_dir="$HOME/.fonts/source-code-pro/"
source_dir="$PWD/source-code-pro/"
mkdir $source_dir
git clone https://github.com/adobe-fonts/source-code-pro.git $source_dir
fonts=`find $source_dir -iname '*.ttf'`