Skip to content

Instantly share code, notes, and snippets.

View victor-enogwe's full-sized avatar

Victor Enogwe victor-enogwe

View GitHub Profile
@victor-enogwe
victor-enogwe / Git_Commit_Freeze_Solution.md
Created December 11, 2024 13:01 — forked from bahadiraraz/Git_Commit_Freeze_Solution.md
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.

@victor-enogwe
victor-enogwe / README.md
Created February 16, 2020 12:21 — forked from BoGnY/README.md
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify
@victor-enogwe
victor-enogwe / restapi.txt
Created September 5, 2019 06:06 — forked from chrismccoy/restapi.txt
WordPress REST API Resources
Allow ALL cross origin requests to WordPress REST API
https://github.com/Shelob9/rest-all-cors
WordPress theme using Rest API and Vue.js
https://github.com/rtCamp/VueTheme
WordPress Post from Front End using REST API and Vue.js
http://jimfrenette.com/2017/01/post-from-front-end-wp-api-vuejs/
An offline-first SPA using Vue.js, the WordPress REST API and Progressive Web Apps
class YourCoolComponent extends Component {
state = {
skip: true, // query flag, query will be manual on render
}
componentDidMount () {
// you can fire the initial query here, pass it as a prop to another component, or on button click or any where you would like.
this.fireInitialQuery()
}
@victor-enogwe
victor-enogwe / flatten.js
Last active November 17, 2018 15:00
flatten array es6 recursively
function flattenArray (arr) {
if (!Array.isArray(arr)) throw new TypeError('please supply an array as arg')
if (!arr.length) return arr
return arr.reduce((a, b) => a.concat(Array.isArray(b) ? flattenArray(b) : b), [])
}