Skip to content

Instantly share code, notes, and snippets.

View brpaz's full-sized avatar

Bruno Paz brpaz

View GitHub Profile
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Advanced Snippet for VSCocde Schema file",
"type": "object",
"additionalProperties": false,
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
- name: Jetbrains Toolbox
unarchive:
src: https://download.jetbrains.com/toolbox/jetbrains-toolbox-{{ jetbrains_toolbox_version }}.tar.gz
remote_src: true
dest: "{{ bin_dir }}"
extra_opts: [--strip-components=1]
mode: a+x
become: true
- name: Jetbrains Toolbox | Install Desktop file
@brpaz
brpaz / .golang-ci.yml
Created April 25, 2020 17:15
Default configuration for Golang CI Lint
# This file contains all available configuration options
# with their default values.
# options for analysis running
run:
# default concurrency is a available CPU number
concurrency: 4
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 1m
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: local
@brpaz
brpaz / .czrc
Created September 21, 2019 16:48
czrc
{ "path": "cz-conventional-changelog" }
@brpaz
brpaz / hello.sh
Created April 27, 2019 14:01
How to delete all your local branches but keep master #git
git branch | grep -v "master" | xargs git branch -D
<script>
import gql from 'graphql-tag';
// GraphQL query
const postsQuery = gql`
query allPosts {
posts {
id
title
votes
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
#
# Custom headers and headers various browsers *should* be OK with but aren't
#
@brpaz
brpaz / config.yml
Created March 17, 2019 19:08
Sample config.yml for publishing to NPM from CircleCI
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node
describe('Post Resource', function() {
it('Creating a New Post', function() {
cy.visit('/posts/new') // 1.
cy.get('input.post-title') // 2.
.type('My First Post') // 3.
cy.get('input.post-body') // 4.
.type('Hello, world!') // 5.