sudo apt-get install python3-pip
sudo -H pip3 install virtualenv
emulator -list-avds | |
adb devices | |
emulator @avd_name -no-boot-anim | |
adb shell input keyevent 82 | |
adb shell input text 'rr' | |
adb logcat |
#!/bin/bash | |
######################################## | |
##### USE THIS WITH AMAZON LINUX 2 ##### | |
######################################## | |
# get admin privileges | |
sudo su | |
# install httpd (Linux 2 version) |
# /etc/gitlab-runner/config.toml | |
concurrent = 10 | |
check_interval = 0 | |
[session_server] | |
session_timeout = 1800 | |
[[runners]] | |
name = $RUNNER_NAME |
const asyncTask = (taskNumber) => new Promise((resolve, reject) => { | |
setTimeout(() => { | |
console.log(`Async task-${taskNumber} done`); | |
resolve(); | |
}, Math.random() * 1000 * 3); | |
}); | |
const asyncJob = async () => { | |
console.log('Starting Async Job'); | |
await asyncTask(1); |
// Correct usage of console.log | |
const foo = { name: 'Nacho', age: 25, role: 'Fullstack' } | |
const bar = { name: 'Rama', age: 26, role: 'Frontend' } | |
const baz = { name: 'Tito', age: 27, role: 'Frontend' | |
const logIt = () => console.log({ foo, bar, baz }); | |
// Custom CSS | |
console.log('%c My Friends', 'color: orange; font-weight: bold;' ) | |
logIt(); |
You will need Home Brew installed.
brew tap mongodb/brew
brew install mongodb-community
You can now start Mongo as a background process