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
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
/** | |
* Detect if the browser is running in Private Browsing mode | |
* | |
* @export | |
* @returns {Promise} | |
*/ | |
export default function isPrivateMode() { | |
return new Promise((resolve) => { | |
const on = () => resolve(true); // is in private mode | |
const off = () => resolve(false); // not private mode |
#用户名 | |
#rpc-user=user | |
#密码 | |
#rpc-passwd=passwd | |
#上面的认证方式不建议使用,建议使用下面的token方式 | |
#设置加密的密钥 | |
#rpc-secret=token | |
#允许rpc | |
enable-rpc=true | |
#允许所有来源, web界面跨域权限需要 |
image: golang:1.8-alpine # The alpine builds are much smaller but lack tools we need, we'll add them later | |
stages: | |
- build | |
- test | |
before_script: | |
- apk --update --upgrade add git curl-dev openssh curl ca-certificates # This is how we add system dependencies. | |
# You may need less or more packages for your app. | |
- curl -sS https://glide.sh/get | sh | |
- mkdir -p /go/src/gitlab.com/ |
#!/usr/bin/env python2 | |
# -*- coding:utf-8 -*- | |
from __future__ import print_function, division, unicode_literals | |
from udevedu.utils import invoke | |
def init(): | |
print("Monitor Yubikey NEO") | |
settings = { | |
'test': { | |
'path': '/home/shirou/ansible/test/', | |
'inventory': 'inventory' | |
} | |
} | |
module.exports = (robot) -> |
# | |
# Ugly little script I used when I needed to generate an LDAP DB with 100k sample users | |
# | |
require 'rubygems' | |
require 'faker' | |
require 'active_ldap' | |
ActiveLdap::Base.establish_connection( | |
:host => '10.0.0.8', |
To install packages, every time pressing ' ctrl+shift+p
→ Package Control: Install Package
is very cumbersome task... right?
After fresh installation of ST2, open it and ctrl+`
and hit enter after pasting below line [(1)][1]:
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
Restart ST2.
Open terminal, and navigate to Sublime's dir under your home folder by below command and create file w/ name Package Control.sublime-settings
there in:
#!/bin/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |