Skip to content

Instantly share code, notes, and snippets.

View hbeita's full-sized avatar
🎯
Focusing

Hector G. Beita hbeita

🎯
Focusing
View GitHub Profile
@hbeita
hbeita / zsh-wsl-config v2
Created August 11, 2020 19:42
zsh-wsl-config v2
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Set up the prompt
autoload -Uz promptinit
@hbeita
hbeita / Update remote repo
Created April 21, 2020 14:08 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
#!/bin/bash
###############################################################################################
# #
# GIT ALIASES #
# #
###############################################################################################
# Git status alias
alias g='git status -sb'
@hbeita
hbeita / git-tag-delete-local-and-remote.sh
Created January 30, 2020 18:52 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@hbeita
hbeita / profiles.json
Created June 24, 2019 04:44 — forked from mehulmpt/profiles.json
Sample profiles.json for new Windows Terminal
{
"defaultProfile": "{09dc5eef-6840-4050-ae69-21e55e6a2e62}",
"initialRows": 30,
"initialCols": 120,
"alwaysShowTabs": true,
"showTerminalTitleInTitlebar": true,
"experimental_showTabsInTitlebar": true,
"profiles": [
{
"guid": "{09dc5eef-6840-4050-ae69-21e55e6a2e62}",
@hbeita
hbeita / .jshintrc
Created November 23, 2017 15:58
My jshint config for angular apps
{
"curly":true,
"devel":true,
"eqeqeq": true,
"globals":{
"angular": true
},
"indent":2,
"quotmark": "single",
"strict": true,
@hbeita
hbeita / weeklies.md
Created June 3, 2016 18:10 — forked from cayasso/weeklies.md
List of Weeklies