Skip to content

Instantly share code, notes, and snippets.

View yradunchev's full-sized avatar

Yordan Radunchev yradunchev

View GitHub Profile
@yradunchev
yradunchev / fixsubs.sh
Created August 17, 2017 16:57
fix subtitles encoding and convert single й to ѝ
for f in *.srt; do iconv -f WINDOWS-1251 -t utf8 -o ${f}.u ${f} && mv ${f}.u ${f} && sed -i -E 's/(\b)й(\b)/\1ѝ\2/g' ${f}; done
@yradunchev
yradunchev / gist:b217b85f5e237e3705fa94e95ad81156
Created November 16, 2017 09:06
Check servers for reboots pending
Get-Content C:\scripts\serverslist.txt |
% { Invoke-WmiMethod -ComputerName $_ -Namespace root\ccm\clientsdk -Class CCM_ClientUtilities -Name DetermineIfRebootPending |
select PSComputerName,RebootPending,RebootDeadline } |
Export-Csv -NoTypeInformation C:\scripts\PendingReboots.csv
@yradunchev
yradunchev / Ledger_3_commands.dat
Created April 17, 2018 19:11 — forked from agaviria/Ledger_3_commands.dat
Collection of ledger-cli commands
# comments example for .dat or .ledger files
@smallexample
; This is a single line comment,
# and this,
% and this,
| and this,
* and this.
# If you have a deeply nested tree of accounts,
# it may be convenient to define an alias, for example:
@yradunchev
yradunchev / xrupdate
Created June 17, 2018 18:27
download xr from DSK Bank to ledger-cli prices.db file
xrupdate () {
curl -s 'https://dskbank.bg/restapi/dsk/GetCurrencyRates?format=json' |
sed -e 's/[{}]/\n/g' -e 's/"//g' | sed -e '2~2d' |
awk -v date="$(date +"%Y-%m-%d")" -F[,:] 'NF && $4!=0{print "P " date" 00:00:00 "$6" "$4 " BGN"}' >> ~/L/ledger/data/prices.db
}
{
obscenewords: [
"Боклук",
"боклуци",
"тъп",
"тъпи",
"тъпаци",
"тъпак",
"тъпанар",
"тъпанари",
@yradunchev
yradunchev / Podcast-Checklist.md
Last active September 15, 2022 13:36 — forked from pgburt/Podcast-Checklist.md
Audacity Podcast Checklist

Recording

  • Ensure you're recording in 16-bit PCM + 44100Hz.
  • Do a sound check, record everyone in the room speaking. You want the lighter part of the meter bar (the green or red bar at the top) to bounce between -12db and -6db while people are talking. It's hard to achieve this... so just settle for as close as you can get, without the bars going off the scale :)
  • Play it back and tweak levels until it sounds good @ 60% speaker volume.
  • Save the Project BEFORE recording live :D (prevents quality issues)

Edit for Content

  • Join recordings to one track.
  • Listen to it + Edit bad content out.
  • Save this copy to Google Drive, or another backup spot.
@yradunchev
yradunchev / archdaw.md
Last active March 28, 2020 06:42
Arch DAW

Sudoers

pacman -S sudo

Use sed to uncomment the wheel group from sudoers, then hijack the EDITOR variable to copy the modified version back via visudo.

sed 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' /etc/sudoers > /etc/sudoers.new
EDITOR="cp /etc/sudoers.new" visudo

rm /etc/sudoers.new

# Creating a system sound monitor
pcm.pulse_monitor {
type pulse
device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
}
ctl.pulse_monitor {
type pulse
device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
}
@yradunchev
yradunchev / README.md
Last active October 9, 2019 03:43
chapter podcast episode

id3tags.txt:

;FFMETADATA1
title="Title"
artist=Artist
album_artist=Artist
album=Album
copyright=Copyright 2019
track=01

genre=(186)

@yradunchev
yradunchev / tfg_calf
Last active October 20, 2019 07:01
tfg tracking settings
<?xml version="1.1" encoding="utf-8"?>
<rack><plugin type="mono" instance-name="Mono Input" input-index="1" output-index="1">
<preset bank="0" program="0" plugin="mono" name="">
<param name="bypass" value="0" />
<param name="level_in" value="1" />
<param name="level_out" value="1" />
<param name="meter_in" value="0" />
<param name="meter_outL" value="0" />
<param name="meter_outR" value="0" />
<param name="clip_in" value="0" />