⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,
npx -p @angular/cli ng new hello-world-project | |
then locally can run | |
npx ng g c hello-world-component | |
import { EventEmitter, NgZone } from "@angular/core"; | |
import { Observable, throttle } from "rxjs"; | |
export class NoopNgZone implements NgZone { | |
readonly hasPendingMicrotasks = false; | |
readonly hasPendingMacrotasks = false; | |
readonly isStable = true; | |
readonly onUnstable = new EventEmitter<any>(); | |
readonly onError = new EventEmitter<any>(); |
import React from "react"; | |
import { | |
LayoutChangeEvent, | |
PanResponder, | |
PanResponderGestureState | |
} from "react-native"; | |
import styled from "styled-components"; | |
type StateType = { | |
barHeight: number | null, |
Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
FROM php:7.1-apache | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends git zlib1g-dev libicu-dev \ | |
&& docker-php-ext-configure intl \ | |
&& docker-php-ext-install intl gettext zip pdo pdo_mysql \ | |
&& a2enmod rewrite \ | |
&& sed -i 's!/var/www/html!/var/www/web!g' /etc/apache2/sites-available/000-default.conf \ | |
&& mv /var/www/html /var/www/web \ | |
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
// angular | |
import {Component, ViewEncapsulation} from '@angular/core'; | |
declare var Reflect: any; | |
const _reflect: any = Reflect; | |
// Usage: | |
// @BaseComponent({ etc... }) | |
export function BaseComponent(metadata: any = {}) { |
// Import all | |
import Rx from "rxjs/Rx"; | |
Rx.Observable | |
.interval(200) | |
.take(9) | |
.map(x => x + "!!!") | |
.bufferCount(2) | |
.subscribe(::console.log); |
This is a small write up about how to migrate your pritunl install between servers. It's not especially detailed because I'm lazy and your migration story will most likely be different. All this can be avoided by using a remote/hosted mongo instance(compose.io, mongolab, etc.) and simply pointing your pritunl instance at that. If you want more details ask, and I'll do my best to answer and update this write-up accordingly. Also, feel free to criticize my grammar and spelling.
(source)
Taking [denilson-sá's answer][2] further...
You need revision numbers to grab downloads. So first lookup the full version string from the following URL, adjusting parameters as needed:
https://omahaproxy.appspot.com/history.json?channel=stable&os=mac
For Chrome version 28 the full version string is 28.0.1500.71. Now go to https://omahaproxy.appspot.com and enter the full version string ("28.0.1500.71") into the Position Lookup box. Copy the Base Position number ("209842" in this case).