Skip to content

Instantly share code, notes, and snippets.

View tarla's full-sized avatar

João Tarla tarla

View GitHub Profile
{
"name": "Keychron K3 Pro ANSI White",
"vendorProductId": 875823667,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_ESC",
"KC_BRID",
"KC_BRIU",
"CUSTOM(4)",
@tarla
tarla / keychron_k3_pro_ansi_white_double_option_no_del.layout.json
Created July 16, 2023 20:17
keychron mapping (double options without delete)
{
"name": "Keychron K3 Pro ANSI White",
"vendorProductId": 875823667,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_ESC",
"KC_BRID",
"KC_BRIU",
"CUSTOM(4)",
@tarla
tarla / build.gradle
Created September 1, 2022 06:46
micronaut minimal build
plugins {
id 'io.micronaut.library' version '3.5.1'
}
version "0.1"
group "com.example"
repositories {
mavenCentral()
}
@tarla
tarla / geoffgarside.zsh-theme
Last active January 3, 2022 09:20
Custom zsh theme with M1/x86 label
# CUSTOM geoffgarside theme
# .oh-my-zsh/themes/geoffgarside.zsh-theme
declare -A archs
archs=(
["arm64"]="$bg_bold[cyan]%}%{$fg_bold[white]%}m1%{$reset_color%}"
["x86_64"]="$bg_bold[yellow]%}%{$fg_bold[white]%}x86%{$reset_color%}"
)
arch=$(uname -m)
label=$archs[$arch]
@tarla
tarla / nginx.conf.erb
Last active February 9, 2018 00:17
nginx config file for Heroku nginx buildpack
daemon off;
#Heroku dynos have at least 4 cores.
worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>;
events {
use epoll;
accept_mutex on;
worker_connections 1024;
}
@tarla
tarla / app.js
Created June 23, 2017 10:38 — forked from RickWong/app.js
React without Webpack
const App = ({name}) => {
return (
<h1>Hello {name}</h1>
);
};
ReactDOM.render(<App name="World" />, document.getElementById("App"));
@tarla
tarla / docker-compose.yml
Created June 14, 2017 23:08
Docker Compose
db:
image: postgres:9.6.3-alpine
ports:
- "5432"
web:
build: .
command: bundle exec rails s -p 9000 -b '0.0.0.0'
environment:
PORT: 9000
links:
@tarla
tarla / Dockerfile
Created June 14, 2017 23:07
Dockerfile
FROM ruby:2.4.1
MAINTAINER "João Tarla" <joao@tarla.com.br>
RUN apt-get update -qq && apt-get install -y -f --force-yes apt-transport-https && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 && \
echo deb http://archive.ubuntu.com/ubuntu precise main universe > /etc/apt/sources.list && \
echo deb http://archive.ubuntu.com/ubuntu precise-updates main universe >> /etc/apt/sources.list && \
echo deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main >> /etc/apt/sources.list && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
image: "ruby:2.3.1"
variables:
POSTGRES_DB: "your_project-test"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: ""
RAILS_ENV: "test"
SETUP_DB: "false"
DATABASE_URL: "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/$POSTGRES_DB"
@tarla
tarla / gh-like.css
Created August 4, 2016 00:48 — forked from somebox/gh-like.css
github markdown css+script with syntax highlighting. Works with http://markedapp.com
/*
Some simple Github-like styles, with syntax highlighting CSS via Pygments.
*/
body{
font-family: helvetica, arial, freesans, clean, sans-serif;
color: #333;
background-color: #fff;
border: none;
line-height: 1.5;
margin: 2em 3em;