Skip to content

Instantly share code, notes, and snippets.

View cesasol's full-sized avatar

César Valadez cesasol

View GitHub Profile
@cesasol
cesasol / git-supergrab
Last active June 8, 2026 19:34
Script to grab all your repos from github, gitlab and codeberg
#!/usr/bin/env bash
set -Eeuo pipefail
# Dependencies:
# gh - GitHub CLI, authenticated with: gh auth login
# glab - GitLab CLI, authenticated with: glab auth login
# tea - Gitea/Forgejo CLI, configured for Codeberg
# jq
# fzf - only required for interactive selection
# git-grab - provides: git grab
#!/usr/bin/env zsh
# Hyprland script
# Swaps all windows from one monitor with the relative next
monitors=("${(@f)$(hyprctl monitors -j | jq -r '.[].name')}")
count=${#monitors}
((count < 2)) && {
echo "Only one monitor detected." >&2
exit 1
#!/bin/zsh
skip_global_compinit=1
# XDG data dirs
if [[ $OSTYPE =~ "linux" ]]; then
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
export XDG_STATE_HOME="${XDG_DATA_HOME:-$HOME/.local/state}"
elif [[ $OSTYPE =~ "darwin" ]]; then
@cesasol
cesasol / keybase.md
Created May 13, 2021 16:24
keybase.md

Keybase proof

I hereby claim:

  • I am cesasol on github.
  • I am cesasol (https://keybase.io/cesasol) on keybase.
  • I have a public key ASDy8BNN376NjlycgF6XNPL9jTxAgOZtTaqpQmNsByj85Qo

To claim this, I am signing this object:

---
0 debug pnpm:scope:
selected: 1
workspacePrefix: null
1 error pnpm:
message:
code: "ERR_PNPM_REGISTRY_META_RESPONSE_404"
uri: "https://registry.npmjs.org/@fortawesome%2Fpro-solid-svg-icons"
response:
size: 0
@cesasol
cesasol / cloudSettings
Created March 5, 2019 17:20
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-05T17:20:43.076Z","extensionVersion":"v3.2.5"}
@cesasol
cesasol / cloudSettings
Created February 20, 2019 19:36
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-02-20T19:36:31.753Z","extensionVersion":"v3.2.5"}
@cesasol
cesasol / .eslintrc.js
Created February 20, 2019 19:33
My eslintrc for nuxt with prettier and airbnb
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true
},
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2018,
@cesasol
cesasol / pnpm-install
Created October 10, 2018 23:13
pnpm install solver
#!/bin/sh
# This is a simple hack to fix the pnpm module resolution, if you encounter "Module not found" in some deep dependency of your
# project, then use this script to add those not founded dependencies as a direct dev dependency.
# All credit goes to flaviut https://github.com/pnpm/pnpm/issues/1261
while true; do pnpm install -D $(pnpm start 2>&1 | grep 'Error: Cannot find module' | sed "s/Error: Cannot find module '\([a-z.-]\+\)'/\1/g"); done
@cesasol
cesasol / buefy.js
Created October 9, 2018 20:07
Treeshakeable buefy on nuxt
/**
* This is a plugin for nuxtjs to import only what you need from buefy
* works on nuxt 2.1.0 and buefy 0.7.0
*/
import Vue from 'vue'
import Autocomplete from '~/libs/buefy/components/autocomplete/Autocomplete.vue'
import Checkbox from '~/libs/buefy/components/checkbox/Checkbox.vue'
import CheckboxButton from '~/libs/buefy/components/checkbox/CheckboxButton.vue'