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
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
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
You need to install ARMv5 gcc cross compiler: apt-get install gcc-arm-linux-gnueabi
You have to define a directory (via --prefix) where all of your binaries will be installed (copied). In the guide I use the following: /home/user/vpn_compile
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
var oldXHR = window.XMLHttpRequest; | |
var xhr_errors = 0; | |
var xhr_loads = 0; | |
var xhr_aborts = 0; | |
var xhrStack = {}; | |
var xhr_count = 0; | |
function newXHR() { |
#!/bin/bash | |
images=$(./stale_image_tags.sh my.repo 3) | |
for image in $images; do | |
docker rmi $image | |
done |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import random | |
import string | |
import re | |
from collections import Counter |
Moved to repository: https://github.com/Mailcloud/swift-serializer
""" | |
Pseudo-random django secret key generator. | |
- Does print SECRET key to terminal which can be seen as unsafe. | |
""" | |
import string | |
import random | |
from __future__ import print_function |
import webapp2 | |
import urllib2 | |
import urllib | |
import json | |
## CHANGE THIS | |
CLIENT_ID = "vYPeq7LGf1utg2dbDlGKCwGKgy94lPH0" | |
CLIENT_SECRET = "DLQ5dWkNMwPlUWo2jqVkbG1PFyeMvV60HEJaW0FioeI4ZxGaAW73BiqRBZmRk29v" | |
DOMAIN = "contoso.auth0.com" | |
CALLBACK_URL = "http://localhost:8080/callback" |