Skip to content

Instantly share code, notes, and snippets.

@Shinrai
Shinrai / ca.md
Created May 8, 2018 22:13 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@Shinrai
Shinrai / reset-hotfix-branch-after-pull-squash.md
Last active April 29, 2019 23:00
Reset Hotfix Branch After Pull Squash

Make sure to close all text editors or any programs accessing the files in the repo prior to running these commands.

Resetting a hotfix branch

git checkout master
git pull
git branch -f hotfix master
git checkout hotfix
@Shinrai
Shinrai / portable-atom.md
Last active December 18, 2021 04:49
Make Atom Portable and make the portable version available to Github Desktop

Note: This is for windows.

The Easy Way:

  • Repo to come.....

Atom Portable Install Way:

Create an atom folder (We'll call this the ROOT_FOLDER)

  • This will house your settings folder and your actual atom files.
  • inside this folder create a ".atom" folder (We'll call this the DATA_FOLDER) and an "atom" folder (We'll call this the PROGRAM_FOLDER) (or w/e name you want, I used "Atom x64")
#!/usr/bin/env bash
# Generates gource video (h.264) out of multiple repositories.
# Pass the repositories in command line arguments.
# Example:
# <this.sh> /path/to/repo1 /path/to/repo2
i=0
for repo in $*; do
# 1. Generate a Gource custom log files for each repo. This can be facilitated by the --output-custom-log FILE option of Gource as of 0.29:
logfile="$(mktemp /tmp/gource.XXXXXX)"
@Shinrai
Shinrai / gpg-signing.md
Last active January 5, 2022 19:00
Setup GPG with only Git installed (Windows)

Preface

This gist will walk you through on how to setup GPG signing automatically through git on windows

If you have GNUPG or GPG4WIN installed you will need to uninstall them prior to following this gist.

Step 1

Locate gpg.exe {GPGBIN} {GPGBINFOLDER}

Git ONLY

Open a command line shell