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
int main() | |
{ | |
gets_input(); | |
trap { puts("ERROR: invalid input"); | |
return 1; | |
} return 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
inline | |
void gets_input() | |
{ char buffer[24]; | |
printf("Please enter your name and press <ENTER>\n"); | |
gets(buffer):// TrapC will terminate on overrun! | |
printf("%s", buffer); | |
} |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: postgres | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: postgres | |
template: |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: my-app | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: my-app | |
template: |
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
from testcontainers.k3s import K3sContainer | |
from testcontainers.postgres import PostgresContainer | |
import requests | |
import time | |
import os | |
def wait_for_pod_ready(kubeconfig_path, namespace="default", timeout=120): | |
""" | |
Wait for all pods in the namespace to be ready. |
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
pip install testcontainers | |
pip install kubernetes |
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 {useEmbraceNativeTracerProvider} from "@embrace-io/react-native-tracer-provider"; | |
// ... | |
function App(): React.JSX.Element { | |
const {isPending, isStarted} = useEmbrace({ | |
// ... Embrace config | |
}); | |
const {tracerProvider: embraceTracerProvider} = useEmbraceNativeTracerProvider({}, isStarted); |
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 {useEmbrace} from '@embrace-io/react-native'; | |
// ... | |
function App(): React.JSX.Element { | |
const {isPending, isStarted} = useEmbrace({ | |
ios: { | |
disabledUrlPatterns: ['grafana.net'], | |
}, | |
exporters: { |