Skip to content

Instantly share code, notes, and snippets.


Nuno Gonçalves nunogoncalves

View GitHub Profile
View man xccov
xccov(1) xccov(1)
xccov - view Xcode coverage data in human-readable or machine-parseable format.
xccov view [--only-targets | --files-for-target target_name | --functions-for-file name_or_path]
nunogoncalves / gist:f1616daaa05a1f5e03c246606fbe8c63
Created Apr 1, 2018 — forked from kzap/gist:5819745
If you want to give only Travis-CI access to a private key or secret file in your repository, you will need to encrypt it, but rather than storing the entire encrypted file in an environment variable, just store the a secret password in a secure environment variable that you will use to encrypt and decrypt your private key file. The encryption o…
View gist:f1616daaa05a1f5e03c246606fbe8c63
# generate your private key, put the public key on the server you will be connecting to
ssh-keygen -t rsa -f ./my_key
# generate the password/secret you will store encrypted in the .travis.yml and use to encrypt your private key
cat /dev/urandom | head -c 10000 | openssl sha1 > ./secret
# encrypt your private key using your secret password
openssl aes-256-cbc -pass "file:./secret" -in ./my_key -out ./my_key.enc -a
# download your Travis-CI public key via the API. eg:
nunogoncalves /
Created Mar 20, 2016 — forked from tdantas/
Too Many Connections Postgresql ( HomeBrew Installation)

HOWTO avoid 'too many connections'

Ask postgresql where is the configuration file

$ psql postgres
 psql (9.2.2)
   Type "help" for help.
nunogoncalves / gist:f360c0faafaeea7c46b8
Created Oct 30, 2015 — forked from sonsongithub/gist:2868639
Parse Xcode project file, project.pbxproj, in Ruby.
View gist:f360c0faafaeea7c46b8
json = JSON.parse(`plutil -convert json -o - "#{filename}"`)