Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
Discover gists
1、debian、ubuntu更新并升级软件包
apt update && apt upgrade -y
2、docker compose重新部署
docker compose down && docker compose up -d
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 com.ning.http.client.*; | |
import jenkins.plugins.asynchttpclient.*; | |
import com.cloudbees.jenkins.plugins.assurance.model.*; | |
import org.apache.commons.lang.*; | |
ProxyServer proxy = AHCUtils.getProxyServer() | |
if (proxy != null) { | |
println proxy.getHost() | |
println proxy.getPort() |
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
<template> | |
<DataTable | |
class="p-datatable-sm" | |
:value="records" | |
:lazy="true" | |
:auto-layout="true" | |
:paginator="true" | |
:rows="10" | |
v-model:filters="filters" | |
ref="dt" |
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
<b>英文名:</b> <?= enTitle ?> | |
<br><b>中文名:</b> <?= zhTitle ?> |
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
// Implementation in ES6 | |
function pagination(c, m) { | |
var current = c, | |
last = m, | |
delta = 2, | |
left = current - delta, | |
right = current + delta + 1, | |
range = [], | |
rangeWithDots = [], | |
l; |
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
<?php | |
use App\Events\MessageSent; | |
use Livewire\Volt\Component; | |
new class extends Component | |
{ | |
/** | |
* @var string[] | |
*/ |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
creationTimestamp: null | |
name: test | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
creationTimestamp: null |
NewerOlder