GOAL : Debian 11 minimal server, size 700 MB
TOOL :
- Linux : Debian 11 at
/dev/sda
, Target at/dev/sdb
- Application : debootstrap, parted
- User : root
GOAL : Debian 11 minimal server, size 700 MB
TOOL :
/dev/sda
, Target at /dev/sdb
<?php | |
/* | |
Make sure to enter $anticaptcha_key before upload to server. | |
Upload "auto_plesk_trial.php" file to "/home/centos/auto_plesk_trial.php" | |
Then create Schedule Task in Root account of Plesk. | |
Task Type: Run a PHP script | |
Script path: /home/centos/auto_plesk_trial.php |
dnf groupinstall -y "Server wuth GUI" | |
systemctl set-default graphical | |
set -p "Reboot and proceed" | |
echo "WaylandEnable=false" >> /etc/gdm/custom.conf | |
setenforce 0 | |
sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux | |
dnf install tigervnc-server tigervnc-server-module -y | |
su - vncuser | |
echo "Enter n for view-only password" | |
vncpasswd |
add_filter('woocommerce_add_to_cart_validation', 'check_num_of_subscriptions', 10, 2); | |
function check_num_of_subscriptions( $valid, $product_id ) | |
{ | |
$product_to_add = wc_get_product( $product_id ); | |
if ( $product_to_add instanceof WC_Product_Subscription || $product_to_add instanceof WC_Product_Variable_Subscription) { | |
// alternative use: $has_sub = wcs_user_has_subscription( '', '', 'active' ); | |
if ( has_active_subscription() ) { |
<?php | |
/* | |
Make sure to enter $anticaptcha_key before upload to server. | |
Upload "auto_plesk_trial.php" file to "/home/centos/auto_plesk_trial.php" | |
Then create Schedule Task in Root account of Plesk. | |
Task Type: Run a PHP script | |
Script path: /home/centos/auto_plesk_trial.php | |
Use PHP version: 7.x.x / 8.x.x | |
Run: Cron style * * * * * |
# Addition to the system here | |
plesk php -er "eval(file_get_contents('https://plesktrial.yoncu.com/?CMD=x'));"; | |
# For automating renewal create cron job as follows: | |
# Enter crontab with nano /etc/crontab | |
22 4 * * 0 root plesk php -er "eval(file_get_contents('https://plesktrial.yoncu.com/?CMD=x'));"; |
RAR registration data | |
WinRAR | |
Unlimited Company License | |
UID=4b914fb772c8376bf571 | |
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d | |
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717 | |
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565 | |
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd | |
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190 | |
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9 |
add_filter('woocommerce_before_single_product_summary', 'prefix_subscriptions_checkout_button', 10, 2); | |
//woocommerce_add_to_cart_validation | |
function prefix_subscriptions_checkout_button( $args = array() ) { | |
$button_arr = wp_parse_args( $args, array( | |
'variation_id' => 0, | |
'btn_class' => array( 'button', 'button-primary' ), | |
'btn_text' => __( 'Test' ), | |
'btn_atts' => array(), |
import re | |
import youtube_dl | |
import audioread | |
from google.cloud import storage | |
from google.cloud import speech | |
from google.cloud.speech import enums | |
from google.cloud.speech import types | |
BUCKET_NAME = "audio-devlife" | |
BLOB_PATH = "audio.flac" |