Skip to content

Instantly share code, notes, and snippets.

View ifalldev's full-sized avatar

Caio Batista ifalldev

View GitHub Profile
@ifalldev
ifalldev / dnsmasq-brew-instructions.sh
Created October 15, 2017 00:22 — forked from petemcw/brew-instructions.sh
Setup dnsmasq on Mac OS X
# Install `dnsmasq` and configure for *.dev domains
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Reload configuration and clear cache
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ dscacheutil -flushcache
@ifalldev
ifalldev / creating_keys.md
Created October 15, 2017 22:28
Using OpenSSL to create keys for Mac OS X.

Creating Keys

This is a brief guide to creating a public/private key pair that can be used for OpenSSL. While the "easy" version will work, I find it convenient to generate a single PEM bundle and then export the private/public key from that as needed. This document also covers how to add and remove a password from your private key and how to make sure that keychain will automatically unlock it when you sign in.

Just make it work

Generate an ssh key-pair:

@ifalldev
ifalldev / default
Created October 29, 2017 21:15 — forked from dtomasi/default
Brew Nginx PHP7
server {
listen 80;
server_name localhost;
root /Users/YOUR_USERNAME/Sites;
access_log /Library/Logs/default.access.log main;
location / {
include /usr/local/etc/nginx/conf.d/php-fpm;
}
@ifalldev
ifalldev / graph-script.txt
Last active January 2, 2018 20:16
GraphQL primeiros passos
Criar servidor
Configurar Banco ([no]sql)
Importar Apollo (graphql) ao servidor (express)
Criar rota (/graphql)
Criar schemas (banco)
Criar resolvers
Configurar ApolloClient
Configurar ApolloProvider
Criar queries
@ifalldev
ifalldev / deploy.sh
Created June 11, 2018 12:27
Expo deploy staging
exp build:ios --release-channel staging