I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
| #!/bin/bash | |
| # | |
| # If run inside a git repository will return a valid semver based on | |
| # the semver formatted tags. For example if the current HEAD is tagged | |
| # at 0.0.1, then the version echoed will simply be 0.0.1. However, if | |
| # the tag is say, 3 patches behind, the tag will be in the form | |
| # `0.0.1+build.3.0ace960`. This is basically, the current tag a | |
| # monotonically increasing commit (the number of commits since the | |
| # tag, and then a git short ref to identify the commit. | |
| # |
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't
npm install -g jspm@betajspm initjspm install angular2 reflect-metadata zone.js es6-shimThis will create a jspm_packages folder, and a config.js file.
Open the config.js file - this file manages options for the System.js loader - tweak it as appropriate
| me=$(whoami) | |
| # Get Sudo. | |
| if [ $EUID != 0 ]; then | |
| sudo "$0" "$@" | |
| exit $? | |
| fi | |
| # Install Xcode command line tools. | |
| xcode-select --install |
Place the supervisord.conf under .ebextensions/supervisor/
Place the supervisor.config under .ebextensions/
Place the data_import_consumer.conf under .ebextensions/supervisor/
| // How to get the pickadate to mount correcty in React.js component | |
| // requires jQuery and pickadate.js (https://github.com/amsul/pickadate.js/) | |
| var Component = React.createClass({ | |
| getInitialState: function() { | |
| return ({value: null}); | |
| }, | |
| componentDidMount: function() { |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.Extensions.Hosting; | |
| public class Program | |
| { | |
| public static void Main(string[] args) => | |
| Host.CreateDefaultBuilder(args) | |
| .ConfigureWebHostDefaults(webBuilder => |
| title | MSBuild Version Properties Cheatsheet |
|---|---|
| author | natemcmaster |
| date | September 18, 2019 |
| source | https://stackoverflow.com/questions/42183300/what-is-the-difference-between-various-msbuild-version-properties-such-as-versi |
| snippet | https://jonlabelle.com/snippets/view/markdown/msbuild-version-properties-cheatsheet |
| gist | https://gist.github.com/jonlabelle/34993ee032c26420a0943b1c9d106cdc |
Based on Stack Overflow