Skip to content

Instantly share code, notes, and snippets.

View bagstel's full-sized avatar

Stelios Baglaridis bagstel

View GitHub Profile
{"lastUpload":"2020-05-14T13:32:36.459Z","extensionVersion":"v3.4.3"}
@bagstel
bagstel / deploy.sh
Last active January 14, 2020 17:23
Deploy to gh-pages script
#!/usr/bin/env sh
## abort on errors
set -e
## removing dist folder
rm -rf dist
## build
npm run build
@bagstel
bagstel / Vue SPA on Github pages
Last active October 25, 2019 05:39
This technic will work for the Vue SPA on GitHub Pages if you do not wish see the # in the url
// ====================================================================================================================
// Put this template in the index file of the Vue SPA
// ====================================================================================================================
<!DOCTYPE html>
<html>
<head>
<script>
(function(){
var redirect = sessionStorage.redirect;
@bagstel
bagstel / alias
Last active January 5, 2020 17:55
Git alias
git config --global alias.l "log -n 10 --all --graph --pretty=format:'%Cred%h%Creset -%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
git config --global alias.c "commit -m"
git config --global alias.amend "commit --amend -m"
git config --global alias.amend-no "commit --amend --no-edit"
git config --global alias.s status
git config --global alias.co checkout