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
package main | |
import ( | |
"net/http" | |
"github.com/labstack/echo/v4" | |
) | |
type Handler struct { | |
service *Service | |
} |
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
CREATE TABLE IF NOT EXISTS `wp_redirection_items` ( | |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
`url` mediumtext NOT NULL, | |
`match_url` VARCHAR(2000) DEFAULT NULL, | |
`match_data` TEXT, | |
`regex` INT(11) unsigned NOT NULL DEFAULT '0', | |
`position` INT(11) unsigned NOT NULL DEFAULT '0', | |
`last_count` INT(10) unsigned NOT NULL DEFAULT '0', | |
`last_access` datetime NOT NULL DEFAULT '1970-01-01 00:00:00', | |
`group_id` INT(11) NOT NULL DEFAULT '0', |
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
public static bool DeepEquals (this object obj, object another) | |
{ | |
if (ReferenceEquals (obj, another)) return true; | |
if ((obj == null) || (another == null)) return false; | |
if (obj.GetType ()! = another.GetType ()) return false; | |
// If the property is not a class, just int, double, DateTime, etc. v | |
// Call regular equal function | |
if (! obj.GetType (). IsClass) return obj.Equals (another); | |
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
version: "3.8" | |
services: | |
db: | |
image: postgres | |
container_name: local_pgdb | |
restart: always | |
ports: | |
- "5432:5432" | |
environment: | |
POSTGRES_USER: your-username |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net6.0</TargetFramework> | |
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | |
<PackAsTool>True</PackAsTool> | |
<AssemblyVersion>1.0.1.0</AssemblyVersion> | |
<FileVersion>1.0.1.0</FileVersion> | |
<Version>1.0.1</Version> | |
</PropertyGroup> |
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: v1 | |
kind: Namespace | |
metadata: | |
creationTimestamp: null | |
name: test-talos | |
spec: {} | |
status: {} | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment |
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
logging { | |
level = "debug" | |
format = "logfmt" | |
} | |
otelcol.receiver.otlp "example" { | |
http { | |
endpoint = "0.0.0.0:4318" | |
} |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: busybox-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: busybox | |
template: |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: pingd | |
name: pingd |
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: v1 | |
kind: ServiceAccount | |
metadata: | |
labels: | |
k8s-app: metrics-server | |
name: metrics-server | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole |
NewerOlder