Skip to content

Instantly share code, notes, and snippets.

View codedsprit's full-sized avatar
❄️
howdy?

Roshan Tiwaree codedsprit

❄️
howdy?
View GitHub Profile
@codedsprit
codedsprit / curl-website-speed-test-with-no-cache.sh
Created March 23, 2025 19:16
Test the website speed with CURL request though command line.
curl -s -o /dev/null -w "%{time_total}\n" -H "Pragma: no-cache" https://gnu.org
@bahadiraraz
bahadiraraz / Git_Commit_Freeze_Solution.md
Last active June 17, 2025 12:29
Git Commit Freeze Due to GPG Lock Issues (Solution)

Git Commit Freeze Due to GPG Lock Issues

If you encounter a problem where you cannot commit changes in Git – neither through the terminal nor via the GitHub Desktop application – the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.

Solution Steps

1. Check for GPG Lock Messages

Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ..., it indicates a lock issue.

/*This gist consists of the solution of ITSNP posted on April 28
Link of the post " https://www.facebook.com/101470728764629/posts/336507348594298/ "
Here's the solution in c ! */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
int
@lukechilds
lukechilds / get_latest_release.sh
Created August 9, 2016 19:43
Shell - Get latest release from GitHub
get_latest_release() {
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
}
# Usage
# $ get_latest_release "creationix/nvm"
# v0.31.4