View gist:7a3f14be0e577550773548ae0fdbfd6d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system | |
# Careful, seems like manjaro already uses /etc/sysctl.d/40 to define a lower value |
View gist:4055efc8d12b6763b5a20e3efe513b64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo systemctl enable emby-server.service | |
sudo systemctl start emby-server.service | |
sudo mkdir /mediafiles | |
sudo groupadd multimedia | |
sudo gpasswd -a emby multimedia | |
sudo gpasswd -a landry multimedia | |
sudo chown emby:multimedia /mediafiles | |
sudo chmod -R g+rwx /mediafiles |
View FormValidationHelper.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const validate = (value, allValues, meta, validationTypes) => { | |
const ret = validationTypes.reduce((sum, next) => { | |
console.debug({ sum, next }); | |
return sum && next(value, allValues, meta); | |
}, true); | |
console.debug('V_A_L_I_D_AT_I_O_N_', ret); | |
return ret; | |
}; | |
const required = value => { |
View AuditModelBuilder.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FieldArray name="sections" subscription={{}}> | |
{({ fields }) => { | |
return ( | |
<SortableContainer onSortEnd={fields.move} useDragHandle> | |
{fields.map((name, index) => ( | |
<AuditModelSection | |
key={name} | |
sectionIndex={index} | |
index={index} | |
moveSection={fields.move} |
View Contact.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Row, Col, Title, Tabs, Loader } from '../../../../ui/base'; | |
import { FormattedMessage, injectIntl, intlShape } from 'react-intl'; | |
import ContactForm from './ContactForm'; | |
import PropTypes from 'prop-types'; | |
import { pick, isEmpty } from 'ramda'; | |
const TabPane = Tabs.TabPane; | |
const Contact = ({ form, intl, brands, selectedDealer }) => { |
View Config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from 'react'; | |
import ActionBar from '../../../ui/layout/ActionBar'; | |
import { | |
getDealersSelect, | |
getSelectedDealer, | |
getSelectedDealerId, | |
getDealersIsFetching, | |
getDealersLinks, | |
getDealersApiError | |
} from '../../../../selectors/dealerSelectors'; |
View cloudSettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-03-29T16:44:03.590Z","extensionVersion":"v3.4.3"} |
View 17.06.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
CHANNEL="stable" | |
docker_version=17.06.2 | |
apt_url="https://apt.dockerproject.org" | |
yum_url="https://yum.dockerproject.org" | |
gpg_fingerprint="9DC858229FC7DD38854AE2D88D81803C0EBFCD88" |