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
type PlatformLoadBalancerOpenShiftManaged struct { | |
// Type is the type of the OpenShift managed load balancer used by the cluster. | |
// The default value is Default. | |
// +default="Default" | |
// +kubebuilder:default:="Default" | |
// +kubebuilder:validation:Enum=Default | |
// +kubebuilder:validation:Required | |
// +optional | |
Type PlatformLoadBalancerOpenShiftManagedType `json:"type,omitempty"` | |
} |
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
#!/usr/bin/env bash | |
DPDK_NETWORK_NAME="hostonly" | |
HUGEPAGES="1" | |
cat > 01-pao-namespace.yaml <<EOF | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: openshift-performance-addon-operator |
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
Write text : | |
Server side : nc -l 3333 | |
Client side : nc X.X.X.X 3333 | |
Transfert a file : | |
Server side : cat file | nc -l 3333 | |
Client side : nc X.X.X.X 3333 > file |
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
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define K 1024 | |
#define M 1024*K | |
#define MAX_MEM 500 | |
#define BLK_SIZE M |
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
screen -S emilien | |
CTRL + A and C : Create a new terminal | |
CTRL + A and SHIFT + A : Rename the current terminal |
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
1) Add at the beginning of the script : | |
import pdb | |
2) Add pdb.set_trace() where we want to stop the script to give the end at the user in prompt. | |
3) Run the script : | |
python -m pbd script.py |
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
sed -e 's/#.*$//' -e '/^$/d' nova.conf |pastebinit |