https://multipass.run/
multipass launch --mem 10G --cpus 6 --disk 20G --name knative
multipass shell knative
#!/bin/bash | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 8.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :20141129 | |
#usage :/bin/bash wildfly-install.sh | |
WILDFLY_VERSION=8.2.0.Final | |
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION |
var data = { | |
'padded-left': ' left', | |
'padded-righ': 'right '}; | |
for(var d in data) data[d] = $.trim(data[d]); | |
console.log(data); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var data = { |
Change DNS server: | |
/etc/sysconfig/network-scripts/ifcfg-eth0 |
<?php | |
require "lessc.inc.php"; | |
$css_file = 'test.css'; | |
if(!file_exists($css_file)) { | |
$less_file = preg_replace('"\.css$"', '.less', $css_file); | |
$less = new lessc; | |
$less->checkedCompile($less_file, $css_file); | |
} |
$ sudo add-apt-repository ppa:videolan/master-daily | |
$ sudo apt-get update | |
$ sudo apt-get install vlc |
cvlc v4l2:// :v4l2-width=640 :v4l2-height=480 --sout "#transcode{vcodec=mpeg4,acodec=mpga,vb=800,ab=128}:standard{access=file,dst=capture_5.avi}" --input-slave=alsa://hw:0,0 |
$ sudo add-apt-repository ppa:nilarimogard/webupd8 | |
$ sudo apt-get update | |
$ sudo apt-get install youtube-dl | |
# We can directly update with | |
$ sudo youtube-dl -U | |
# Simply download | |
$ youtube-dl http://www.youtube.com/some_url |
You want to simply convert any kind of video for android device: | |
ffmpeg -i <input> -s 480x320 -vcodec mpeg4 -acodec aac -strict -2 -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 <output> ffmpeg -i <input> -s 480x320 -vcodec mpeg4 -acodec aac -strict -2 -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 <output> |