Skip to content

Instantly share code, notes, and snippets.

View techact's full-sized avatar

Suresh Rajasekaran techact

View GitHub Profile
@techact
techact / encoding.txt
Created November 25, 2021 04:14 — forked from Andrey2G/encoding.txt
Video Encoding with multiple resolutions
ffmpeg -i "c:/videos/sample.mp4
-map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0
-c:v libx264 -crf 22 -c:a aac -ar 48000
-filter:v:0 scale=w=480:h=360 -maxrate:v:0 600k -b:a:0 64k
-filter:v:1 scale=w=640:h=480 -maxrate:v:1 900k -b:a:1 128k
-filter:v:2 scale=w=1280:h=720 -maxrate:v:2 900k -b:a:2 128k
-var_stream_map "v:0,a:0,name:360p v:1,a:1,name:480p v:2,a:2,name:720p"
-preset slow -hls_list_size 0 -threads 0 -f hls -hls_playlist_type event -hls_time 3
-hls_flags independent_segments -master_pl_name "name-pl.m3u8"
"c:/videos/encoded/name-%v.m3u8"
@techact
techact / gist:d137227a87f9e1e2f24be843ca628402
Created November 26, 2021 05:41
Jenkins - delete offline slave nodes
Closure query = { it.name ==~ /^.*$/ }
Closure action = {
println('====================')
println("Name: ${it.name}")
println("LabelString: ${it.labelString}")
println("NumExectutors: ${it.numExecutors}")
println("RemoteFS: ${it.remoteFS}")
println("Mode: ${it.mode}")
println("RootPath: ${it.rootPath}")
println("Offline: ${it.computer.offline}")
@techact
techact / create-aws-console-user.sh
Created April 22, 2023 14:45 — forked from res0nat0r/create-aws-console-user.sh
Create AWS console user from the awscli
#!/bin/bash
# USAGE: ./create-aws-console-user.sh $GROUPNAME $USERNAME $PASSWORD
# http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_cliwpsapi
# Create administrator group
aws iam create-group --group-name $1