For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains hidden or 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
//source: https://lists.ffmpeg.org/pipermail/ffmpeg-user/2011-July/001746.html | |
//source: http://ffmpeg.org/ffmpeg-filters.html#pad | |
//works | |
ffmpeg -i PAN_17-1_Final.m4v -filter:v 'pad=max(iw\,ih*(16/9)):ow/(16/9):(ow-iw)/2:(oh-ih)/2' -aspect 16:9 PAN_17-1_Final_auto1.m4v | |
//works but calculates manually (pad=<width output>:<height output>:<x upper-left-corner>:<y upper-left-corner> | |
ffmpeg -i PAN_17-1_Final.m4v -filter:v 'pad=939:528:22:0' PAN_17-1_Final_PADTEST2.m4v |
This file contains hidden or 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
#!/usr/bin/python | |
import libvirt | |
import sys | |
# virDomainEventType is emitted during domain lifecycles (see libvirt.h) | |
VIR_DOMAIN_EVENT_MAPPING = { | |
0: "VIR_DOMAIN_EVENT_DEFINED", | |
1: "VIR_DOMAIN_EVENT_UNDEFINED", | |
2: "VIR_DOMAIN_EVENT_STARTED", |
This file contains hidden or 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
#/usr/bin/env python3 | |
# | |
# Seamless loop test | |
# Copyright (c) 2015 Arnaud Loonstra <[email protected]> | |
# | |
# This is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains hidden or 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
#!/usr/bin/env python | |
import argparse | |
import libvirt | |
import logging | |
import time | |
import sys | |
import os | |
from pprint import pformat | |
from heapq import nlargest |
This file contains hidden or 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
If you get the below error when you try to create branch, you can use the below command to resolve it. | |
Error: | |
error: src refspec 9.0.1 matches more than one. | |
Solution: | |
git push origin refs/heads/branchName:refs/heads/branchName |
Unpacking XIP files on Linux:
- Install xar from https://mackyle.github.io/xar/
- Install pbzx from https://github.com/NiklasRosenstein/pbzx
(use
gcc -llzma -lxar -I /usr/local/include pbzx.c -o pbzx
and copy the binary into your PATH) - use
xar -xf XIP_FILE -C /path/to/extract/to
- Change to the directory where you extracted the file.
- Use
pbzx -n Content | cpio -i
to extract the contents.
This file contains hidden or 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
/* | |
========================================================================= | |
Hack: Allow multiple Origins | |
z.B. für Ajax-Anmeldung von Subdomain | |
platziere dies zu oberst in /lists/config/config.php | |
This will work if you have an existing bridge or if you don't: if the bridge referenced in this config doesn't exist, it will be created when you start a container attached to the network.
- Create the CNI network configuration in
/etc/cni/net.d/99-example.conflist
:
{
"cniVersion": "0.4.0",
"name": "example",
"plugins": [
{
This file contains hidden or 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
Add-Type @" | |
using System.Net; | |
using System.Security.Cryptography.X509Certificates; | |
public class TrustAllCertsPolicy : ICertificatePolicy { | |
public bool CheckValidationResult( | |
ServicePoint srvPoint, X509Certificate certificate, | |
WebRequest request, int certificateProblem) { | |
return true; | |
} | |
} |
OlderNewer