A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
class _resolver { | |
@SourceURI | |
private static URI scriptUri | |
static String dir() { | |
return scriptUri.path.replaceAll('/vars/.*\\.groovy$') | |
} | |
} | |
#!/bin/bash | |
cd "$(dirname $0)" | |
if [[ $# != 1 ]]; then | |
echo "usage: $(basename $0) PACKAGE_PATH" | |
exit 1 | |
fi | |
src=$1 | |
target_dir=$(sed -E 's#^.*sublime_([^/]+)/.*/(.*)\.sublime-package$#\1/\2#' <<< "$src") |
sudo dnf install livecd-tools | |
sudo livecd-iso-to-disk --efi --format Fedora-Workstation-Live-x86_64-32-1.6.iso /dev/sdb |
Resources: | |
Bucket: | |
Type: AWS::S3::Bucket | |
Properties: | |
BucketName: test-bucketname | |
BucketPolicy: | |
Type: AWS::S3::BucketPolicy | |
Properties: | |
Bucket: !Ref Bucket |
// Setup the LDAP client (normally done via Spring context file). | |
LdapContextSource contextSource = new LdapContextSource(); | |
contextSource.setUrl("ldap://adserver.mycompany.com:3268"); | |
contextSource.setBase("DC=AD,DC=MYCOMPANY,DC=COM"); | |
contextSource.setUserDn("readonlyuser@ad.mycompany.com"); | |
contextSource.setPassword("password1"); | |
contextSource.afterPropertiesSet(); | |
LdapTemplate ldapTemplate = new LdapTemplate(contextSource); | |
ldapTemplate.afterPropertiesSet(); |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
#!/usr/bin/env python3 | |
import argparse | |
import datetime | |
import getpass | |
import logging | |
import os | |
import re | |
import subprocess | |
import sys |
package whee; | |
import java.io.Closeable; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
import java.nio.ShortBuffer; | |
import java.nio.channels.FileChannel; | |
import java.nio.file.Files; | |
import java.nio.file.Path; |
semanage fcontext -a -t httpd_sys_content_t '/path/to/things(/.*)?'
restorecon -R /path/to/things