Skip to content

Instantly share code, notes, and snippets.

View bloodf's full-sized avatar
:shipit:
Coding...

Heitor Ramon Ribeiro bloodf

:shipit:
Coding...
View GitHub Profile
error: Failed to generate GraphQLQuery impl: Could not find file with path: /Users/heitor/Developer/github.com/ernesta-tech/shopify-apps/extensions/custom-size/../schema.graphql
Hint: file paths in the GraphQLQuery attribute are relative to the project root (location of the Cargo.toml). Example: query_path = "src/my_query.graphql".
--> src/main.rs:5:1
|
5 | / generate_types!(
6 | | query_path = "../input.graphql",
7 | | schema_path = "../schema.graphql"
8 | | );
| |_^
Compiling international-account-ext v1.0.0 (/Users/heitor/Developer/github.com/ernesta-tech/shopify-apps/extensions/custom-size)
error: Failed to generate GraphQLQuery impl: Could not find file with path: /Users/heitor/Developer/github.com/ernesta-tech/shopify-apps/extensions/custom-size/./schema.graphql
Hint: file paths in the GraphQLQuery attribute are relative to the project root (location of the Cargo.toml). Example: query_path = "src/my_query.graphql".
--> src/main.rs:7:1
|
7 | / generate_types!(
8 | | query_path = "./input.graphql",
9 | | schema_path = "./schema.graphql"
10 | | );
@bloodf
bloodf / usePagination.ts
Created July 11, 2022 13:26
Simple pagination for Vue 3
export const usePagination = ({
total, // Total of elements in the Query
numberOfElements = 12, // Number of elements per Page
pagesToDisplay = 6, // Pages to be displayed in the component
currentPage = 1, // Current Page
pageLinkRule = (pageNumber) => { // Function to generate the links
return `/page/${pageNumber}`;
},
}: {
total: number;
@bloodf
bloodf / 0-JetBrains-IDE-Performance-Config.md
Last active July 6, 2023 13:49
JetBrains IDE Performance Config

JetBrains IDE Performance Config

High Performance Configuration for Jetbrains IDEs [IntelliJ, WebStorm, etc..]

Motivation

Once you step into the realm of multi-project development, large scale dev, or just have to have like 6 IDE's open. You really start to feel a performance hit on jetbrains IDEs.

This configuration aims to give at least 10x performance increases across the board.

Goals

@bloodf
bloodf / shareSpotifySongOnSlack.sh
Last active May 1, 2020 15:55
Share Spotify Song on Slack
#!/bin/bash
# From Here https://api.slack.com/custom-integrations/legacy-tokens
SLACKTOKEN=""
trap onexit INT
function reset() {
echo 'Resetting Slack Status'
curl -s -d "payload=$json" "https://slack.com/api/users.profile.set?token="$SLACKTOKEN"&profile=%7B%22status_text%22%3A%22%22%2C%22status_emoji%22%3A%22%22%7D" > /dev/null
}
@bloodf
bloodf / .p10k.zsh
Created December 14, 2019 14:49
PowerLevel10K Config
# Generated by Powerlevel10k configuration wizard on 2019-09-08 at 16:02 -03.
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 20097.
# Wizard options: nerdfont-complete + powerline, small icons, lean, time, 2 lines,
# solid, sparse, many icons, concise.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
# Tip: Looking for a nice color? Here's a one-liner to print colormap.
@bloodf
bloodf / .zshrc
Created December 14, 2019 14:47
Oh-My-Zsh Config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/heitor/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@bloodf
bloodf / .bash_alias
Last active December 20, 2019 14:23
Bash Alias
#Help
COMMANDS="Node -> nodeglobalinstall\nPackage Managers Update -> updaterepo\nApp Install -> ninite\niOS Sim Rec Video -> recsim nomeVideo.mp4\nFlush DNS -> flushdns\nClearbluetooth -> bluetoothRestart"
alias helpAlias="printf \"$COMMANDS\""
#NODE
NPM_PACKS="@quasar/cli @vue/cli @vue/cli-service-global @vue/devtools capacitor cordova electron eslint global ios-deploy ios-sim jscs jshint jslint ncu ndb netlify-cli nodemon now npm npm-check-updates prettier start-android-emulator ts-node tslint typescript vue-language-server"
alias updaterepo="npm update -g && brew update && brew upgrade"
alias nodeglobalinstall="npm install -g $NPM_PACKS"
alias listNodeModules="find . -name 'node_modules' -type d -prune"
alias pruneNodeModules="find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +"
@bloodf
bloodf / .bash_profile
Created December 14, 2019 14:46
Bash Profile MacOS
source ~/.profile
export PATH="/usr/local/sbin:$PATH"
#ANDROID
# Create a JAVA_HOME variable, determined dynamically
export JAVA_HOME=$(/usr/libexec/java_home)
# Add that to the global PATH variable
export PATH=${JAVA_HOME}/bin:$PATH
# Set Android_HOME
@bloodf
bloodf / bootstratpSetup.sh
Last active December 18, 2019 21:35
MacOs Bootstrap Installation Script
#!/usr/bin/env bash
NINITE_SCRIPT=curl -s 'https://api.macapps.link/pt/firefox-firefoxdev-chrome-dropbox-drive-github-sequelpro-vscode-docker-postman-insomnia-keka-1password-filezilla-appcleaner-ccleaner-caffeine-istatmenus-duet-spotify-calibre-handbrake-mpegstreamclip-skype-telegram-slack-whatsapp-discord' | sh
NPM_PACKS="@quasar/cli @vue/cli @vue/cli-service-global @vue/devtools capacitor cordova electron eslint global ios-deploy ios-sim jscs jshint jslint ncu ndb netlify-cli nodemon now npm npm-check-updates prettier start-android-emulator ts-node tslint typescript vue-language-server"
#Help
COMMANDS="Node -> nodeglobalinstall\nPackage Managers Update -> updaterepo\nApp Install -> ninite\niOS Sim Rec Video -> recsim nomeVideo.mp4\nFlush DNS -> flushdns\nClearbluetooth -> bluetoothRestart"
HELP_ALIAS="alias helpAlias=\"printf \"$COMMANDS\""
#NODE
UPDATE_REPO="alias updaterepo=\"npm update -g && brew update && brew upgrade\""