Skip to content

Instantly share code, notes, and snippets.

View renjujv's full-sized avatar
🥷
Stealth Mode on

Renju Paul Jose renjujv

🥷
Stealth Mode on
View GitHub Profile
@paolocarrasco
paolocarrasco / README.md
Last active July 23, 2024 14:37
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@ibraheem4
ibraheem4 / postgres-brew.md
Last active July 18, 2024 00:18 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@florentbr
florentbr / #selenium-chrome-authentication-extension
Last active December 5, 2023 08:49
Chrome extension to automatically set the credentials.
To build the extension, update the username/password and zip `background.js` and `manifest.json` in a single archive.
[
{
"name": "",
"official_name_en": "Channel Islands",
"official_name_fr": "Îles Anglo-Normandes",
"ISO3166-1-Alpha-2": "",
"ISO3166-1-Alpha-3": "",
"M49": "830",
"ITU": "",
"MARC": "",
@Aquazus
Aquazus / CurrencyCode.java
Created June 12, 2016 20:11
An enum of ISO 4217 Currency Codes with description
public enum CurrencyCode {
/*This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@nilz3ro
nilz3ro / iso.countries.js
Last active November 18, 2023 05:38
Write json file
// Paste this in a node v4.x REPL.
// let iso = require('./iso.countries.js');
// iso.writeCountryJsonFile('test.js', (country) => { let o={}; o['name'] = country['name']; o['ISO3166-1-Alpha-2'] = country['ISO3166-1-Alpha-2']; o['code'] = country['ISO3166-1-Alpha-2']; o['Dial'] = country['Dial']; return o;});
'use strict';
let fs = require('fs');
let countries;
const writeCountryJsonFile = (outputFilename, mapFunction) => {
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active July 21, 2024 01:20
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh