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 | |
# do a wc -l > flvs.txt from the root first then doit.sh flvs.txt | |
while read line | |
do | |
name=$line | |
outputfile=${name/\.\/0/\.\/mpgs\/} | |
dir=$(dirname "$outputfile") | |
mkdir -p $dir | |
out=${outputfile/\.flv/\.mp4} |
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
# The Hubot coffee (name it git-post-receive.coffee) and put it in [hubot]/scripts/ and enable in hubot-scripts.json | |
# Description: | |
# Notifies a chat room of a git post receive hook POST notification | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# |
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
<?xml version="1.0" encoding="utf-8"?> | |
<service> | |
<short>OracleDB</short> | |
<description>Service for connection to Oracle database. If you plan to provide a database connection on this host, enable this option.</description> | |
<port protocol="tcp" port="1521"/> | |
</service> |
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
echo "Installing plugin from %1" | |
"c:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy ByPass -file Install-A4T-Plugin.ps1 %1 -CmsHostname "http://[hostname]/" -Username [cme username] -Password [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
<Target Name="A4TPostBuildEvents" AfterTargets="Build"> | |
<Exec Command="Install-A4T-Plugin.bat $(OutDir)$(TargetName).a4t" /> | |
</Target> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
VIDEO=[video] | |
ffmpeg -i $VIDEO -c:v libx264 -profile:v high -level 5 -crf 18 -maxrate 10M -bufsize 16M -pix_fmt yuv420p -vf "scale=iw*sar:ih, scale='if(gt(iw,ih),min(1920,iw),-1)':'if(gt(iw,ih),-1,min(1080,ih))'" -x264opts bframes=3:cabac=1 -movflags faststart -strict experimental -c:a aac -b:a 320k -y $VIDEO.mp4 |
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
using Tridion.ContentManager.ContentManagement; | |
using Tridion.ContentManager.Extensibility; | |
using Tridion.ContentManager.Extensibility.Events; | |
using Tridion.ContentManager.CommunicationManagement; | |
using System; | |
using Tridion.ContentManager; | |
using System.IO; | |
using System.Web; |
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
sudo chown www-data:www-data -R * | |
sudo find . -type f -exec chmod 775 {} \; # Change file permissions | |
sudo find . -type d -exec chmod 775 {} \; # Change file permissions | |
# Switch them back to the correct permissions: | |
sudo find . -type f -exec chmod 755 {} \; # Change file permissions | |
sudo find . -type d -exec chmod 644 {} \; # Change file permissions |
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
// Check for the existence of a header authentication token before dispatching any data | |
add_filter( 'rest_pre_dispatch', function() { | |
$requestPath = $_SERVER['REQUEST_URI']; | |
if($requestPath != '/wp-json/jwt-auth/v1/token') { | |
$tokenValidationResponse = apply_filters('validate_token', null); | |
if(gettype($tokenValidationResponse) == 'object' && get_class($tokenValidationResponse) == "WP_Error") { | |
foreach($tokenValidationResponse->error_data as $key => $error) { | |
$status = $error['status']; | |
$msg = $key; | |
}; |