Skip to content

Instantly share code, notes, and snippets.

View webface's full-sized avatar
:octocat:
Focusing

webface webface

:octocat:
Focusing
View GitHub Profile
@webface
webface / App.tsx
Created December 20, 2020 02:42 — forked from rinturj84/App.tsx
Meteor - React-router Authentication for Routes.
import React from 'react';
import LoginForm from './components/login/LoginForm';
import { Router, Switch, Route } from 'react-router-dom';
import { createBrowserHistory } from 'history';
import AuthenticatedRoute from './authentication/AuthenticatedRoute';
import Desk from './components/desk/Desk';
export const App = () => {
const logout = () => Meteor.logout();
const history = createBrowserHistory();
@webface
webface / custom.conf
Created April 11, 2021 20:49 — forked from kalepail/custom.conf
My custom mechanic.conf template for rolling deployments on Meteor
{# Let folks know this wasn't a manual configuration #}
# This configuration file was generated with mechanic.
{% macro server(site, settings, options) %}
include "{{ settings.overrides }}/{{ site.shortname }}/top";
server {
gzip on;
@webface
webface / tinymce-react-nextjs.md
Created April 28, 2021 16:47 — forked from zhangshine/tinymce-react-nextjs.md
NextJs- React - Self hosted TinyMCE
  1. Install (TinyMCE 5.x)
npm install --save tinymce @tinymce/tinymce-react copy-webpack-plugin
  1. Copy static files(tinymce skins) to public folder. Edit file next.config.js
const path = require('path');
const webpack = require('webpack');
const CopyPlugin = require('copy-webpack-plugin');