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
#!/bin/bash | |
ip=$(curl -s https://api.ipify.org/) | |
echo "DDNS-UPDATE: Public IP is: $ip, Updating IP..." | |
host=home.klampok.id | |
curl -X PUT "https://api.cloudflare.com/client/v4/zones/00000000000000000000/dns_records/00000000000000000000000" \ | |
-H "X-Auth-Email: *******@gmail.com" \ | |
-H "X-Auth-Key: *******" \ | |
-H "Content-Type: application/json" \ | |
--data '{"type":"A","name":"home.klampok.id","content":"'"$ip"'","ttl":120,"proxied":false}' ) |
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 [email protected] '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 |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: nginx-conf | |
data: | |
nginx.conf: | | |
user nginx; | |
worker_processes 3; | |
error_log /var/log/nginx/error.log; | |
events { |
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"]}