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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strconv" | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" | |
"github.com/labstack/echo" |
# USAGE | |
# Start the server: | |
# python app.py | |
# Submit a request via cURL: | |
# curl -X POST -F image=@dog.jpg 'http://localhost:5000/predict' | |
# import the necessary packages | |
from keras.applications import ResNet50 | |
from keras.preprocessing.image import img_to_array | |
from keras.applications import imagenet_utils |
export default scope => { | |
// match the filter on autofilled elements in Firefox | |
const mozFilterMatch = /^grayscale\(.+\) brightness\((1)?.*\) contrast\(.+\) invert\(.+\) sepia\(.+\) saturate\(.+\)$/ | |
scope.addEventListener('animationstart', onAnimationStart) | |
scope.addEventListener('input', onInput) | |
scope.addEventListener('transitionstart', onTransitionStart) | |
function onAnimationStart(event) { | |
// detect autofills in Chrome and Safari by: |
# __ __ | |
# __ ______ ____ ___ ____ _/ /____ ____ ____/ / | |
# / / / / __ \/ __ `__ \/ __ `/ __/ _ \/ __ \/ __ / | |
# / /_/ / /_/ / / / / / / /_/ / /_/ __/ /_/ / /_/ / | |
# \__, /\____/_/ /_/ /_/\__,_/\__/\___/\____/\__,_/ | |
# /____ matthewdavis.io, holla! | |
# | |
FROM node:9.2-alpine | |
ENV GOPATH /go |
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
#!/usr/bin/env python2 | |
# lrdcq | |
# usage python2 unwxapkg.py filename | |
import sys, os | |
import struct | |
class WxapkgFile(object): | |
nameLen = 0 |
var CryptoJS = require('crypto-js') | |
var request = require('request-promise') | |
/* | |
* npm install crypto-js request-promise request | |
* node wx_t1t_hack.js | |
*/ | |
// export function testEncription(msg, fullKey) { | |
// var fullKey = fullKey.slice(0, 16) |
See this issue.
Docker best practise to Control and configure Docker with systemd.
Create daemon.json
file in /etc/docker
:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
#!/usr/bin/env python | |
#coding:utf-8 | |
#sudo yum install poppler-utils | |
import os | |
import re | |
import subprocess | |
from decimal import * |