Skip to content

Instantly share code, notes, and snippets.

View DaddyMoe's full-sized avatar

Moses Mansaray DaddyMoe

View GitHub Profile
@DaddyMoe
DaddyMoe / Default (OSX).sublime-keymap
Created January 20, 2021 15:58
IntelliJ Idea unix based key mappings for SublimeText. For those, like me, with muscle memory bonded to IntelliJ shortcuts
// Open Sublime. The Preference-> key bindings. Apply all or selected few from the following.
[
{ "keys": ["super+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+d"], "command": "duplicate_line" },
{ "keys": ["shift+alt+up"], "command": "swap_line_up" },
{ "keys": ["shift+alt+down"], "command": "swap_line_down" }
]
@DaddyMoe
DaddyMoe / LinuxDevelopmentEnvironmentSetup.md
Last active December 31, 2020 14:41
Linux Development Environment Setup for Java and React/JS Engineering

Linux development Environment setup

Install SDKs, e.g. java via SDKMan

You may also need development tools to build native addons:

sudo apt-get install gcc g++ make

@DaddyMoe
DaddyMoe / DailyDockerCommands.md
Last active December 21, 2020 13:36
Daily Docker Commands

Daily Docker Commands

Building custom containers

// Build from a `Dockerfile` in this directory `.` and tag the container as `getting-started`
docker build -t getting-started .

//Run container in the background `-d` with ports `-p` and tag = `getting-started`
docker run -dp 3000:3000 getting-started
@DaddyMoe
DaddyMoe / react_state_component_reuse.jsx
Created January 10, 2020 22:32
React state management and Components reusing
// Use https://jscomplete.com/playground/rgs to play with this
function Button(props) {
const handleClick = () => props.myOnClickFunction(props.increment);
return (
<button onClick={onButtonClick}>
+{props.increment}
</button>
);
}
@DaddyMoe
DaddyMoe / airflow_commands.md
Last active June 20, 2023 09:52
airflow cheatsheet commands

Airflow cheatsheet commands

Helpppppppppp

airflow -h

Setup

~/airflow is the default home directory

@DaddyMoe
DaddyMoe / Java-Software-Development-setup-on-a-mac
Last active December 9, 2023 00:30
Environment setup for Java Software Development on a MacOS
Either follow this simple guide here or leverage other heavily oppinionated guides that are more comprehensive and community supported
# Option 1: Community support versions
First follow [xmlking's complete Mac setup](https://xmlking.gitbook.io/macos-setup/applications/sublime-text)
- General mac setup
- System preparedness and preferences - folders setup etc
- Application installations
@DaddyMoe
DaddyMoe / postgres_jsonb_string_find_replacement.sql
Last active November 12, 2019 23:38
postgres jsonb string find and replacement
-- Create table
create table t1(doc jsonb);
-- Verify
SELECT * FROM t1;
-- insert some data
INSERT INTO t1
VALUES
@DaddyMoe
DaddyMoe / CheatsheetsGcloudAndKubernetesCommands.md
Last active January 23, 2022 20:35
Cheat sheets: Gcloud and Kubernetes commands

Gcloud with Kubernetes

GCloud

gcloud help
gcloud projects list
gcloud projects create scaling-ms
gcloud projects delete my-project-1484614311039
gcloud compute zones list

gcloud config set compute/zone europe-west1-d

@DaddyMoe
DaddyMoe / start_elasticsearch_kibana.sh
Created May 2, 2019 19:53
Start Elastiscearch and kibana in the background
#!/usr/bin/env bash
#
# Start Elasticsearch and kibana in the background.
# But only for the instance of the running terminal.
#
echo "starting sonar"
~/dev/apps/sonarqube-7.7/bin/macosx-universal-64/sonar.sh start
@DaddyMoe
DaddyMoe / CommandsKubernetesToolings.md
Last active April 12, 2019 11:35
Kubernetes Tools Commands for installation, reset and usage

Commands for kubernetes - DevOps

on macOS - minikube | kubectl | docker

Setup:

saml2aws login  #
saml2aws        # Opt: configure. To configure user details.
export AWS_PROFILE=<my_profile>  # Set default profile

Usage