Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@johnnymatthews
johnnymatthews / semantic-commit-messages-for-documentations.md
Last active April 14, 2024 16:58 — forked from joshbuchea/semantic-commit-messages.md
Semantic commit messages for documentation.

I'm sure we've all seen Git repos with a shocking amount of branches. Without a decent naming convention, things can get messy real quick. The idea here is that adding the tags below to the start of your branch makes it easier for folks to quickly figure out what your trying to do.

These are the available types:

Type Description Example
feat Adds a new section or page. New paragraphs to existing documentation are not a feature. feat/desktop-install
add Adds a new paragraph, sentence, or image to existing documentation. add/desktop-install-screenshots
remove Removes existing paragraphs, sentences, or images from existing documentation remove/browser-disclaimer
fix Fixes an existing typo, spelling, grammar, or formatting mistake. feat/desktop-broken-repo-link
@johnnymatthews
johnnymatthews / lotusminer-config.toml
Created February 7, 2022 15:32
Config for lotus-miner for quick testing.
[API]
# Binding address for the Lotus API
#
# type: string
# env var: LOTUS_API_LISTENADDRESS
#ListenAddress = "/ip4/127.0.0.1/tcp/2345/http"
# type: string
# env var: LOTUS_API_REMOTELISTENADDRESS
#RemoteListenAddress = "127.0.0.1:2345"
@johnnymatthews
johnnymatthews / disable-enable-print-spooler.bat
Last active July 7, 2021 17:22
Disable and re-enable the print spooler on Windows 10.
REM "Disable the print spooler"
net stop spooler && sc config spooler start=disabled
REM "Enable the print spooler"
sc config spooler start=auto && net start spooler
REM "I actually have no idea what a _spooler_ is..."
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev -y &&
sudo apt upgrade -y &&
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh &&
wget -c https://golang.org/dl/go1.15.5.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local &&
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc &&
source ~/.bashrc &&
cd ~ && git clone https://github.com/filecoin-project/lotus.git &&
cd lotus && make clean all && sudo make install
### Keybase proof
I hereby claim:
* I am johnnymatthews on github.
* I am johnnymatthews (https://keybase.io/johnnymatthews) on keybase.
* I have a public key ASDH3sVcXMOfVEtSgXZLcO1b95IQVvX0FZHkRohKooeloQo
To claim this, I am signing this object:
@johnnymatthews
johnnymatthews / windows-terminal-settings.js
Last active November 10, 2020 22:53
My settings.json file for Windows Terminal. Remove the Azure and PowerShell 5.0 items.
// This file was initially generated by Windows Terminal Preview 1.4.2652.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
{
"editor.fontSize": 14,
"editor.lineHeight": 30,
"editor.minimap.enabled": true,
"editor.minimap.showSlider": "always",
"editor.wordWrap": "on",
"editor.detectIndentation": false,
"explorer.confirmDelete": false,
"terminal.integrated.fontSize": 14,
"window.zoomLevel": 0,
[
{
"key": "shift+cmd+g",
"command": "workbench.view.scm"
},
{
"key": "cmd+1",
"command": "workbench.action.openEditorAtIndex1"
},
{
# VERIFY A FILE'S CHECKSUM
# Enter the hash of the file from the website, and the name of
# the file, with an asterix * pre-pending it.
# shasum -a 256 -c <<<'HASH_OF_FILE_FROM_WEBSITE' '*NAME_OF_FILE'
# Here's an example:
shasum -a 256 -c <<<'302d795f6777ad187f978e9ca5eb11ae96930effd8816fa6380c7e14fdca98e9' '*coinomi-wallet-1.1.1-macos.dmg'
# Add a submodule
git submodule add -b master https://github.com/mohnjatthews/docs content
git submodule init
# Update a submodule
git submodule update --remote
# Update a submodule that came with a cloned repo
git submodule update --init --remote