Skip to content

Instantly share code, notes, and snippets.

View AARomanov1985's full-sized avatar
🏠
Working from home

Aleksandr Romanov AARomanov1985

🏠
Working from home
View GitHub Profile
@AARomanov1985
AARomanov1985 / vhs.sh
Last active July 9, 2025 09:29
Create VHS Effect with Ffmpeg
# This command performs video and audio processing using FFmpeg.
# Video Processing:
# - Scale the video to a width of 480 pixels, maintaining the aspect ratio.
# - Adjust the color saturation to 0.8 times the original value.
# - Add noise to the video with an intensity of 20, using a temporal and spatial noise pattern.
# Audio Processing:
# - Add a delay to the noise audio to synchronize it with the original audio.
# - Adjust the volume of the noise audio to 0.1 times the original volume.
mkdir '#1_T_OPEN_CATEGORY_TASKNAME'
cd '#1_T_OPEN_CATEGORY_TASKNAME'
echo Target: > notes.txt
mkdir '#1_P_OPEN_CATEGORY_PROJECTNAME'
cd '#1_P_OPEN_CATEGORY_PROJECTNAME'
echo Target: > notes.txt
@AARomanov1985
AARomanov1985 / Xgamma settings
Last active May 6, 2017 19:03
Цветовой баланс для разного времени суток
# День:
xgamma -rgamma 1.0 -bgamma 1.0 -ggamma 1.0
# Вечер:
xgamma -ggamma 0.85 -bgamma 0.75
# Ночь:
xgamma -ggamma 0.75 -bgamma 0.6
ffmpeg -i video.avi -b:v 800k -s 256x144 -vcodec mpeg2video -ab 48k -ar 8000 -acodec ac3 final_video.mp4
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/syntastic'
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg x264
# Игнор-лист файлов проекта
# Игнорировать ВСЕ файлы и директории, включая поддиректории и файлы в них
*
# ---- ФАЙЛЫ ----
# Игнорирование по типу файла, будут игнорироваться в АБСОЛЮТНО всех директориях
# Например /files/data.zip, /server.log, /uploads/users/data/info.xls
*.zip
*.log
*.pdf
*.xls
@AARomanov1985
AARomanov1985 / CheckingMail.java
Created February 4, 2016 19:46
Работа с почтой
import java.util.Properties;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.NoSuchProviderException;
import javax.mail.Session;
import javax.mail.Store;
public class CheckingMail {
@AARomanov1985
AARomanov1985 / Queres.java
Created January 29, 2016 12:27
Универсальный метод обработки SQL-запросов
public List<Record> getResult(String query) {
List<Record> out = new ArrayList<>();
try (Statement statement = connection.createStatement()) {
logConnect(query);
ResultSet result = statement.executeQuery(query);
while (result.next()) {
Record record = new Record();
try {
for (int i = 1;; i++) {
record.addValue(result.getString(i));