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

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

@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
@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 / 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
@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