Based of the Youtube plugin from http://www.portwaypoint.co.uk/jekyll-youtube-liquid-template-tag-gist/
module Jekyll
class Vimeo < Liquid::Tag
@@width = 500
@@height = 281
def initialize(name, id, tokens)
super
@id = id
### Compress MP4 | |
`ffmpeg -i $INPUT_FILE -c:v libx265 -preset fast -crf 28 -tag:v hvc1 -c:a eac3 -b:a 224k $OUTPUT_FILE` |
#! /usr/bin/env python | |
# Standard library imports. | |
from SocketServer import ThreadingMixIn | |
import BaseHTTPServer | |
import SimpleHTTPServer | |
import sys | |
import json | |
import os | |
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext, |
#!/bin/bash | |
CONFIG_FOLDER=/usr/local/etc/clamav | |
CLAMD_CONFIG_FILE=$CONFIG_FOLDER/clamd.conf | |
FRESHCLAM_CONFIG_FILE=$CONFIG_FOLDER/freshclam.conf | |
DB_FOLDER=/usr/local/var/lib/clamav | |
RUN_FOLDER=/usr/local/var/run/clamav | |
LOG_FOLDER=/usr/local/var/log | |
CLAMD_LOG_FILE=$LOG_FOLDER/clamd.log | |
CLAMD_ERROR_LOG_FILE=$LOG_FOLDER/clamd.error.log |
<!-- Hotel Selector BEGIN--> | |
<div id="bokun-w51685_5612b9ac_47a7_4201_a62c_3f755c26e455">Loading...</div><script type="text/javascript"> | |
var w51685_5612b9ac_47a7_4201_a62c_3f755c26e455; | |
(function(d, t) { | |
var host = 'widgets.bokun.io'; | |
var frameUrl = 'https://' + host + '/widgets/51685?bookingChannelUUID=f728c240-58b6-401d-a724-79b976c23c49&accommodationId=1383&trackingCode=500494d1773e4668a61ee359a6997c30&lang=en&ccy=USD&hash=w51685_5612b9ac_47a7_4201_a62c_3f755c26e455'; | |
var s = d.createElement(t), options = {'host': host, 'frameUrl': frameUrl, 'widgetHash':'w51685_5612b9ac_47a7_4201_a62c_3f755c26e455', 'autoResize':true,'height':'','width':'100%', 'minHeight': 0,'async':true, 'ssl':true, 'affiliateTrackingCode': '500494d1773e4668a61ee359a6997c30', 'transientSession': true, 'cookieLifetime': 43200 }; | |
s.src = 'https://' + host + '/assets/javascripts/widgets/embedder.js'; | |
s.onload = s.onreadystatechange = function() { | |
var rs = this.readyState; if (rs) if (rs != 'complete') if ( |
# Usage: python3 shopify2woocommerce.py https://ABC.myshopify.com | |
# or for interactive mode, just: python3 shopify2woocommerce.py | |
import json | |
import os.path | |
import requests | |
from collections import OrderedDict | |
import pandas as pd | |
from sys import argv, exit |
module Jekyll
class Vimeo < Liquid::Tag
@@width = 500
@@height = 281
def initialize(name, id, tokens)
super
@id = id
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
/** | |
* Disable right-click of mouse, F12 key, and save key combinations on page without jeopardy the design of your website. | |
* By Peranakan Francis (francis.tch@gmail.com) | |
* https://mybetterweb.site | |
*/ | |
window.onload = function() { | |
document.addEventListener("contextmenu", function(e){ | |
e.preventDefault(); | |
}, false); | |
document.addEventListener("keydown", function(e) { |
quickref.txt For Vim version 8.0. Last change: 2018 Feb 11
VIM REFERENCE MANUAL by Bram Moolenaar
Quick reference guide
*quickref* *Contents*
tag subject tag subject ~ |Q_ct| list of help files |Q_re| Repeating commands
I hereby claim:
To claim this, I am signing this object: