Skip to content

Instantly share code, notes, and snippets.

/**
* @typedef {import('vue').Ref} Ref
* @typedef {import('vue').ComputedRef} ComputedRef
* @typedef {import('swiper').Swiper} SwiperType
* @typedef {import('swiper/types').SwiperEvents} SwiperEvents
* @typedef {import('swiper/types').CSSSelector} CSSSelector
* @typedef {import('swiper/types').SwiperOptions} SwiperOptions
* @typedef {{ [event in keyof SwiperEvents]?: SwiperEvents[event] }} SwiperEventsList
*/
@geff21st
geff21st / yandexMusicSpeed.js
Last active November 29, 2021 10:47
Скрипт для Tamper Monkey
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Активирует управление скоростью в Яндекс.Музыке. Задаем желаемую скорость и скрипт ее поддерживает.
// @author You
// @match https://music.yandex.ru/*
// @icon https://www.google.com/s2/favicons?domain=yandex.ru
// @grant none
// ==/UserScript==
wget 'https://getcomposer.org/download/2.0.11/composer.phar' -O ~/composer
touch ~/.bashrc
echo "alias composer='/usr/local/php73/bin/php ~/composer'" >> ~/.bashrc
#перед использованием:
source ~/.bashrc
data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==
Подробнее:
http://proger.i-forge.net/%D0%9A%D0%BE%D0%BC%D0%BF%D1%8C%D1%8E%D1%82%D0%B5%D1%80/[20121112]%20The%20smallest%20transparent%20pixel.html
export PATH="/usr/local/Cellar:$PATH"
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH="/usr/local/opt/php@7.3/bin:$PATH"
export PATH="/usr/local/opt/php@7.3/sbin:$PATH"
alias pstorm="open -a PhpStorm"
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="/usr/local/sbin:$PATH"
@geff21st
geff21st / bitrixNewsList--simple.php
Last active April 16, 2019 18:33
Самый простой конфиг для news.list
<? $APPLICATION->IncludeComponent(
"bitrix:news.list",
"",
Array(
"ACTIVE_DATE_FORMAT" => "j F Y",
"IBLOCK_ID" => CONTACTS_IBLOCK,
"IBLOCK_TYPE" => "content",
"SORT_BY1" => "SORT",
"SORT_BY2" => "ID",
"SORT_ORDER1" => "ASC",
// ==UserScript==
// @name uplabJiraActions
// @description Кастомные действия для Jira
// @author Uplab
// @license MIT
// @version 20180710.03.18.23
// @grant GM_addStyle
// @include https://j.uplab.ru/*
// ==/UserScript==
mogrify -path ./previews \
-resize "300x300^" \
-gravity Center \
-extent "300x300" \
./*

Служебные скрипты

wget http://dev.1c-bitrix.ru/download/scripts/bitrix_server_test.php
wget https://www.1c-bitrix.ru/download/files/scripts/restore.php

Настройки GIT

git config --global color.ui auto &&
<?php
function includeLandingPage($page) {
global $APPLICATION;
if (empty($page)) return;
$APPLICATION->RestartBuffer();
include($_SERVER["DOCUMENT_ROOT"] . "/bitrix/templates/landing24/header.php");