This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# there are FFmpeg_fixing/build and FFmpeg_fixing/src folders | |
# $ cd FFmpeg_fixing/build/ | |
# $ ../src/configure >> conflog.txt | |
# copy part of conflog.txt to demuxers.txt | |
# since (exclude) "Enabled demuxers:" | |
cd /home/a/Downloads/myGitHub/FFmpeg_fixing/ffmpeg_config/ | |
rm -f new.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define elmsof(arr) sizeof(arr)/sizeof(arr[0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# never use this if you have 32 GB hard drive | |
# never use this if you mount 2 or more 32GB usb flash card in one time | |
varvar=`blockdev --getsize64 /dev/sda` | |
# 32GB == 30765219840 | |
if [ $varvar -eq 30765219840 ]; then | |
dd if=disk.img of=/dev/sda bs=4M conv=fsync status=progress | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Устанавливаем https://github.com/nijel/enca | |
sudo apt-get install enca | |
# Заходим в папку с исходниками | |
cd ПутьКПапкеСИсходниками | |
# Запустим скрипт перевода всего, что в русских кодировках (russian: KOI8-R CP1251 ISO-8859-5 IBM866 maccyr) в UTF-8. | |
find ./ -name "*.c" -o -name "*.h" -type f | while read file; do enca -L ru -x UTF-8 "$file"; done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# this is part for armbian | |
# путь к этому файлу XunlongA/userpatches/customize-image.sh | |
# arguments: $RELEASE $LINUXFAMILY $BOARD $BUILD_DESKTOP | |
# This is the image customization script | |
# NOTE: It is copied to /tmp directory inside the image | |
# and executed there inside chroot environment | |
# so don't reference any files that are not already installed |
NewerOlder