I hereby claim:
- I am JorgenVatle on github.
- I am warthy (https://keybase.io/warthy) on keybase.
- I have a public key whose fingerprint is 2682 17D1 A59B 6678 628C 8920 FF4C 482E BFF8 E15D
To claim this, I am signing this object:
######################################################### | |
# JS kebab case to single word without apostrophes | |
## Find: | |
/'.+-(.+)'\s?:/g | |
## Replace with: | |
$1: | |
## Example use: |
export default { | |
name: 'review-reactions', | |
props: ['agree', 'disagree', 'id'], | |
template: '<div>' + | |
' <span v-if="display === \'agree\'">' + | |
' You and {{ agree }} others disagree to this' + | |
' </span>' + | |
' <span v-else-if="display === \'disagree\'">' + | |
' You and {{ disagree }} others disagree to this' + | |
' </span>' + |
<template> | |
<div> | |
<span v-if="selectedReaction === 'agree'"> | |
You and {{ agree }} others disagree to this | |
</span> | |
<span v-else-if="selectedReaction === 'disagree'"> | |
You and {{disagree}} others disagree to this | |
</span> | |
</div> | |
</template> |
<template name="mmodel" value="import { Mongo } from 'meteor/mongo'; const $ModelName$Collection = new Mongo.Collection('$CollectionName$'); interface $ModelName$Document extends ModelDocument { // Todo: Fill in document properties. } interface $ModelName$ extends $ModelName$Document { entry: $ModelName$Document } class $ModelName$ extends Model { /** * Mongo collection this model is responsible for. */ static readonly collection = $ModelName$Collection; /** * $ModelName$ constructor. * */ constructor(docOrId: DocumentOrId) { super(docOrId, $ModelName$Collection) } // Add model methods and relationships. } export default $ModelName$" description="Creates a Meteor Model class" toReformat="false" toShortenFQNames="true"> | |
<variable name="ModelName" expression="" defaultValue="" alwaysStopAt="true" /> |
// Todo: grab shop from `admin.shops` subscription. | |
const shopId = shops[0]._id; // The `_id` field on a Shop object contains your shopId. | |
/* | |
* Subscribe to a Meteor Collection | |
*/ | |
ddpclient.subscribe( | |
'admin.orders', // Meteor subscription name | |
[shopId], // Any parameters to pass to the Meteor subscription. |
// Finds URLs! Source: http://www.regexpal.com/93826 | |
(((http|ftp|https):\/{2})+(([0-9a-z_-]+\.)+(aero|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mn|mn|mo|mp|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|nom|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ra|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw|arpa)(:[0-9]+)?((\/([~0-9a-zA-Z\#\+\%@\.\/_-]+))?(\?[0-9a-zA-Z\+\%@\/&\[\];=_-]+)?)?)) |
#!/bin/bash | |
# All credit goes to Marek Bosman. | |
# Source: https://marekbosman.com/site/automatic-update-of-cloudflare-ip-addresses-in-nginx/ | |
# Location of the nginx config file that contains the CloudFlare IP addresses. | |
CF_NGINX_CONFIG="/etc/nginx/cloudflare" | |
# The URLs with the actual IP addresses used by CloudFlare. | |
CF_URL_IP4="https://www.cloudflare.com/ips-v4" |
I hereby claim:
To claim this, I am signing this object: