Skip to content

Instantly share code, notes, and snippets.

@gernotpokorny
gernotpokorny / README.md
Created Sep 7, 2018 — forked from BoGnY/README.md
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively
View README.md

[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
View Example 19-9. Here documents and functions
#!/bin/bash
# A here document can supply input to a function in the same script.
# Example 19-9. Here documents and functions
# here-function.sh
GetPersonalData ()
{
View declare man bash documentation
declare -i intvar # man bash:
# The variable is to be treated as an integer;
# arithmetic evaluation is performed when the
# variable is assigned a value.
intvar=23
echo "$intvar" # 23
intvar=stringval
echo "$intvar" # 0
echo $(($intvar)) # 0
View Application.js
/**
* This is the main application class of your custom application "OopIssue"
*
* @asset(oopissue/*)
*/
qx.Class.define("oopissue.Application",
{
extend : qx.application.Standalone,
members :