Skip to content

Instantly share code, notes, and snippets.

View abhishekmishragithub's full-sized avatar
🎯
Focusing

Abhishek abhishekmishragithub

🎯
Focusing
View GitHub Profile
@abhishekmishragithub
abhishekmishragithub / gitcom.md
Created December 3, 2019 10:44 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
name: Test, Build and Deploy
on:
pull_request:
types: [closed]
jobs:
build-test-release:
if: github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
@abhishekmishragithub
abhishekmishragithub / list.md
Created July 19, 2021 09:28 — forked from ih2502mk/list.md
Quantopian Lectures Saved

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@abhishekmishragithub
abhishekmishragithub / end of supervisord.conf
Created August 5, 2021 11:19 — forked from aubm/end of supervisord.conf
Sentry configuration files example
[program:sentry-web]
directory=/www/sentry/
command=/www/sentry/bin/sentry --config=/etc/sentry.conf.py start http
autostart=true
autorestart=true
redirect_stderr=true
[program:sentry-worker]
directory=/www/sentry/
command=/www/sentry/bin/sentry --config=/etc/sentry.conf.py celery worker -B
@abhishekmishragithub
abhishekmishragithub / ALTERNATIVES.adoc
Created August 16, 2021 14:08 — forked from mbbx6spp/ALTERNATIVES.adoc
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.

App Install Plan

Critical

@abhishekmishragithub
abhishekmishragithub / post_standup_flow.py
Created September 1, 2021 09:08 — forked from cicdw/post_standup_flow.py
complete code of the standup Prefect flow
import datetime
from google.cloud.firestore import Client
import random
import requests
import prefect
from prefect import Flow, Parameter, task
from prefect.client import Secret
from prefect.schedules import CronSchedule
git_current_branch () {
local ref
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null)
local ret=$?
if [[ $ret != 0 ]]
then
[[ $ret == 128 ]] && return
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return
fi
echo ${ref#refs/heads/}

Startup Scripts

Start a database instance within a few seconds on you machine.

PostgreSQL

Start

docker run --name postgresql -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password \