$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
| import React, { useEffect, useRef, useState } from 'react'; | |
| import PropType from 'prop-types'; | |
| import { makeStyles } from '@material-ui/core/styles'; | |
| import classNames from 'classnames'; | |
| import Fade from '@material-ui/core/Fade'; | |
| import FormControl from '@material-ui/core/FormControl'; | |
| import IconButton from '@material-ui/core/IconButton'; | |
| import InputLabel from '@material-ui/core/InputLabel'; |
| Notification.requestPermission() | |
| .then(() => new Notification("Welcome to ecco", { | |
| body: "This is some body text" | |
| })); | |
| // See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification |
| #!/usr/bin/env bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Versions | |
| CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE` |
| type Branded<T, U extends string> = T & { [Symbol.species]: U }; | |
| // if targeting ES5, change to: | |
| // type Branded<T, U> = T & { ['Brand']: U }; | |
| // FOO | |
| type FooId = Branded<number, 'FooId'>; | |
| // BAR | |
| type BarId = Branded<number, 'BarId'>; |
| run this in .m2 files | |
| it lists all the corrupted jar files in the repository | |
| find /home/me/.m2/repository/ -name "*jar" | xargs -L 1 zip -T | grep error | grep invalid | |
| To resolve them , delete them first and re run the build or run |
| #!/bin/sh | |
| # | |
| # For each ref, validate the commit. | |
| # | |
| # - It disallows deleting branches without a /. | |
| # - It disallows non fast-forward on branches without a /. | |
| # - It disallows deleting tags without a /. | |
| # - It disallows unannotated tags to be pushed. |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title> | |
| <script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| $(function () { | |
| var extractToken = function(hash) { |