Skip to content

Instantly share code, notes, and snippets.

View altaf933's full-sized avatar

Altaf Shaikh altaf933

View GitHub Profile
@altaf933
altaf933 / 1-setup.md
Created October 13, 2023 07:06 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md to reflect my findings.

// Bonfire: Pig Latin
// Author: @altaf933
// Challenge: http://www.freecodecamp.com/challenges/bonfire-pig-latin
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function translate(str) {
var indeText = getIndexVowel(str);
var pigLatin='';
if(indeText==0){
pigLatin = str+"way";
@altaf933
altaf933 / bonfire-roman-numeral-converter.js
Last active November 12, 2015 14:42
http://www.freecodecamp.com/altaf933 's solution for Bonfire: Roman Numeral Converter
// Bonfire: Roman Numeral Converter
// Author: @altaf933
// Challenge: http://www.freecodecamp.com/challenges/bonfire-roman-numeral-converter
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function convert(num) {
var numBer = new Array();
var strNumeral=num.toString();
@altaf933
altaf933 / KeyboardUtilsAndroid
Created March 7, 2015 06:11
KeyboardUtilsAndroid
package com.utils.android.util;
import android.app.Activity;
import android.content.Context;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
package com.utils.android.util;
import java.util.Timer;
import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.Toast;