Skip to content

Instantly share code, notes, and snippets.

@al-ivanov
al-ivanov / Activate_Windows_8_8.1_10_and_11_Pro_for_Free.md
Created January 29, 2025 14:40
Activate Windows 8, 8.1, 10 and 11 Pro for Free

Activate Windows 8, 8.1, 10 and 11 Pro for Free

A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!

WATCH OUT FOR SUSPICIOUS LINKS IN THE COMMENTS BELOW!

I noticed that people or bots are trying to place suspicious links below that link to some sketchy source for what they say is a 'crack' or nothing at all. I'd recommend you to NOT click on any of those links! The scripts in this guide are open source and can be viewed as desired. I'm fine with posting coupons here! Do note that if you do so, please prove it! Link a review site along with the site and the coupon. Thanks, Minionguyjpro.

NOTE

If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that

@al-ivanov
al-ivanov / Bitrix Catalog Section Name
Created October 15, 2024 14:40 — forked from eagles038/Bitrix Catalog Section Name
bitrix Получить имя или ID раздела по SECTION_CODE в Битрикс
Сначала получаем id нашего раздела. Для этого воспользуемся очень удобным, но не документированным (ох уж этот Битрикс) классом CIBlockFindTools и его методом GetSectionID. В section.php перед выводом нашего заголовка пишем:
$arResult["SECTION_ID"] = CIBlockFindTools::GetSectionID(
$arResult["VARIABLES"]["SECTION_ID"],
$arResult["VARIABLES"]["SECTION_CODE"],
array("IBLOCK_ID" => $arParams["IBLOCK_ID"])
);
$res = CIBlockSection::GetByID($arResult["SECTION_ID"]);
if($ar_res = $res->GetNext()) {
@al-ivanov
al-ivanov / ageControl.js
Last active March 15, 2022 15:10
Подтверждение возраста
function getCookie(name) {
const matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
const ageControl = getCookie('age-control');
if (ageControl === undefined) {
$.fancybox.open($('.js-age-control'), {
clickSlide: false,
clickOutside: false,
@al-ivanov
al-ivanov / dom-helper.js
Created March 2, 2019 18:41 — forked from SitePointEditors/dom-helper.js
Mini jQuery, sort of.
/**
* A collection of helper prototype for everyday DOM traversal, manipulation,
* and event binding. Sort of a minimalist jQuery, mainly for demonstration
* purposes. MIT @ m3g4p0p
*/
window.$ = (function (undefined) {
/**
* Duration constants
* @type {Object}
@al-ivanov
al-ivanov / PageLoadAcceleration.js
Created February 19, 2019 20:11
Ускорение загрузки страницы за счет последовательной загрузки картинок, вместо параллельной
(async ()=>{
for (let node of document.getElementsByTagName('img')) {
await new Promise(res=>{
node.src=node.dataset.src;
node.onload = ()=>res();
})
}
})()
//Используется data-src вместо src
@al-ivanov
al-ivanov / RLE.js
Created February 11, 2019 13:11
Алгоритм сжатия RLE
function getRLEStringLength(str) {
if(!str)
return 0;
let length = 0,
tempCount = 0,
symbol = str[0];
for(let i = 0; i < str.length; i++) {
if(symbol == str[i]) {
@al-ivanov
al-ivanov / GamwSnake.java
Created February 6, 2019 22:43
Змейка на Java
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
public class GameSnake {
final String TITLE_OF_PROGRAM = "Classic Game Snake";
final String GAME_OVER_MSG = "GAME OVER";
@al-ivanov
al-ivanov / php7_install_raspberrypi.sh
Created July 31, 2018 20:09
Installing php7 on raspberry Pi
sudo apt-get update && sudo apt-get upgrade
echo "deb http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free" >> /etc/apt/sources.list
echo "#deb-src http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free" >> /etc/apt/sources.list
sudo gpg --keyserver pgpkeys.mit.edu --recv-key CCD91D6111A06851
sudo su
gpg --armor --export CCD91D6111A06851 | apt-key add -
exit
@al-ivanov
al-ivanov / httpd-vhost.conf
Created May 14, 2017 20:29 — forked from agragregra/httpd-vhost.conf
XAMPP httpd-vhost.conf
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/"
ServerName localhost
<Directory "/Applications/XAMPP/xamppfiles/htdocs/">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>