Apple MacBook Pro M1, 32 GB, Ventura 13.2
Documentation based on comments in this Github Elasticsearch issue.
Install Homebrew
Apple MacBook Pro M1, 32 GB, Ventura 13.2
Documentation based on comments in this Github Elasticsearch issue.
SSH into your EC2 instance. Run the following:
$ sudo yum install gcc
This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
#!/bin/sh | |
# | |
# Setup a work space called `work` with two windows | |
# first window has 3 panes. | |
# The first pane set at 65%, split horizontally, set to api root and running vim | |
# pane 2 is split at 25% and running redis-server | |
# pane 3 is set to api root and bash prompt. | |
# note: `api` aliased to `cd ~/path/to/work` | |
# | |
session="work" |
/* | |
Main code by Richard Visokey AD7C - www.ad7c.com | |
Revision 2.0 - November 6th, 2013 | |
Updated with LCD I2C by Todd Gruener K7KXI | |
*/ | |
// Include the library code | |
#include <Wire.h> | |
#include <LCD.h> | |
#include <LiquidCrystal_I2C.h> |
/** | |
* The behaves the same as the lodash version https://www.npmjs.com/package/lodash.get | |
* | |
* Source: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_get | |
*/ | |
const get = (obj, path, defaultValue = undefined) => { | |
const travel = regexp => | |
String.prototype.split | |
.call(path, regexp) | |
.filter(Boolean) |
Specify differences between to branches and only files with a specific filename:
git diff topic..main -- './file1.txt' '**/file1.txt'
#Git Interactive Rebase
Scenario: We have a topic branch we've been working on. We want to combine the last few commits into one single commit. Our intention is to merge this topic branch, with one clean commit, into our main dev branch.
Solution: Git Rebase Interactive
Checkout your topic branch and look at your commit history:
$ git checkout topic-branch
#git rebase -i <sha>
List of commits from git log
F--E--D--C--B--A
Lets say you want to remove commit D
from the commits.
git rebase -i E