Skip to content

Instantly share code, notes, and snippets.

Activating Windows 10 and 11 via Command Line: Step-by-Step Guide 2024

If you're looking for a way to activate Windows 10 or 11 for free, the command line is one of the most effective methods. This approach allows you to activate your operating system using your product key and doesn't require any third-party programs. In this article, we'll walk you through the process.

1. Why Use the Command Line for Windows Activation?

Using the command line for activating Windows allows you to:

  • 🚀 Quickly activate the system without additional interfaces.
  • 🔑 Use an activation key, even if you don't have it.
@Shoora
Shoora / 00_wp-optimizations-security-n-cleanup.md
Created August 22, 2024 18:31 — forked from ApoGouv/00_wp-optimizations-security-n-cleanup.md
WP - Optimizations, Security hardening and Cleanup.

** WP - Optimizations, Security hardening and Cleanup **

Here you can find a a list of WP optimization and cleanup functions and methodology.

1.  .htaccess
  ** Security **
- Disable the server signature
- Disable directory browsing
- Force https to your site.
@Shoora
Shoora / base.txt
Created August 22, 2024 18:08 — forked from hiranthi/base.txt
WP-CLI stuff :)
# Paths: DirectAdmin
# USER: change to correct username
# DOMAIN: change to the correct domainname
# Core stuff
$ wp core version --path=/home/USER/domains/DOMAIN/public_html/
$ wp core download --skip-content --force --version=latest --path=/home/USER/domains/DOMAIN/public_html/
$ wp core update-db --path=/home/USER/domains/DOMAIN/public_html/ --dry-run
$ wp core verify-checksums --path=/home/USER/domains/DOMAIN/public_html/
@Shoora
Shoora / nginx-wordpress.conf
Created May 3, 2024 12:07 — forked from nfsarmento/nginx-wordpress.conf
Harden wordpress security nginx
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}
# Install dependencies
#
# * checkinstall: package the .deb
# * libpcre3, libpcre3-dev: required for HTTP rewrite module
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \
mkdir -p ~/sources/ && \
# Compile against OpenSSL to enable NPN
@Shoora
Shoora / ywactivitytracker.js
Last active April 7, 2024 22:22 — forked from dvygolov/ywactivitytracker.js
Script that measures interactions on your landing page. If the user is active for "checkTime" seconds - an interval is valid, if total count of valid seconds = totalTime - the goal is reached and sent to Yandex.Metrika.
class ActivityTracker {
constructor(totalTime, checkTime, metrikaId, debug = false) {
this.events = [
"touchmove",
"blur",
"focus",
"focusin",
"focusout",
"load",
"resize",
@Shoora
Shoora / admin-redirect
Created March 25, 2024 05:05 — forked from miziomon/admin-redirect
WordPress user admin redirect
/**
*
* redirect to homepage if has non "edit_posts" capabilities
*/
add_filter("admin_init", function () {
if (!current_user_can('edit_posts')) {
wp_redirect(WP_HOME);
exit;
@Shoora
Shoora / waitForYm.js
Created January 3, 2024 16:48 — forked from kernusr/waitForYm.js
Ожидание загрузки счетчика Яндекс.Метрики
/** Ожидание загрузки счетчика Яндекс.Метрики
* @param {?(number|string)} ymCounterNum - номер счетчика, если известен
* @param {function} callback - получает аргументами объект и номер счетчика
* @param {number} interval - интервал проверки готовности счетчика
*/
function waitForYm(ymCounterNum, callback, interval) {
if (!callback) return;
if (!ymCounterNum) {
let metrikaObj = (window.Ya && (window.Ya.Metrika || window.Ya.Metrika2)) || null;
ymCounterNum = (metrikaObj && metrikaObj.counters && (metrikaObj.counters() || [0])[0].id) || 0;
@Shoora
Shoora / readme.txt
Created January 3, 2024 16:44 — forked from Katia-Kovtun/readme.txt
Yandex Metrika для Opencart 2.3
Также необходимо внести правки в catalog/view/javascript/common.js
найти функцию cart.add
после if (json['success']) {
добавить sendYandexEcommerce(json, "add");
найти функцию cart.remove после success: function(json) {
добавить sendYandexEcommerce(json, "remove");