This guide will walk you through setting up Cloudflared on your system.
You need to have administrative (sudo) access to your system.
Here are the steps to install Cloudflared.
| import com.cloudbees.hudson.plugins.folder.Folder | |
| import hudson.FilePath | |
| import jenkins.model.Jenkins | |
| def boolean isFolder(String name) { | |
| def item = Jenkins.instance.getItemByFullName(name) | |
| return item instanceof Folder | |
| } | |
| def deleteUnusedWorkspace(FilePath root, String path, Boolean dryRun) { |
UPDATE: 29-07-2023 - use native method for Amazon Linux 2023 at https://docs.docker.com/engine/install/centos/
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
| #!/usr/bin/env python | |
| import RPi.GPIO as GPIO # RPi.GPIO can be referred as GPIO from now | |
| import time | |
| ledPin = 22 # pin22 | |
| def setup(): | |
| GPIO.setmode(GPIO.BOARD) # GPIO Numbering of Pins | |
| GPIO.setup(ledPin, GPIO.OUT) # Set ledPin as output | |
| GPIO.output(ledPin, GPIO.LOW) # Set ledPin to LOW to turn Off the LED |
| <?php | |
| $urls = array(); | |
| $videos = array(); | |
| // vimeo test | |
| $urls[] = 'http://vimeo.com/6271487'; | |
| $urls[] = 'http://vimeo.com/68546202'; | |
| // youtube test |