Skip to content

Instantly share code, notes, and snippets.

View Sandip124's full-sized avatar
💬
Thinking

Sandip Chaudhary Sandip124

💬
Thinking
View GitHub Profile
@Sandip124
Sandip124 / bump-version.sh
Created December 21, 2021 05:04 — forked from jv-k/bump-version.sh
This script automates bumping the git software project's version using automation. ***Please see https://github.com/jv-k/bump-version for an updated that module you can use with your projects.
#!/bin/bash
#
# █▄▄ █░█ █▀▄▀█ █▀█ ▄▄ █░█ █▀▀ █▀█ █▀ █ █▀█ █▄░█
# █▄█ █▄█ █░▀░█ █▀▀ ░░ ▀▄▀ ██▄ █▀▄ ▄█ █ █▄█ █░▀█
#
# Description:
# - This script automates bumping the git software project's version using automation.
# - It does several things that are typically required for releasing a Git repository, like git tagging,
# automatic updating of CHANGELOG.md, and incrementing the version number in various JSON files.
@Sandip124
Sandip124 / bump-version.sh
Created December 21, 2021 05:04 — forked from mareksuscak/bump-version.sh
Bump version shell script.
#!/bin/bash
# Thanks goes to @pete-otaqui for the initial gist:
# https://gist.github.com/pete-otaqui/4188238
#
# Original version modified by Marek Suscak
#
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3" or even "1.2.3-beta+001.ab"
@Sandip124
Sandip124 / .NET6Migration.md
Created September 30, 2021 02:24 — forked from davidfowl/.NET6Migration.md
.NET 6 ASP.NET Core Migration
@Sandip124
Sandip124 / tailwind-readable-text.js
Created August 27, 2020 03:43 — forked from mpalpha/tailwind-readable-text.js
Dynamically generate the first readable complementary color and the most readable color utilities from the current theme color palette.
// example tailwind.config.js
// ...
// theme: {
// readableText: {
// level: 'AAA',
// size: 'small'
// },
// }
// ...
//
/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2013
*/
!function (name, definition) {
if (typeof define == 'function') define(definition)
else if (typeof module != 'undefined' && module.exports) module.exports['browser'] = definition()
else window[name] = definition()
@Sandip124
Sandip124 / jwt_decode.php
Created April 9, 2020 08:37 — forked from ahgood/jwt_decode.php
Get payload data from JWT token.
<?php
/**
* JSON Web Token implementation
*
* Minimum implementation used by Realtime auth, based on this spec:
* http://self-issued.info/docs/draft-jones-json-web-token-01.html.
*
* @author Neuman Vong <[email protected]>
*/
class JWT
Observable<String> database = Observable //Observable. This will emit the data
.just(new String[]{"1", "2", "3", "4"}); //Operator
Observer<String> observer = new Observer<String>() {
@Override
public void onCompleted() {
//...
}
@Override
@Sandip124
Sandip124 / git-aliases.txt
Created March 30, 2020 05:32 — forked from kristofferh/git-aliases.txt
List all git aliases
List just aliases
$ git config --get-regexp alias
List all config parameters
$ git config --list
@Sandip124
Sandip124 / git_clean_fxd_command.bat
Created February 6, 2020 06:15 — forked from JoaoMotondon/git_clean_fxd_command.bat
Windows batch script that searches for git repositories in a given directory and executes "git clean -fxd" command in all of them (except those which have untracked files)
@echo off
REM We need to delay expansion, otherwise variables inside 'for' block will get replaced when the batch processor reads them in the 'for' loop, before it is executed.
REM See this link for details: https://stackoverflow.com/questions/5615206/windows-batch-files-setting-variable-in-for-loop
setlocal enabledelayedexpansion
REM Iterate over all git repositories
for /f %%l in ('find . -name ".git"') do (
echo Checking dir:%%~dpnl