Instantly share code, notes, and snippets.

Anthony Lai wechain

View GitHub Profile
# This script automatically converts a directory of video files to H.265 HEVC with the nightly iteration of HandBrake.
# The nightly is required because the current stable release (as of writing this) does not support the "hvc1" codec
# that tvOS requires on top of only really liking mp4/m4a.
if [ -z "$1" ]; then
# Python 2.7
import os
import sys
import time
import platform
import subprocess
import urllib2
import logging
# Change this to specify a different handbrake preset. You can list them by running: "HandBrakeCLI --preset-list"
#set -ux
set +e
PRESET="Vimeo YouTube 720p30" # or Fast 720p30 or Fast 1080p30
if [ -z "$1" ] ; then
View Web-Vimeo-YouTube-HQ-720p60.json
"PresetList": [
"AlignAVStart": false,
"AudioCopyMask": [

Step 1

Download HandBrake CLI for your OS here.

Step 2

cd into the folder where you have the HandBrakeCLI file and run this inside it:

./HandBrakeCLI -i /path/to/ -o /path/to/output.mp4 -e x264 -q 28 -r 15 -B 64 -X 1280 -O
View steemit-post-template.html
<div class="text-rtl">
<h5>לתמונת הפרופיל ולתמונת הנושא שלכם יש חשיבות גדולה לשגשוג שלכם בסטימאיט מכיוון שהם ממתגים את הפרופיל שלכם וגורמים לו להיות זכיר בין מגוון הפוסטים בקהילה. <br>
בפוסט זה אסביר כיצד ליצור תמונת פרופיל ונושא נכונים, כיצד להעלות אותם לאינטרנט ואיך לגרום לתמונה להופיע בפרופיל האישי.<br>
קריאה מהנה!😉 <br> <br>
# htmltomd
# Downloads the HTML source from a list of URLs and converts it to Markdown.
# The source file must contain each URL to download from on a separate line.
# The actual conversion is done by the awesome API available at
outputDir=${2:-.} # Defaults to local dir
View Bullseye.bookmarklet
javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading&hellip;</strong>";"loadingp";"20px";"#fff";"20px";;"fixed";"9999999";".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src=""+(Math.random());})();

Host Your Site Under Your Domain on IPFS

This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 2GB RAM).

Install IPFS

Log in as root.

First, make sure the system is up to date, and install tar and wget:


Keybase proof

I hereby claim:

  • I am wechain on github.
  • I am wechain ( on keybase.
  • I have a public key ASD6DRr75VBZgUIxOC8Yfq_zMmXgMYG-jT3UiUo5r1MdeQo

To claim this, I am signing this object: