apt-get install openjdk-8-jdk
echo "export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64" > /etc/profile.d/Z99-java-env.sh
source /etc/profile.d/Z99-java-env.sh
| import ReactDOM from 'react-dom' | |
| import { PropTypes } from 'react' | |
| import map from 'ramda/src/map' | |
| import toPairs from 'ramda/src/toPairs' | |
| import compose from 'ramda/src/compose' | |
| import propOr from 'ramda/src/propOr' | |
| import curry from 'ramda/src/curry' | |
| const { string, object, func } = PropTypes |
| import createAction from 'redux-actions/lib/createAction' | |
| import { create, read, update, destroy, params } from 'utils/xhr' | |
| import always from 'ramda/src/always' | |
| import assoc from 'ramda/src/assoc' | |
| import compose from 'ramda/src/compose' | |
| import concat from 'ramda/src/concat' | |
| import dissoc from 'ramda/src/dissoc' | |
| import flip from 'ramda/src/flip' |
| import { Component } from 'react' | |
| import propOr from 'ramda/src/propOr' | |
| import identity from 'ramda/src/identity' | |
| import map from 'ramda/src/map' | |
| import compose from 'ramda/src/compose' | |
| class FluxComponent extends Component { | |
| static createReducer = (initialState, handlers) => (state = {}, action) => | |
| propOr(identity, action.type, handlers)(state, action) |
| import React, { useRef } from "react"; | |
| import useDropdown from "use-dropdown"; | |
| function CountriesDropdown(props) { | |
| const coutriesEl = useRef(null); | |
| const countriesDropEl = useRef(null); | |
| const [countriesDropOpen, toggleCountriesDrop] = useDropdown(countriesDropEl, coutriesEl); | |
| const onClick = () => toggleCountriesDrop(); | |
| return ( |
If you put the git-all command provided in this gist as an executable in your PATH then:
For a structure like:
/just/a/project/group/path
Where project-{1,2,3} are all git directories we can execute the following:
| #!/bin/bash | |
| set -e | |
| database="MY_DATABASE" | |
| altered_tables=0 | |
| function fatal { | |
| echo "FATAL: $1" >&2 | |
| echo "Exiting now." >&2 |
| #!/bin/bash | |
| function usage { | |
| echo "Use ./run_ghost.sh table_name 'alter_command' [other_ghost_args]" | |
| exit 1 | |
| } | |
| database="MY_DATABASE_NAME" | |
| table=$1 |
| #!/bin/bash | |
| # "panic button" when run in a for loop: | |
| # exit | |
| database="MY_DATABASE" | |
| export_dir="/mnt/backups/my-archive" | |
| set -e |