Skip to content

Instantly share code, notes, and snippets.

View PatricNox's full-sized avatar
🔰
Open-Source enthusiast

PatricNox PatricNox

🔰
Open-Source enthusiast
View GitHub Profile
@PatricNox
PatricNox / change-author-of-pushed-commits.sh
Last active October 7, 2020 08:40
Change author of pushed commits in git
git filter-branch -f --env-filter '
OLD_EMAIL="patric.johansson@ucsit.se"
CORRECT_NAME="PatricNox"
CORRECT_EMAIL="hello@PatricNox.info"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
@PatricNox
PatricNox / vue2-datepicker.d.ts
Created February 3, 2022 09:24
type file for vue2-datepicker
declare module "vue2-datepicker" {
import { Component } from "vue/types/options";
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/interface-name-prefix */
interface IShortcuts {
text: string;
start: Date;
end: Date;
}
@PatricNox
PatricNox / dev-bash_profile
Last active October 17, 2023 07:01
Update my dev config to the latest
## General shorthands.
alias update='source ~/.bashrc'
alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy"
alias httpdconf="code /usr/local/etc/httpd/httpd.conf"
alias ll='ls -la'
alias serve='yarn install && yarn serve'
alias eserve='yarn install && yarn electron:serve'
alias ylint='yarn lint --fix && yarn lint'
alias sshconfig="code ~/.ssh/config"
alias bashprofile="code ~/.bash_profile"