Skip to content

Instantly share code, notes, and snippets.

View leonardoraele's full-sized avatar

Leonardo Raele leonardoraele

  • Recife/PE, Brazil
View GitHub Profile
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"godot/node": {
"description": "New node or resource",
@leonardoraele
leonardoraele / launch.json
Last active January 8, 2024 20:08
My .vscode/launch.json for debugging Godot projects
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "coreclr",
"request": "launch",
@leonardoraele
leonardoraele / launch.json
Created April 12, 2022 14:17
VSCode launch config to attach to a Node.js process
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Process",
"type": "node",
"request": "attach",
@leonardoraele
leonardoraele / settings.json
Last active July 4, 2023 19:28
My personal VSCode settings (for backup and reference purposes)
// File location:
// User settings (Windows): %APPDATA%\Code\User\settings.json
// User settings (macOS): $HOME/Library/Application\ Support/Code/User/settings.json
// User settings (Linux): $HOME/.config/Code/User/settings.json
// Project settings: ${workspaceFolder}/.vscode/settings.json
{
"editor.insertSpaces": false,
"editor.minimap.enabled": false,
"editor.rulers": [
80,
@leonardoraele
leonardoraele / gist:2c1c20f618a13c1911618dcab285496f
Last active December 2, 2021 20:52
Git commands to analyze lines-of-code project stats
// Commit stats history
git log --shortstat --pretty=format:"%h %cI \"%an\" %ae %d"
// Counts lines of code in the project (note it points to a `./src` directory)
git ls-files ./src | xargs wc -l
@leonardoraele
leonardoraele / .zshrc
Last active January 11, 2022 13:27
My Personal Git Aliases
# Navigation
alias ll="ls -lhaFGOo"
# Git - Safe
alias ga='git add'
alias gaa='git add --all'
alias gb='git branch'
alias gc='git checkout'
alias gd='LESS=R git diff'
alias gf='git fetch'
@leonardoraele
leonardoraele / autoexec.cfg
Last active February 8, 2024 22:36
CSGO scripts for input binds and practice
// Jumpthrow bind
alias "+jumpthrow" "+jump;-attack;-attack2"; alias "-jumpthrow" "-jump"; bind v "+jumpthrow"
// Crosshair lining up bind
bind 1 "slot1; cl_crosshairsize 8;";
bind 2 "slot2; cl_crosshairsize 6;";
bind 3 "slot3; cl_crosshairsize 6;";
bind 5 "slot5; cl_crosshairsize 6;";
bind 4 "slot6; cl_crosshairsize 6;";
bind f "slot7; cl_crosshairsize 6;";