Skip to content

Instantly share code, notes, and snippets.

View ParthaDhar's full-sized avatar
🇮🇳
Working from home

Partha Dhar ParthaDhar

🇮🇳
Working from home
View GitHub Profile
@ParthaDhar
ParthaDhar / redmine gitlab sync
Created January 15, 2022 11:11 — forked from jakimowicz/redmine gitlab sync
simple (and dirty) sync between redmine issues and gitlab issues
#!/usr/bin/env ruby
require 'faraday'
require 'json'
require 'gitlab'
module Redmine
Host = nil
APIKey = nil
@ParthaDhar
ParthaDhar / changexampp.sh
Last active January 17, 2022 10:37
xampp version manager for ubuntu
## Install any xammp version in your ubuntu
## Rename the /opt/lampp to any (eg. lampp72)
echo
echo -e "\033[1;31m XAMPP Switcher\e[0m"
echo
echo -e "\033[0;33m PHP version currently active in your '/opt/lampp': \033[0;35m`sudo /opt/lampp/bin/php -v | head -n 1 | cut -c 1-10` \e[0m" # Checking running php version
sudo /opt/lampp/lampp stop &>- # Stopping lampp stack if running
echo
echo -e "\033[0;31m versions that you have installed:\e[0m"
ls -ldt /opt/lampp* | awk '{print $9}'
@ParthaDhar
ParthaDhar / cd.yml
Created February 4, 2022 16:37 — forked from YonatanKra/cd.yml
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
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
@ParthaDhar
ParthaDhar / ProofOfExistence.sol
Created November 23, 2022 18:32 — forked from ageyev/ProofOfExistence.sol
This smartcontract is used to store documents text on the Ethereum blockchain and to get the document by document's hash (sha256).
/*
This smartcontract is used to store documents text on the Ethereum blockchain
and to get the document by document's hash (sha256).
*/
contract ProofOfExistence{
/* ---- Public variables: */
string public created;
@ParthaDhar
ParthaDhar / changephp.sh
Last active April 25, 2024 17:37 — forked from qadirpervez/changephp.sh
change php version in cli and for apache
## Switch php version php-cli and in apache
echo
echo -e "\033[1;31m PHP Version changer Switcher\e[0m"
echo
echo -e "\033[0;33m PHP version currently active in your '/cli': \033[0;35m`sudo php -v | head -n 1 | cut -c 1-10` \e[0m" # Checking running php version
sudo sudo service apache2 stop &>- # Stopping lampp stack if running
echo
echo -e "\033[0;31m versions that you have installed:\e[0m"
ls -ldt /etc/php/* | awk '{print $9}'
echo

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

ℹ️ git-conventional-commits A CLI util to ensure this conventions and generate changelogs

Commit Formats

Default