Skip to content

Instantly share code, notes, and snippets.

View mariohercules's full-sized avatar

Mario Hercules mariohercules

  • Fortaleza/Brazil
View GitHub Profile
@mariohercules
mariohercules / ffmpeg
Last active July 7, 2021 13:37
ffmpeg via terminal
$ echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
$ ffmpeg -i "http://host/folder/file.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4
trying to understand what the options mean
ffmpeg -i "http://host/folder/file.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4
-bsf:a aac_adtstoasc
bsf = (bit stream filter)
@mariohercules
mariohercules / Import-CSV-Readme.md
Created October 2, 2020 12:12
Import CSV into ACF Repeater (Wordpress)
$ docker run --privileged -it -v /var/run/docker.sock:/var/run/docker.sock jongallant/ubuntu-docker-client
$ docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
$ chroot /host
$ vi /etc/kubernetes/manifests/kube-controller-manager.yaml
$ docker run --privileged -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker alpine sh
$ docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
$ chroot /host
$ vi /etc/kubernetes/manifests/kube-controller-manager.yaml
1. Update Ubuntu dependencies
$ sudo apt-get update
$ sudo apt-get install -y apt-transport-https
2. Install VirtualBox on Ubuntu
$ sudo apt-get install -y virtualbox virtualbox-ext-pack
3. Install kubectl
@mariohercules
mariohercules / serverless-opensources-platforms.txt
Created June 6, 2019 18:22
List of Serverless Opensources Platforms
https://openwhisk.apache.org
https://fission.io
https://iron.io
https://fnproject.io
https://kubeless.io
https://docs.openfaas.com
@mariohercules
mariohercules / Curl-Download-Files.md
Last active May 30, 2019 13:18
Download Files in Directory with Curl

USAGE

$ ./download_files.sh http://url_to_files/downloads/

CREATE SCRIPT

$ touch download_files.sh
@mariohercules
mariohercules / Prompt-Terminal.md
Last active May 27, 2019 13:47
Customize Terminal Prompt

1 - Navigate to your home directory

$ cd ~

2 - Create a file called .bash_profile

$ vi .bash_profile
@mariohercules
mariohercules / kubernetes-commands.md
Last active September 19, 2019 17:57
Kubernetes Commands

kubernetes

update environment

$ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl 
  • for specific version