- Install Docker Desktop
Because we already have an official CockroachDB docker image, we will use that in our docker-compose.yml file. We recommend you use one of the current tags instead of latest.
| #!/bin/bash | |
| echo "flutter clean ..." | |
| flutter clean | |
| echo "Deleting .flutter-plugins ..." | |
| rm -rf .flutter-plugins | |
| echo "Deleting .packages ..." | |
| rm -rf .packages | |
| echo "Deleting .symlinks ..." | |
| rm -rf ios/.symlinks/ |
Because we already have an official CockroachDB docker image, we will use that in our docker-compose.yml file. We recommend you use one of the current tags instead of latest.
| // HTTPStatusCode provides all the known HTTP status codes. Since these codes | |
| // are well known, it makes sense to use them as an easy way to detect, over | |
| // the wire, if a message has been malformed, errors have happened or processed | |
| // correctly. | |
| enum StatusCode { | |
| StatusCode_UNSPECIFIED = 0; | |
| StatusCode_CONTINUE = 100; | |
| StatusCode_SWITCHING_PROTOCOLS = 101; | |
| StatusCode_PROCESSING = 102; |
| # install avahi | |
| # to configure servce | |
| [server] | |
| allow-interfaces=br-<private-network>,br-<iot-network> | |
| use-ipv4=yes | |
| use-ipv6=no | |
| allow-interfaces=br-lan,br-machina | |
| check-response-ttl=no | |
| use-iff-running=no | |
| cache-entries-max=0 |
| # Install dependencies | |
| # | |
| # * checkinstall: package the .deb | |
| # * libpcre3, libpcre3-dev: required for HTTP rewrite module | |
| # * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module | |
| apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \ | |
| mkdir -p ~/sources/ && \ | |
| # Compile against OpenSSL to enable NPN. I updated this block to get the latest 1.0.2h release. It's critical that OpenSSL be up to date. |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
| import { Injectable } from "@angular/core"; | |
| import { Store } from "@ngrx/store"; | |
| import { StoreService } from "./store-service.ts" | |
| import { myReducer, IMyState, } from "./reducer.ts" | |
| @Injectable() | |
| export class SomeService { | |
| constructor(private store: Store<any>, storeService: StoreService) { | |
| // Add the service specific reducers to the set of existing reducers. | |
| storeService.addReducers({myReducer}); |
| # reboot | |
| rbcfg set boot_device nand | |
| rbcfg set boot_protocol dhcp | |
| rbcfg set booter backup | |
| # and to be fast | |
| rbcfg set cpu_mode regular | |
| # have it applied | |
| rbcfg apply |
| import {Injectable, EventEmitter} from 'angular2/core'; | |
| @Injectable() | |
| export class EmitterService { | |
| private static _emitters: { [ID: string]: EventEmitter<any> } = {}; | |
| static get(ID: string): EventEmitter<any> { | |
| if (!this._emitters[ID]) | |
| this._emitters[ID] = new EventEmitter(); | |
| return this._emitters[ID]; |
| # in terminal | |
| defaults write ch.sudo.cyberduck rendezvous.enable false |