Requirements:
- lodash (or underscore, you may need to change your _ functions to suit)
- Meteor email package
Meteor.startup(function () {
var sendEmail = _.bind(Email.send, Email);
name: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest |
import { useTracker } from 'meteor/react-meteor-data' | |
// Create a reusable subscribe hook | |
const usePageSubscription = (pageId) => useTracker(() => { | |
const subscription = Meteor.subscribe('page', pageId) | |
return !subscription.ready() | |
}, [pageId]) | |
// Separate page hook | |
const usePage = (pageId) => useTracker(() => { |
// VueJS does not permit <script> tags to be embedded in component templates | |
// Inorder to embed the xrptipbot widget (as described here: https://www.xrptipbot.com/account/embed): | |
// Add the following to your vuejs component template (make sure to change the tip receipient!): | |
<div id="xrptipbot"> | |
<a amount="5.00" size="175" to="DevNullProd" network="twitter" href="https://www.xrptipbot.com" target="_blank"></a> | |
</div> | |
// Then add / extend the component 'mounted' hook to add the script: | |
mounted : function(){ |
const username = process.argv[2] | |
const type = process.argv[3] || 1 | |
const sharp = require('sharp') | |
const QRCode = require('qrcode') | |
const fetch = require('node-fetch') | |
const printer = require("node-printer-lp-complete") | |
const printOptions = { | |
media: 'Custom.25x50mm', | |
destination: "ColorLabelPrinter", |
<template name='testing'> | |
{{#myOuterBlockHelper mydata='SOMETHING'}} | |
{{#myInnerBlockHelper1}}helper 1!{{/myInnerBlockHelper1}} | |
{{else}} | |
<h1> Some static Content </h1> | |
{{/myOuterBlockHelper}} |
// Copyright 2014–2017, Eric Holk | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
# Do we have swap? | |
grep swap /etc/fstab -q | |
status=$? | |
if [ $status -ne 0 ]; then | |
dd if=/dev/zero of=/swapfile bs=1024 count=1048576 | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab | |
swapon /swapfile | |
fi |