Just download Raspberry Pi OS Lite 32Bit
https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
Download & Install etcher for OS Flash
https://www.balena.io/etcher/
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
#!/usr/bin/env python3 | |
import json | |
import argparse | |
import os | |
import re | |
def extract_coverage(file_path, output_dir="coverage_output"): | |
""" | |
Extracts code coverage information from a Chrome JSON coverage export and saves the covered CSS code in separate files. | |
python3 coverage.py Coverage-20241230T150406.json ./test |
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
<?php | |
/** | |
* Plugin Name: load_plugin_textdomain | |
* Description: load_plugin_textdomain Plugin | |
* Version: 1.0.0 | |
*/ | |
add_action('plugin_loaded', function () { | |
load_plugin_textdomain('mihanpanel', false, 'mihanpanel/lang'); |
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
<?php | |
/* | |
Plugin Name: Rotitr | |
Description: rotiter add new custom field to post area | |
Version: 1.0.0 | |
Author: dariushvesal | |
Author URI: https://vesal.blog | |
*/ | |
// don't load directly |
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
<?php | |
/* | |
Plugin Name: Bulk Edit for variation products | |
Author: Dariush vesal | |
Plugin URI: https://vesal.blog | |
Description: Bulk Edit for variation products | |
Author URI: https://vesal.blog | |
Text Domain: bulk-variation | |
Version: 1.0.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
#!/bin/bash | |
# You need to install `imagemagick` | |
# sudo apt install imagemagick | |
function compress_image { | |
cd "$1" | |
HAS_IMAGE=$(ls | grep ".jpg" | wc -l) | |
if [ "$HAS_IMAGE" -gt 0 ]; then | |
mkdir -p compress |
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
sudo mkdir -p /etc/systemd/system/docker.service.d | |
sudo touch /etc/systemd/system/docker.service.d/proxy.conf | |
echo ' | |
[Service] | |
Environment="HTTP_PROXY=http://USERNAME:PASSWORD@IP:PORT" | |
Environment="NO_PROXY="localhost,127.0.0.1,::1" | |
' > /etc/systemd/system/docker.service.d/proxy.conf; | |
sudo systemctl daemon-reload |
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
echo "install some app" | |
sudo apt-get update | |
sudo apt-get -y install htop git | |
echo "Install shecan" | |
curl https://gist.githubusercontent.com/devlifeX/d2918f7af1d10409b5c82a52795b5c54/raw/0e098e5d1d90fb5e6fe74a1f52cb53953bfa076f/shecan.sh | sudo bash - | |
echo "install docker and docker-compose" | |
curl https://gist.githubusercontent.com/devlifeX/be64df7608e08853aad995c65872df59/raw/59401f9a980a869ff7cfedc1e1205d8bd2451fcc/docker-installer.sh | sudo bash - |
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
sudo chown -R www-data:www-data wp-content | |
sudo chown -R www-data:www-data wp-admin | |
sudo chown -R www-data:www-data wp-includes | |
sudo chown www-data:www-data index.php | |
sudo chown www-data:www-data wp-activate.php | |
sudo chown www-data:www-data wp-blog-header.php | |
sudo chown www-data:www-data wp-comments-post.php | |
sudo chown www-data:www-data wp-config.php | |
sudo chown www-data:www-data wp-cron.php |
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
sudo cat > /etc/docker/daemon.json <<EOF | |
{ | |
"registry-mirrors": ["https://dockerhub.ir"] | |
} | |
EOF | |
sudo systemctl restart docker |
NewerOlder