Skip to content

Instantly share code, notes, and snippets.

Avatar
💫
Permanent study state

Anton qant

💫
Permanent study state
  • lusa realty, lusa legal, banisio
  • Испания
  • Twitter @antseme
View GitHub Profile
@qant
qant / remove_barks_from_audio_free.txt
Created Jan 15, 2023
How to remove barks from voice recordings using free software on windows?
View remove_barks_from_audio_free.txt
There are a few ways to remove barks from voice recordings using free software on Windows, depending on the type of software you have available.
1. Audacity: Audacity is a free and open-source audio editor that can be used to remove barks from voice recordings. To do this, first select the part of the audio with the bark, then go to the Effects menu and choose Noise Reduction. Follow the instructions to reduce the bark noise.
2. Adobe Audition: Adobe Audition is a popular audio editing software available for free. To remove barks, open the audio file in the program and select the section with the bark. Then, apply the Adaptive Noise Reduction effect, adjust the settings and click Process to reduce the bark noise.
3. WavePad: WavePad is a free audio editing program for Windows that can be used to remove barks. Select the part of the audio with the bark, then go to the Effects menu and choose Noise Reduction. Adjust the settings and click OK to reduce the bark noise.
4. Vocal Remover: Vocal Remover is a f
@qant
qant / gist:9941414a808c487edd556aed99a2e98b
Created Jan 15, 2023
How to remove barks from voice recordings using adobe premiere pro?
View gist:9941414a808c487edd556aed99a2e98b
1. In Adobe Premiere Pro, go to the Audio Effects tab in the Effects panel.
2. Select the Noise Reduction/Restoration category.
3. Drag the Adaptive Noise Reduction effect onto your voice recording clip.
4. Move the slider to adjust the amount of noise reduction applied to the clip.
5. Play back the clip to hear the difference.
@qant
qant / style.html
Created Dec 24, 2022
CSS online edit
View style.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style style='position: fixed;
@qant
qant / _admin_notice_example.php
Created May 29, 2022
Wordpress dismissible admin notice example
View _admin_notice_example.php
<?php
if (!defined('ABSPATH')) {
die('-1');
}
if (!class_exists('ANT_NOTICE')) {
class ANT_NOTICE
View _ant_woocommerce_mimi_cart.php
<?php
echo '<a href="#" class="dropdown-back" data-toggle="dropdown"> ';
echo '<i class="fa fa-shopping-cart" aria-hidden="true"></i>';
echo '
<div class="basket-item-count" style="display: inline;">';
echo '<span class="cart-items-count count">';
echo WC()->cart->get_cart_contents_count();
echo '</span>';
echo '
</div>
@qant
qant / kc.ajax.php
Created May 25, 2022
KingComposer patched get_thumbn and get_thumbn_size because of https://wpscan.com/vulnerability/906d0c31-370e-46b4-af1f-e52fbddd00cb
View kc.ajax.php
<?php
/**
*
* King Composer
* (c) KingComposer.com
*
*/
if(!defined('KC_FILE')) {
header('HTTP/1.0 403 Forbidden');
exit;
View filter.php
<?php
/*
* THE FILTER
*
*/
function custom_responsive_image_sizes($sizes, $img_name, $attachment_id) {
$sizes = wp_get_attachment_image_sizes($attachment_id, 'original');
$meta = wp_get_attachment_metadata($attachment_id);
$width = $meta['width'];
@qant
qant / gist:8ee09e9ab5b79fcfa3e32790f5e0ab85
Created Apr 9, 2022
Clear all cart sessions woocommerce
View gist:8ee09e9ab5b79fcfa3e32790f5e0ab85
//Using wp cli
wp wc tool run clear_sessions --user=1
Useful related commands: https://github.com/woocommerce/woocommerce/wiki/WC-CLI-Overview#command-1
wp wc tool run delete_orphaned_variations --user=1
wp wc tool run clear_expired_transients --user=1
wp wc tool run clear_transients --user=1
--user=1 is an admin user with ID=1 in my case
@qant
qant / woocommerce-popular-products.php
Created Mar 24, 2022 — forked from aslamdoctor/woocommerce-popular-products.php
Woocommerce : Get popular products using wp_query
View woocommerce-popular-products.php
@qant
qant / tax.php
Created Feb 8, 2022
Extra taxes woo
View tax.php
<?php
// Display the custom checkbow field in checkout
add_action( 'woocommerce_review_order_before_order_total', 'fee_installment_checkbox_field', 20 );
function fee_installment_checkbox_field(){
echo '<tr class="packing-select"><th>';
woocommerce_form_field( 'installment_fee', array(
'type' => 'checkbox',
'class' => array('installment-fee form-row-wide'),
'label' => __('Montaža v 14 dneh (predpripravljen prostor) - 170€'),