Skip to content

Instantly share code, notes, and snippets.

View vladislav805's full-sized avatar

Vladislav Veluga vladislav805

View GitHub Profile
@victor-homyakov
victor-homyakov / links - bun vs node.md
Last active April 17, 2024 15:44
Ссылки для презентации "Bun vs Node" HolyJS 2024
@Kirill255
Kirill255 / vk_methods.md
Last active May 14, 2024 21:02
список скрытых/открытых методов API

Проверять метод на скрытость, можете тут: vk.com/dev/МЕТОД

@sergei-mironov
sergei-mironov / vkontakte_m3u8_downloader.sh
Last active October 21, 2023 20:04
vkontakte_m3u8_downloader.sh
#!/bin/sh
# VKontakte *m3u8 downloader
# Worked at the time of writing
mkdir /tmp/m3u8
set -e -x
cd /tmp/m3u8
rm *
@nieldeokar
nieldeokar / AudioRecordThread.java
Last active May 29, 2024 09:14
Recording an Audio with .aac extension using AudioRecord android.
package com.nieldeokar.whatsappaudiorecorder.recorder;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaCodec;
import android.media.MediaCodecInfo;
import android.media.MediaFormat;
import android.media.MediaRecorder;
import android.os.Build;
import android.util.Log;
@gushmazuko
gushmazuko / doublevpn.md
Last active December 1, 2023 14:03
Double VPN with OpenVPN

Двойной VPN на основе OpenVPN

Сначало настроим второй сервер:

Шаг 1. Установка OpenVPN

sudo apt update
sudo apt install openvpn easy-rsa
pacman -Syy
pacman -S reflector
reflector -c "Ukraine" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
Смотрим диски:
fdisk -l
Разметка:
cfdisk /dev/sd*
Delete current - create new - primary - Bootable - Write - Quit
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 5, 2024 19:12
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

Get/set ID3 meta tags using ffmpeg

A quick guide on how to read/write/modify ID3 metadata tags for audio / media files using ffmpeg.

FFmpeg has a free-form command line option that allows the user to specify key-value-pairs for encoding metadata. Let's take a look.

1. Read ID3 metadata

To list all global metadata tags for a media file, just set an input but no output file.

@suyash
suyash / client.c
Created January 2, 2017 15:53
UDP echo client-server implementation
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
int main() {
const char* server_name = "localhost";
const int server_port = 8877;
@albert-zhang
albert-zhang / ffmpeg.md
Last active June 20, 2019 11:15
ffmpeg

Convert to specific resolution:

ffmpeg -i input.mov -vcodec h264 -acodec aac -s 1280x720 output.mp4

ffmpeg -i {input}.mov -vcodec h264 -acodec aac -strict -2 output.mp4

Stream camera to rtmp on Mac:

ffmpeg -f avfoundation -framerate 30 -i "0" -c:v libx264 -an -f flv rtmp://localhost:1935/live/mystream

Stream file to rtmp:

ffmpeg -re -i ~/Desktop/input.mp4 -c copy -f flv rtmp://localhost:1935/live/mystream