Skip to content

Instantly share code, notes, and snippets.

View mitallast's full-sized avatar

Alexey Korchevsky mitallast

View GitHub Profile
Mac-Pro:flac mitallast$ ls
metallica.flac
Mac-Pro:flac mitallast$ ffmpeg -i metallica.flac metallica.wav
ffmpeg version 2.8 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
<h2>Загрузка картинки</h2>
<form method="post" action="/admin/images/upload.json" enctype="multipart/form-data" id="image-upload-form"
data-success="/admin/images/">
<div class="row">
<div class="form-group col-md-6">
<label for="image" class="control-label">картинка</label>
<input type="file" class="form-control" id="image" name="image" required/>
</div>
</div>
<button type="submit" class="btn btn-default">Сохранить</button>
@mitallast
mitallast / TestIterate.java
Created April 24, 2015 09:25
test iterate large directory
package granat.dp.components.image;
import java.nio.file.DirectoryStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Iterator;
public class TestIterate {
public static void main(String[] arg) throws Exception {
@mitallast
mitallast / apache-ant.rb
Created January 7, 2015 17:18
apache ant homebrew formula
class ApacheAnt < Formula
homepage "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.tar.gz"
url "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.tar.gz"
sha1 "6344bb150f22dc335462bafa87de45085d51a5be"
def install
rm Dir["bin/*.{bat,cmd,dll,exe}"]
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/*"]
if build.with? "ivy"