Skip to content

Instantly share code, notes, and snippets.

@Fazzani
Fazzani / install-releasenotes.sh
Last active June 19, 2024 06:59
releasenotes setup
#!/bin/sh
command -v rnotes >/dev/null 2>&1 && CUR_VERSION="$(rnotes --version)" || CUR_VERSION="v0.0.0"
VERSION_TO_INSTALL=${1:-latest}
RELEASE_URL="https://api.github.com/repos/fazzani/az-release-notes/releases/tags/$VERSION_TO_INSTALL"
[ $VERSION_TO_INSTALL = "latest" ] && RELEASE_URL="https://api.github.com/repos/fazzani/az-release-notes/releases/latest"
NEW_VERSION="$(curl -s $RELEASE_URL | jq -r '.tag_name')"
echo "Current Version: $CUR_VERSION => New Version: $NEW_VERSION"
if [ "$NEW_VERSION" != "$CUR_VERSION" ]; then
@csuzw
csuzw / index.js
Created November 7, 2019 10:49
Azure AD Single Sign On with Cypress
// This goes in cypress/plugins/index.js
const AzureAdSingleSignOn = require('./azure-ad-sso/plugin').AzureAdSingleSignOn
module.exports = (on, config) => {
on('task', {AzureAdSingleSignOn:AzureAdSingleSignOn})
}
@Fazzani
Fazzani / vscode settings.md
Created August 13, 2018 22:13
fira code for vscode

"editor.fontFamily": "'Fira Code'", "editor.fontLigatures": true,

as admin in powershell run this command

choco install firacode

@Fazzani
Fazzani / Eliquides.md
Last active October 15, 2018 22:19
Best Eliquides notes and to test

Eliquide to test

Eliquide DIY Tested Note/10
[Supreme][supreme] 🥇 ✔️ 9.5
[Heritage the Gold][heritabe_gold] ✔️ 9
[Relax][relax] ✔️ 9
[Nikki][nikki] ✔️ 9
[Crème de la crème][crème de la crème] ✔️ 8.5
[Steam Factory Puffy][sf_puffy] ✔️ 8.5
@Fazzani
Fazzani / backup_restore_docker_postgres.sh
Last active June 3, 2018 11:54
backup/restore postgres
#!/bin/bash
#######################################################################################################################################
# References:
# https://devopsheaven.com/postgresql/pg_dump/databases/docker/backup/2017/09/10/backup-postgresql-database-using-docker.html
# using:
# curl -LJO https://gist.githubusercontent.com/Fazzani/413e4e5e5f1e6eeb91482e2f53e6c70e/raw/82cc5e81c07204912e6c79e647cd58850bcce27b/backup_restore_docker_postgres.sh
# chmod +x backup_restore_docker_postgres.sh
# ./backup_restore_docker_postgres.sh -b playlist # backup database playlist
# ./backup_restore_docker_postgres.sh -r dump_playlist.sql # restore database dump_playlist.sql
@Fazzani
Fazzani / docker-compose.sh
Last active December 21, 2019 23:51
docker-compose
docker-compose start
docker-compose pause
docker-compose restart [options] [SERVICE...]
docker-compose stop [options] [SERVICE...]
Options:
-t, --timeout TIMEOUT Specify a shutdown timeout in seconds (default: 10).
docker-compose unpause
@pksunkara
pksunkara / config
Last active July 21, 2024 22:19
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta