List:
docker images -a
Remove:
docker rmi Image Image
npm list -g --depth=0 | |
// Listing globally installed NPM packages and version |
import { inject, observer } from 'mobx-react'; | |
const GuestCell = (guestStore, handleChange) => | |
<div><input value={guestStore.firstName} onChange={handleChange} /><div>; | |
export default inject('guestStore')(observer(GuestCell)); |
# disable TestUnit, enable api options, use postgres | |
rails new . -T --api --database=postgresql | |
# create postgres user | |
createuser -P user_name | |
# create db | |
createdb db_name | |
#Grant privileges to user, you might need quotes if values have dashes |
/* | |
brew install yarn | |
yarn init | |
yarn add webpack webpack-dev-server path html-webpack-plugin react react-dom | |
yarn add babel-loader babel-core babel-preset-es2015 babel-preset-react --dev | |
yarn start | |
|-- client | |
|-- components | |
|-- app.jsx |
// MobX store | |
class GuestCollection extends Collection { | |
@observable guestList; | |
initCollection() { | |
XoApi.fetch(GuestCollection.apiUrl) | |
.then(GuestCollection.processGuestList) | |
.then(GuestCollection.updateGuestList) | |
// … | |
} |
// <ToggleSwitch /> | |
class ToggleSwitch extends Component { | |
onClickHandler = () => { | |
this.setState((prevState) => ({ on: !prevState.on })); | |
this.props.clickHandler(); | |
} | |
// … | |
} | |
// Elsewhere in app |
transmission-cli
for the torrent client, and nginx
to serve files.seedbox-setup.sh
is present in the current directory.