Skip to content

Instantly share code, notes, and snippets.

@aeosys
aeosys / README.md
Last active June 15, 2022 08:33
Use GitHub in SourceTree with SSO enabled personal access token

Use GitHub in SourceTree with SSO enabled personal access token

Prerequisites

  • Git with credential manager
  • Do not add GitHub account to SourceTree

Steps

  1. Create new token in https://github.com/settings/tokens
  2. Select "repo" scope
  3. Create token and copy it to clipboard
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active June 27, 2024 14:45
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@thetasnippets
thetasnippets / gist:6843102
Created October 5, 2013 16:39
apache: htaccess recipes
# 301 redirect one domain to another
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)$ http://www.__DOMAIN.what__/$1 [R=301]
# Nice URLS PHP .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
@mshafrir
mshafrir / states_hash.json
Created May 9, 2012 17:05
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",