sudo apt-get install gcc g++ make
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// 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" } | |
] |
// 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> | |
); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create table | |
create table t1(doc jsonb); | |
-- Verify | |
SELECT * FROM t1; | |
-- insert some data | |
INSERT INTO t1 | |
VALUES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder