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
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
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get the length of a string | ${#VARNAME} |
Get a single character | ${VARNAME[index]} |
convert google takeout archive for location history from kml to gpx and split file into one per day
gpsbabel -i kml -f Location\ History.kml -o gpx -F out.gpx
gpsbabel -t -i gpx -f out.gpx -x track,merge,pack,split,title="ACTIVE LOG # %Y%m%d" -o gpx -F split.gpx
python2 gpxsplitter.py split.gpx
import os | |
import glob | |
import argparse | |
import json | |
import datetime | |
import time | |
from bisect import bisect_left, bisect_right | |
from PIL import Image | |
from pexif import JpegFile |
#I've merged code from two different sources, originally published by github users snowdonjames and Scarygami | |
#Import JSON, spit out KML | |
#usage.. location_history_json_converter.py input output [-h] [-f {kml,json,csv,js,gpx,gpxtracks}] [-v] | |
from __future__ import division | |
import sys | |
import json | |
import math |
#!/usr/bin/python | |
import spynner | |
import pyquery | |
import urllib | |
import os | |
# author: Nate Schultz | |
# contact: github.com/beefy | |
# created: 10/22/16 |
pragma solidity ^0.5.0; | |
import "openzeppelin-solidity/contracts/math/SafeMath.sol"; | |
import "../../flashloan/base/FlashLoanReceiverBase.sol"; | |
import "../../configuration/LendingPoolAddressesProvider.sol"; | |
import "../../lendingpool/LendingPool.sol"; | |
contract FlashLoanReceiverExample is FlashLoanReceiverBase { |