DST=/mnt
find /var/lib -type f -size +1G -exec ls -lh {} \; | tee $DST/bigfiles_var_lib_$(date "+%H%M").log
find /var/lib -type f -size +1G -exec ls -lh {} \; | awk '{ print $5 ": " $9 }' | sort -rh > $DST/bigfiles_var_lib_$(date "+%H%M").sorted.log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################### | |
| ## | |
| ## Alertmanager YAML configuration for routing. | |
| ## | |
| ## Will route alerts with a code_owner label to the slack-code-owners receiver | |
| ## configured above, but will continue processing them to send to both a | |
| ## central Slack channel (slack-monitoring) and PagerDuty receivers | |
| ## (pd-warning and pd-critical) | |
| ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'zone.js/dist/zone-node'; | |
| import { APP_BASE_HREF } from '@angular/common'; | |
| import { ngExpressEngine } from '@nguniversal/express-engine'; | |
| import * as express from 'express'; | |
| import { existsSync } from 'fs'; | |
| import { join } from 'path'; | |
| import * as redis from 'redis'; | |
| import { AppServerModule } from './src/main.server'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { camelize, dasherize } from '@angular-devkit/core/src/utils/strings'; | |
| import { Rule, SchematicContext, Tree, UpdateRecorder } from '@angular-devkit/schematics'; | |
| import { tsquery } from '@phenomnomnominal/tsquery'; | |
| import { SyntaxKind } from 'typescript'; | |
| import * as ts from 'typescript'; | |
| // You don't have to export the function as default. You can also have more than one rule factory | |
| // per file. | |
| export function ngrx8Update(_options: any): Rule { | |
| return (_tree: Tree, _context: SchematicContext) => { |
In this demonstration I will show you how to read data in Angular2 final release before application startup. You can use it to read configuration files like you do in other languages like Java, Python, Ruby, Php.
This is how the demonstration will load data:
a) It will read an env file named 'env.json'. This file indicates what is the current working environment. Options are: 'production' and 'development';
b) It will read a config JSON file based on what is found in env file. If env is "production", the file is 'config.production.json'. If env is "development", the file is 'config.development.json'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* https://github.com/eisnerd/feedback-tool + github issues | |
| Example: | |
| $.feedbackGithub({ | |
| token: "16222221222128357fab95ec80b56a43c9a1868b429", | |
| issues: { | |
| repository: "tokland/feedback-test", | |
| title: "feedback from user", | |
| renderBody: (body) => "my own data\n" + body, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # == Turn This == | |
| # <?xml version="1.0" encoding="utf-8"?> | |
| # <configuration> | |
| # <system.webServer> | |
| # <handlers> | |
| # <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> | |
| # </handlers> | |
| # <aspNetCore processPath=".\MyCoreGizmo.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" /> | |
| # </system.webServer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [core] | |
| quotepath = false # 中文檔名如實顯示而不轉碼 | |
| autocrlf = false # commit 及 checkout 時不根據作業系統轉換檔案的換行字元 (避免不小心改動原 repo 的換行字元) | |
| safecrlf = false # 檢查文字類檔案是否混合了 CRLF 及 LF 換行字元 (搭配 autocrlf,這裡一起關閉) | |
| ignorecase = false # 檔名大小寫不同時視為相異 (更動大小寫才能 commit) | |
| whitespace = cr-at-eol # diff 時行尾 CRLF 不顯示 ^M | |
| fileMode = false # 忽略檔案的 x 屬性 (for Windows) | |
| symlinks = false # 忽略符號連結 (for Windows) | |
| editor = /usr/bin/vim # 預設的文字編輯器 (for Linux) | |
| [alias] |