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
{ | |
"blocks": [ | |
{ | |
"type": "context", | |
"elements": [ | |
{ | |
"type": "mrkdwn", | |
"text": "*`Firing`: Latency P99 on orders-demo exceeds threshold*" | |
} | |
] |
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
Git push statistics: | |
https://stackoverflow.com/a/21484013 | |
Disable Screenshot in App: | |
https://stackoverflow.com/a/54998200 |
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
func (hs *HTTPServer) addAPMPanelToHomeDashboard(c *models.ReqContext, dash *simplejson.Json) { | |
// check org if dashboard exists -> apm | |
// 1. if not exist in org - return | |
dashboardExistInOrg := true | |
if !dashboardExistInOrg { | |
return | |
} | |
// generate dashbaord | |
// create json and append to home json |
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. DeprecationWarning: Mongoose: the `strictQuery` option will be switched back to `false` by default in Mongoose 7 | |
mongoose.set("strictQuery", false); | |
mongoose | |
.connect(process.env.MONGO_URL, { | |
useUnifiedTopology: true, | |
useNewUrlParser: true, | |
}) | |
.then(() => { | |
console.log(`MongoDB Server connected successfully...`); |
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 React, { useEffect, useState } from "react"; | |
import { | |
FlatList, | |
Image, | |
ScrollView, | |
Text, | |
View, | |
RefreshControl, | |
Pressable, | |
} from "react-native"; |
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
// useCustomHTTP HOOK | |
// To reuse our Custom HTTP Request Logic in across multiple components | |
import { useCallback, useState } from "react"; | |
const useCustomHTTP = () => { | |
const [isLoading, setIsLoading] = useState(false); | |
const [error, setError] = useState(null); |