This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.
| <div class="text-right"> | |
| <div class="custom-control custom-switch"> | |
| <mat-checkbox type="checkbox" | |
| class="custom-control-input" | |
| id="darkMode" | |
| [checked]="isThemeDark | async" | |
| (change)="toggleDarkTheme($event)"> | |
| <label class="custom-control-label" for="darkMode"></label> | |
| <a class="text-capitalize">Dark Mode</a> | |
| </mat-checkbox> |
After using docker desktop for quite long time it take disk space up to 50 GB or more for it's cache objects, images & junkey files. To Reclaim disk space there are some few steps to follow :
# Before cleaning docker cache object see your existing docker system details
>> docker system info
UPDATED 3.12.2020
The old version of youtube with "disable_polymer" is not working anymore, so the script also stopped working.
Thanks to JanTheDeveloper we have a new working script. Big up!
I just changed the '//span[contains(text(),"Watch later")]', to '//span[contains(text(),"Remove from")]', and it should work for any playlist, not just the watch later one. (thanks to hudsonite for the tip)
setInterval(function () {
document.querySelector('#primary button[aria-label="Action menu"]').click();| const path = require('path'); | |
| const TerserPLugin = require('terser-webpack-plugin'); | |
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin') | |
| module.exports = { | |
| entry: './src/index.js', | |
| output: { | |
| filename: 'bundle.[contenthash].js', | |
| path: path.resolve(__dirname, './dist'), |
We will compare ASP.NET and Node.js for backend programming.
Source codes from examples.
This document was published on 21.09.2015 for a freelance employer. Some changes since then (14.02.2016):
- Koa.js no longer uses co-routines, it has switched to Babel's
async/await.yieldandawaitare used almost in the same way, so I see no point to rewrite the examples.
| FROM node:alpine as builder | |
| WORKDIR /app | |
| COPY package.json package-lock.json ./ | |
| ENV CI=1 | |
| RUN npm ci | |
| COPY . . | |
| RUN npm run build -- --prod --output-path=/dist |
| { | |
| "posts": [ | |
| { | |
| "id": 1, | |
| "title": "Lorem ipsum dolor sit amet, consectetur adipiscing elit", | |
| "slug": "blog-post-1", | |
| "featured_image": "https://images.unsplash.com/photo-1598334274217-b50fa9428124?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" | |
| }, | |
| { | |
| "id": 2, |
| <--! Make some changes in 'angular.json' !--> | |
| "optimization": false, | |
| "outputHashing": "all", | |
| "sourceMap": false, | |
| "extractCss": false, | |
| "namedChunks": false, | |
| "aot": false, | |
| "extractLicenses": false, |
| #Enable daemon | |
| org.gradle.daemon=true | |
| # Try and findout the best heap size for your project build. | |
| org.gradle.jvmargs=-Xmx3096m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | |
| # Modularise your project and enable parallel build | |
| org.gradle.parallel=true | |
| # Enable configure on demand. | |
| org.gradle.configureondemand=true |