The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
This file contains 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
#!/bin/bash | |
rev="12" | |
_log(){ | |
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log | |
} | |
_log_para(){ | |
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log |
FFmpeg and libav's playbook: Advanced encoding options with hardware-based acceleration, NVIDIA's NVENC and Intel's VAAPI-based encoder.
Hello guys,
Continuing from this guide to building ffmpeg and libav with NVENC and VAAPI enabled, this snippet will cover advanced options that you can use with ffmpeg and libav on both NVENC and VAAPI hardware-based encoders.
For ffmpeg:
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
This gist contains all the OpenWRT configuraion files needed to connect to Private Internet Access (PIA) VPN servers. The following files are included:
network
: contains configuration to add a virtual network device (i.e.tun1366
) and custom DNS serversopenvpn
: OpenVPN configuration file to connect to PIA VPN serversfirewall
: firewall configuration which passes all traffic through VPN and rejects any request when OpenVPN is down
NOTE: there are a number of other files required to be available under /etc/openvpn
for this approach to work:
pia.auth
: VPN credentials in two lines, first the username and the second the password
This file contains 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
#!/bin/ash | |
source /etc/openwrt_release | |
echo "$DISTRIB_ID $DISTRIB_RELEASE" | |
rm -f /tmp/releases.html | |
wget -q https://downloads.openwrt.org/releases/ -O /tmp/releases.html | |
LATEST_RELEASE=`grep -o 'href="[0-9.]*/"' /tmp/releases.html | tail -1 | cut -d'"' -f2 | cut -d'/' -f1` | |
rm -f /tmp/releases.html |
This file contains 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
# Simple static header for update-motd framework | |
COLOR_GREEN="\033[0;32m" | |
# print personal static banner in green | |
printf "${COLOR_GREEN} | |
_____ .__ .__ .__ | |
_/ ____\|__| ______| |__ |__| | |
\ __\ | | / ___/| | \ | | | |
| | | | \___ \ | Y \| | |
This file contains 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
name: Create sudoers.d directory | |
file: | |
path: /etc/sudoers.d | |
owner: root | |
group: root | |
mode: 0755 | |
state: directory | |
- name: Set includedir in sudoers | |
lineinfile: |
This file contains 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
This playbook has been removed as it is now very outdated. |