- telnet
- Netcat (nc)
- Network Mapper (nmap)
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
using System; | |
using System.Reflection; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.Hosting; | |
using Serilog; | |
using Serilog.Events; | |
using Serilog.Exceptions; | |
/* | |
<PackageReference Include="Serilog.Enrichers.Environment" Version="2.2.0" /> |
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
// ECharts Toolbox 設定範例 | |
toolbox={ | |
show : true, //是否显示工具栏组件 | |
orient:"horizontal", //工具栏 icon 的布局朝向'horizontal' 'vertical' | |
itemSize:15, //工具栏 icon 的大小 | |
itemGap:10, //工具栏 icon 每项之间的间隔 | |
showTitle:true, //是否在鼠标 hover 的时候显示每个工具 icon 的标题 | |
feature : { | |
mark : { // '辅助线开关' | |
show: true |
Reference: Changing git commit message after push
If it is the most recent commit, you can simply do this:
git commit --amend
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
// ==UserScript== | |
// @name Greasemonkey Script Name | |
// @author Your name | |
// @namespace http://www.example.url/to/your-web-site/ | |
// @description Put a good description in here | |
// @license Creative Commons Attribution License | |
// @version 0.1 | |
// @include http://www.example.org/* |
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 { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ name: 'autocomplete' }) | |
export class AutocompletePipe implements PipeTransform { | |
transform(value: string[], args: string[]): any { | |
debugger; | |
if (!value) return value; | |
let ws = value.sort(); | |
let as = args[0].split(''); | |
as.push("PAUSE"); |
<select (click)="onChange($event)">
<!-- WORKING -->
<!-- <option *ngFor="let item of items" (click)="select(item.id)">{{item.text}}</option> -->
<!-- NOT WORKING -->
<ng-template ngFor let-item [ngForOf]="items">
<optgroup *ngIf="item.children" label="{{item.text}}">
<option *ngFor="let child of item.children" [value]="child.id">{{child.text}}</option>
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
var elementPos = array.map(function(x) {return x.id; }).indexOf(idYourAreLookingFor); | |
var objectFound = array[elementPos]; | |
ES5 syntax: [{id:1},{id:2},{id:3},{id:4}].findIndex(function(obj){return obj.id == 3}) | |
ES6 syntax: [{id:1},{id:2},{id:3},{id:4}].findIndex(obj => obj.id == 3) | |
NewerOlder