Skip to content

Instantly share code, notes, and snippets.

@patb23
patb23 / Git101.md
Created August 3, 2018 19:57
Github 101

Introduction

This gist provides a list of git configuration and git cli commands for certain common tasks and for the Git Workflow adopted for this project. GitHub Desktop is widely used but UI of git gui and Tortoise Git could be familiar for Tortoise Hg users.

Initial Setup

.gitconfig is the equivalent of hg settings.

  • user-specific settings
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
# to handle long file paths
Verifying my Blockstack ID is secured with the address 19BDZxTN1TogMHKQtWNVzahyBKo2kw1mtf https://explorer.blockstack.org/address/19BDZxTN1TogMHKQtWNVzahyBKo2kw1mtf
@patb23
patb23 / keybase-identity.txt
Created December 26, 2017 19:49
keybase-identity
### Keybase proof
I hereby claim:
* I am patb23 on github.
* I am patb23in (https://keybase.io/patb23in) on keybase.
* I have a public key ASB2XYQkFkO1ujgduY0X7esTAuiEEKLL0OBlcTOH-Lv5Vwo
To claim this, I am signing this object:
@patb23
patb23 / _verify-repair-permissions-disk.md
Created December 1, 2017 15:15 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@patb23
patb23 / gist:44baf17d2eeef0876f7a56a8f73073d3
Created October 16, 2017 17:33
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@patb23
patb23 / chef-install.md
Last active June 5, 2017 21:37
Install and configure Chef server in Centos.
  1. Install ChefDK and yum install the rpm https://downloads.chef.io/chefdk#el
  2. Install Chef Server by downloading from https://downloads.chef.io/chef-server#el
  3. run as su, chef-server-ctl reconfigure
  4. install chef-manage by running chef-server-ctl install chef-manage
  5. run chef-server-ctl reconfigure
  6. run chef-manage-ctl reconfigure
  7. Create a folder in your home directory - this will be the workspace to try recipes and cookbooks. let's call it 'learn-chef', switch to this folder and run the following: