Convert P12 to PEM: openssl pkcs12 -in cert.p12 -out cert.pem -nodes -clcerts
curl -v \
-d '{"aps":{"alert":"<message>","badge":42}}' \
-H "apns-topic: <bundle id>" \
#!/bin/bash | |
# Script for converting a folder of MXF video files to different to a single MP4 file. | |
# Alexander Refsum Jensenius, RITMO, University of Oslo | |
# v0.1 2019-11-03 | |
# Find and move all MXF files to the "root" (where the script is run from) | |
find . -name "*.MXF" -exec mv {} . ";" | |
# Create list of files to be used for concatenation |
For symmetic encryption, you can use the following: | |
To encrypt: | |
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt | |
To decrypt: | |
openssl aes-256-cbc -salt -a -d -in encrypted.txt -out plaintext.txt | |
For Asymmetric encryption you must first generate your private key and extract the public key. |
# vim: syntax=config | |
########### | |
# General # | |
########### | |
priority=high | |
input-ipc-server=/tmp/mpvsocket # listen for IPC on this socket | |
load-stats-overlay=yes # use local stats.lua |
########### | |
# General # | |
########### | |
vo=libmpv | |
cocoa-force-dedicated-gpu=yes | |
#load-stats-overlay=no | |
# OpenGL settings | |
gpu-api=opengl |
I use Homebrew for package management, so the instructions here work with that. You could probably get p7zip and atool another way if you want.
brew install p7zip
brew install atool
atool -X . -e -E *.7z
rm *.7z
find
and atool
: find . -d 1 -type f -exec atool -a -F 7z -E -e {} ';'
rm *.gb; rm *.gbc
I hereby claim:
To claim this, I am signing this object:
### | |
Module dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |
# Rails.root/config.ru | |
require "./config/environment" | |
run ActionController::Dispatcher.new |