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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: myservice | |
namespace: traefikee | |
labels: | |
app: myservice | |
annotations: | |
traefik.ingress.kubernetes.io/max-conn-amount: "10" | |
traefik.ingress.kubernetes.io/max-conn-extractor-func: client.ip |
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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: myservice | |
namespace: traefikee | |
labels: | |
app: myservice | |
annotations: | |
traefik.ingress.kubernetes.io/rate-limit: | | |
extractorfunc: client.ip |
I hereby claim:
- I am ullaakut on github.
- I am ullaakut (https://keybase.io/ullaakut) on keybase.
- I have a public key ASD76pw250ZsBqI_4FMAgpUmaz5ngr5CdSfJJCtWfyn7awo
To claim this, I am signing this object:
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
# Replace those with your repository IDs | |
set BloggoID to "20418060" | |
set CameradarID to "10999701" | |
set RTSPattID to "10999702" | |
set GonveyID to "21157116" | |
# Gets status from Travis API | |
on getStatus(repositoryID) | |
set status to do shell script "curl -v -H \"Travis-API-Version: 3\" \"https://api.travis-ci.org/repo/" & repositoryID & "/builds?limit=1\" | grep -Eo '\"state\":.*?[^\\]\",' | awk -F':' '{print $2}' | sed 's/[\", ]//g'" | |
return status |
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
docker run --rm -p 8554:8554 ullaakut/rtspatt |
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
cvlc /home/ullaakut/Downloads/dummy.jpg -I dummy \ | |
--sout-keep --no-drop-late-frames --no-skip-frames \ | |
--image-duration 9999 \ | |
--sout="#transcode{vcodec=h264,fps=15,venc=x264{preset=ultrafast,tune=zerolatency,keyint=30,bframes=0,ref=1,level=30,profile=baseline,hrd=cbr,crf=20,ratetol=1.0,vbv-maxrate=1200,vbv-bufsize=1200,lookahead=0}}:rtp{sdp=rtsp://:8554/live.sdp}" \ | |
--sout-all |
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
{ | |
"usernames": [ | |
"", | |
"admin", | |
"Admin", | |
"Administrator", | |
"root", | |
"supervisor", | |
"ubnt", | |
"service", |
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
"" | |
"1.AMP" | |
"1/stream1" | |
"CAM_ID.password.mp2" | |
"GetData.cgi" | |
"MediaInput/h264" | |
"MediaInput/mpeg4" | |
"VideoInput/1/h264/1" | |
"access_code" | |
"access_name_for_stream_1_to_5" |
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
package utils | |
// FlattenIntegers flattens nested slices of integers | |
func FlattenIntegers(slice []interface{}) []int { | |
var flat []int | |
for _, element := range slice { | |
switch element.(type) { | |
case []interface{}: | |
flat = append(flat, FlattenIntegers(element.([]interface{}))...) |
NewerOlder