Skip to content

Instantly share code, notes, and snippets.

Avatar
🛰️
Remote working from 🇵🇱

Brendan Le Glaunec Ullaakut

🛰️
Remote working from 🇵🇱
View GitHub Profile
View test.md

Blocks

f56720620cb12515e09ee29385435f46be1c20437156bca5856753db247b8703
@Ullaakut
Ullaakut / service.yaml
Created Oct 4, 2019
Connection limiting in TraefikEE
View service.yaml
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
@Ullaakut
Ullaakut / service.yaml
Created Jul 1, 2019
Rate limited service
View service.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: myservice
namespace: traefikee
labels:
app: myservice
annotations:
traefik.ingress.kubernetes.io/rate-limit: |
extractorfunc: client.ip
View keybase.md

Keybase proof

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:

@Ullaakut
Ullaakut / controller.scpt
Last active Oct 17, 2018
The applescript code for the travisCI widgets
View controller.scpt
# 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
View Run RTSP Media Server with VLC
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
@Ullaakut
Ullaakut / credentials.json
Created Mar 15, 2018
Default RTSP credentials for IP cameras
View credentials.json
{
"usernames": [
"",
"admin",
"Admin",
"Administrator",
"root",
"supervisor",
"ubnt",
"service",
@Ullaakut
Ullaakut / RTSP
Last active Mar 15, 2018
Default RTSP routes for IP cameras
View RTSP
""
"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"
@Ullaakut
Ullaakut / flatten.go
Last active Mar 15, 2018
Flatten integers
View flatten.go
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{}))...)