Skip to content

Instantly share code, notes, and snippets.

View skobba's full-sized avatar

Gjermund Skobba skobba

View GitHub Profile
which mongod
/usr/local/bin/mongod
Set up launchctl to auto start mongod:
ln -sfv /usr/local/opt/mongodb/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents
# Versions
Version 2 - this time to make use of a feature in docker-compose that isn’t available in the version 3 specification.
Version 3 - is more suited towards use in production than version 2, which has more development friendly features.
# docker-compose
docker-compose start
docker-compose ps
docker-compose up -d --build search
docker-compose down search
@skobba
skobba / git
Last active June 21, 2019 10:43
# Spit commits
git reset HEAD~
# Exit merge
git reset --hard HEAD
git pull --strategy=theirs remote_branch
git fetch origin
git reset --hard origin
# Reset to specific branch
# Known issues
1. runAll.sh is not run -> run runAll.sh :)
2. Apache Jena - lock
delete lockfiles under ./fdk/data
3. nginx start to late
Make sure nginx start last.
# Install Java8 and/or Maven
# Install java8 (Java SE Development Kit 8u211)
Java 8 is not in brew!
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
extgjs@brreg.no/4325dfgSFGds
# Uninstall java11
brew cask uninstall java11
# Ref
https://hackernoon.com/a-better-way-to-develop-node-js-with-docker-cd29d3a0093
# Developing libs with npm link
In lib packaged run:
npm link
In main proj run:
npm link mylib
https://blog.logrocket.com/choosing-between-babel-and-typescript-4ed1ad563e41/
# Center content
my-auto
h1 - 2.8rem (62px)
p - 1.6rem (16px)
<span>
display: inline; /* the default for span */
html {
font-size: 62.5%;
}
body {

get

Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.