Skip to content

Instantly share code, notes, and snippets.

View dimon4ezzz's full-sized avatar

Dmitrii dimon4ezzz

View GitHub Profile
@dimon4ezzz
dimon4ezzz / git-utc-commit.sh
Created May 31, 2020 12:16
does git utc commit on unix-based systems
#!/bin/bash
git config --global alias.utccommit '!GIT_AUTHOR_DATE="$(date --utc +%Y-%m-%dT%H:%M:%S%z)" GIT_COMMITTER_DATE="$(date --utc +%Y-%m-%dT%H:%M:%S%z)" git commit'
@dimon4ezzz
dimon4ezzz / fake-date.ps1
Last active May 31, 2020 12:18
does fake date for all files in this directory (NTFS)
$date = "2020-01-01T00:00:00Z";
Get-ChildItem * | foreach { $_.CreationTimeUtc = Get-Date $date; $_.LastWriteTimeUtc = Get-Date $date; $_.LastAccessTimeUtc = Get-Date $date }
@dimon4ezzz
dimon4ezzz / mp4-to-mp3-extractor.sh
Created May 26, 2020 11:44
the script extracts mp4 files to compressed mp3 audio
#!/bin/bash
# all mp4 files in this directory
for file in ./*.mp4; do
# create new mp3 name
audio="${file%.mp4}.mp3"
# if .mp4 is file and .mp3 does not exists
if [ -f $file ] && [ ! -e $audio ]; then
# ffmpeg will convert mp4 to mp3 with the strongest compressing (-q:a 9)
# will show only panic logs
ffmpeg -hide_banner -loglevel panic -i $file -vn -codec:a libmp3lame -q:a 9 $audio
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 9 columns, instead of 7. in line 4.
Name,Treble,Author,Date,Website,Download link,XDA link,Telegram link,4PDA post link
AICP,No,hemantbeast,2020-04-04,https://aicp-rom.com,https://dwnld.aicp-rom.com/device/santoni/WEEKLY/aicp_santoni_p-14.0-WEEKLY-20200404.zip,https://forum.xda-developers.com/xiaomi-redmi-4x/development/-t3752147,,https://4pda.ru/forum/index.php?act=findpost&pid=88671997
AOSiP Pizza,No,emrecan001,2019-09-26,,https://drive.google.com/u/0/uc?export=download&id=1NtN4V6tEjAeETx68Dbn-9lOVhI47hMqx,,,https://4pda.ru/forum/index.php?act=findpost&pid=89281070
Arrow OS,Yes,Sonal Singh,2019-10-16,https://arrowos.net,https://download.sourceforge.net/arrow-os/Arrow-v9.0-santoni-OFFICIAL-20191016.zip,https://forum.xda-developers.com/xiaomi-redmi-4x/development/-t3822643,https://t.me/Arrow_OS,https://4pda.ru/forum/index.php?act=findpost&pid=77317907
AOSiP DerpFest,No,bikram_m,2020-03-14,https://sourceforge.net/projects/derpfest,https://download.sourceforge.net/derpfest/AOSiP-9.0-DerpFest-Official-santoni-20200314.zip,https://forum.xda-develop
@dimon4ezzz
dimon4ezzz / xp-mode-installer.ps1
Last active December 16, 2022 02:02
Shell script for Windows XP installing on Windows 10 from official Microsoft download center.
#Requires -version 4.0
#Requires –RunAsAdministrator
[CmdletBinding()]
param (
[Parameter(Mandatory = $false, HelpMessage = "Choose custom language and version. For example, 'zh-TW' or 'N_de-de'. By default this parameter is host system language.")]
[string]
$Locale = ((Get-WinSystemLocale).Name).ToLower(),
[Parameter(Mandatory = $false, HelpMessage = "Path to 'WindowsXPMode_xx-xx.exe' file.")]
@dimon4ezzz
dimon4ezzz / xp-mode-list.txt
Created March 4, 2020 10:33
List of direct links to XP Mode installers.
https://download.microsoft.com/download/2/5/B/25B89F73-F3D6-44AC-8E53-44473B508093/WindowsXPMode_ar-sa.exe
https://download.microsoft.com/download/9/7/5/975C7E04-C541-4895-9320-79A6CA398EB9/WindowsXPMode_cs-cz.exe
https://download.microsoft.com/download/9/7/5/975C7E04-C541-4895-9320-79A6CA398EB9/WindowsXPMode_N_cs-cz.exe
https://download.microsoft.com/download/1/9/B/19B4BC03-EEC6-483C-AAD9-FDC71391D9C0/WindowsXPMode_da-dk.exe
https://download.microsoft.com/download/1/9/B/19B4BC03-EEC6-483C-AAD9-FDC71391D9C0/WindowsXPMode_N_da-dk.exe
https://download.microsoft.com/download/C/9/8/C984738B-C8C4-4A59-B396-DD77606D7932/WindowsXPMode_de-de.exe
https://download.microsoft.com/download/C/9/8/C984738B-C8C4-4A59-B396-DD77606D7932/WindowsXPMode_N_de-de.exe
https://download.microsoft.com/download/F/7/5/F75B1D75-7A1F-4AC1-9788-0F970FC7D875/WindowsXPMode_el-gr.exe
https://download.microsoft.com/download/F/7/5/F75B1D75-7A1F-4AC1-9788-0F970FC7D875/WindowsXPMode_N_el-gr.exe
https://download.microsoft.com/download/7/2/C/72C7BAB
@dimon4ezzz
dimon4ezzz / ffmpeg-mp3-to-aac.ps1
Last active October 13, 2022 08:12
PowerShell script, that convert mp3 files to aac (m4a) with ffmpeg. Can be verbose and can remove old mp3 files.
# Thanks to slhck: https://superuser.com/a/370637
# Thanks to Tim Van Wassenhove: https://timvw.be/2010/11/20/convert-aacm4a-files-to-mp3-with-vlc-and-powershell/
# Test: ffmpeg-mp3-to-aac -Verbose -RemoveOld
# Test: ffmpeg-mp3-to-aac -RemoveOld
# Test: ffmpeg-mp3-to-aac
Param (
[Parameter(Mandatory=$false, HelpMessage="Does the script remove old mp3 file")]
[switch]