From Mermaid
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': { 'showBranches': true, 'showCommitLabel': false,'mainBranchName': 'develop'}} }%%
gitGraph:
checkout develop
commit
branch hotfix/1.0.1
const { execSync } = require('child_process'); | |
function jsonToEnv(json) { | |
const data = JSON.parse(json); | |
let envData = ''; | |
for (const [key, value] of Object.entries(data)) { | |
envData += `${key}=${value}\n`; | |
} | |
return envData; | |
} |
From Mermaid
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': { 'showBranches': true, 'showCommitLabel': false,'mainBranchName': 'develop'}} }%%
gitGraph:
checkout develop
commit
branch hotfix/1.0.1
// Colors | |
$white: #fff; | |
$black: #000; | |
$black-1f: #1f1f24; | |
$black-22: #222222; | |
$black-33: #333333; | |
$black-55: #555555; | |
$grey-1d: #1d1d1d; | |
$grey-f2: #f2f2f2; | |
$grey-f6: #f6f6f6; |
$fontsPathUrl: '/assets/' !default; // This works with imp start | |
@font-face { | |
font-family: 'Great Vibes'; | |
src: url($fontsPathUrl + 'fonts/GreatVibes-Regular.woff2') format('woff2'), | |
url($fontsPathUrl + 'fonts/GreatVibes-Regular.woff') format('woff'); | |
font-weight: normal; | |
font-style: normal; | |
font-display: swap; | |
} |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket
You may use the same computer for work and personal development and need to separate your work.
When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.
You may have different projects you're working on where you would like to segregate your access.
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
/** | |
* Converts an RGB color value to HSL. Conversion formula | |
* adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
* Assumes r, g, and b are contained in the set [0, 255] and | |
* returns h, s, and l in the set [0, 1]. | |
* | |
* @param Number r The red color value | |
* @param Number g The green color value | |
* @param Number b The blue color value | |
* @return Array The HSL representation |
The following will guide you through the process of enabling SSL on a Apache webserver
Create a directory within /etc/apache2/
using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys: