Skip to content

Instantly share code, notes, and snippets.

@rosswd
rosswd / multi-git-win.md
Last active June 24, 2024 02:04
Setting up a Github and Bitbucket account on the same computer on Mac OS. Now with a guide for Windows 10.

Setting up github and bitbucket on the same computer (Windows)

Guide for Windows

mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.

Github will be the main account and bitbucket the secondary.

Git for Windows

  • Download and install Git for Windows
    • In the installer, select everything but decide if you want a desktop icon (2nd step)
/* Centered Text / Img on one side, text on other */
%centered-text {
display: flex;
.et_pb_column {
display: flex;
flex-flow: column nowrap;
float: none;
justify-content: center;
.et_pb_module {
margin: 0 auto 30px;
@Crocoblock
Crocoblock / get-related.md
Last active May 30, 2024 07:30
Get JetEngine Related Items programmatically / Update related items / Get/Update relation meta
#region CCT Lookup - Get (single) field in CCT from JetEngine table
/**
*
* @param string $find_column column name to find
* @param string $needle - value that needs to be checked against
* @param string $lookup_column - column name to check $needle against
* @param string $table - slug of the CCT; global WPDB prefix and 'jet_cct_' will be appended; defaults to 'user_information'
*
* @return string|null returns the value of the $find_column if the $lookup_column matches the $needle; null if no match is found
*