print ascii art of text
This file contains 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
<div *ngFor="let task of tasks"> | |
<!-- Use # to set the name of the input element to focus --> | |
<input #taskInput *ngIf="task.isEditing" type="text" [(ngModel)]="task.name" (blur)="onEdited(task)" (keyup.enter)="taskInput.blur()"> | |
<div *ngIf="!task.isEditing" (dblclick)="onEdit(task)">{{task.name}}</div> | |
</div> |
This file contains 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
# Use webbrowser.sh as x-www-browser command | |
# | |
# Please follow the instructions below to install: | |
# 1. Modify the path to webbrowser.sh | |
# 2. Execute this command | |
sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /path-to/webbrowser.sh 1 # Edit this path to point your webbrowser.sh |
This file contains 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
# Usage: source /path-to/minikube-docker-env | |
eval $(minikube docker-env --shell zsh) | |
export DOCKER_CERT_PATH=$(wslpath "$DOCKER_CERT_PATH") |
This file contains 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 de.danielbechler.diff.ObjectDifferBuilder; | |
import de.danielbechler.diff.node.DiffNode; | |
import de.danielbechler.diff.node.Visit; | |
// implemented with java-object-diff(https://github.com/SQiShER/java-object-diff) | |
public final class DiffDumpUtils { | |
public static void dumpDiff(Object o1, Object o2) { | |
DiffNode root = ObjectDifferBuilder.buildDefault().compare(o2, o1); | |
root.visit((DiffNode node, Visit visit) -> { |
This file contains 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
# Edit 'MANIFEST' and point to the manifest file of the ubuntu version you installed | |
# | |
# Ubuntu server image 18.04.3 | |
# MANIFEST=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-live-server-amd64.manifest | |
# | |
# Ubuntu desktop image 18.04.3 | |
# MANIFEST=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-desktop-amd64.manifest | |
MANIFEST=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-live-server-amd64.manifest | |
wget $MANIFEST -q -O - | cut -f 1 | cut -d':' -f1 | sort > preinstalled.txt | |
apt list --manual-installed | cut -d'/' -f1 | sort > manual_installed.txt |
OlderNewer