Skip to content

Instantly share code, notes, and snippets.

View patevs's full-sized avatar
🥝

Pat patevs

🥝
View GitHub Profile
@patevs
patevs / README.md
Created November 1, 2020 02:15 — 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
@patevs
patevs / updateNpm.bat
Created September 1, 2020 22:44 — forked from nokidding/updateNpm.bat
Windows batch file which updates npm for nvm-windows
rem see https://github.com/coreybutler/nvm-windows/issues/300
@echo off
SETLOCAL EnableDelayedExpansion
if [%1] == [] (
echo Pass in the version you would like to install, or "latest" to install the latest npm version.
) else (
set wanted_version=%1
Dart 5 hrs 14 mins █████████▌░░░░░░░░░░░ 45.6%
VB 2 hrs 32 mins ████▋░░░░░░░░░░░░░░░░ 22.1%
YAML 1 hr 2 mins █▉░░░░░░░░░░░░░░░░░░░ 9.1%
Groovy 50 mins █▌░░░░░░░░░░░░░░░░░░░ 7.3%
Markdown 32 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.7%
🌞 Morning 164 commits █▍░░░░░░░░░░░░░░░░░░░ 6.6%
🌆 Daytime 1238 commits ██████████▍░░░░░░░░░░ 49.7%
🌃 Evening 1076 commits █████████░░░░░░░░░░░░ 43.2%
🌙 Night 15 commits ▏░░░░░░░░░░░░░░░░░░░░ 0.6%
@patevs
patevs / mfetch
Created June 3, 2020 03:01
A minimal command-line "fetch-like" utility.
#!/usr/bin/env bash
# Since I hop between similar ssh hosts,
# the colorful border tells me where I've landed.
# It's based on hostname lenght and cycles through
# the basic 8 ANSI colors, minus the black.
#
# Usage:
# $ mfetch --- full color
# $ mfetch plain --- colorless border
@patevs
patevs / Script_Template.ps1
Created April 8, 2020 03:48 — forked from 9to5IT/Script_Template.ps1
PowerShell: Script Template
#requires -version 2
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
@patevs
patevs / .bashrc
Created April 6, 2020 06:57 — forked from mathiasverraes/.bashrc
Git shortcuts
#! /bin/sh
alias gs="git status"
alias gc="git commit"
alias gr="git checkout"
alias ga="git add"
alias gl="git lola"
@patevs
patevs / emoji-list.md
Created April 4, 2020 02:18 — forked from ricealexander/emoji-list.md
Comprehensive list of GitHub-supported emojis
@patevs
patevs / TrueColour.md
Created February 13, 2020 08:48 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
@patevs
patevs / .gitconfig
Created February 13, 2020 01:59 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls