Skip to content

Instantly share code, notes, and snippets.

<?require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
<?
function rus2translit($string)
{
$converter = array(
'а' => 'a', 'б' => 'b', 'в' => 'v',
'г' => 'g', 'д' => 'd', 'е' => 'e',
'ё' => 'e', 'ж' => 'zh', 'з' => 'z',
'и' => 'i', 'й' => 'y', 'к' => 'k',
'л' => 'l', 'м' => 'm', 'н' => 'n',
# encoding: utf-8
# USE AT OWN RISK
#
# Follow this guide to install Ruby on Windows (step 1 and 2): https://forwardhq.com/support/installing-ruby-windows
# Install gems (with admin cmd prompt):
# https://rubygems.org/gems/bencode
# https://rubygems.org/gems/rest_client
#
# Edit datpath below to point to your utorrent resume.dat file
@kawashirov
kawashirov / README.md
Last active April 6, 2020 06:48
Кавашировские расширения для Google+

Кавашировские расширения для Google+

Скриншот

Распространяется по лицензии WTFPL.

Внимание! Chromium-подобные браузеры (Chrome, Vivaldi, Opera, ...) на 2016.12.22 не поддерживают необходимые для работы скрипта HTML5 контекстные меню. Для включения эксперементальной поддержки необходимо включить ContextMenu в Blink. Это можно сделать флагом запуска --enable-blink-features=ContextMenu. При этом возможны проблемы.

Для нового интерфейса. Добавляет контекстные меню:

  • (На youtube-видео) "Открыть видео на YouTube", т.к. на данный невозможно открыть видео в отдельном окне не открыв видео в текущем.
  • (На youtube-видео) ... или скопировать ☝️ ссылку
@koteq
koteq / gplus_img_title.user.js
Created June 23, 2017 11:44
G+ hover image title
// ==UserScript==
// @name G+ hover image title
// @version 1.0
// @match *://plus.google.com/*
// @run-at document-end
// @grant none
// ==/UserScript==
/* jshint esnext: true */
const decodeFileName = (src) => {
#! python2
"""
uTorrent resume.dat => qbittorrent
Author: robot
Largely based on resumedata_2015.rb, see https://github.com/qbittorrent/qBittorrent/issues/1826 for discussion.
Zero error tolerance is assumed. As well see error.log for warnings.
Feel free to change defaults in def mkfr().
@Arignir
Arignir / README.md
Last active December 19, 2018 22:55
HoleyBeep exploit

HoleyBeep

This is an exploit for HoleyBeep.

To use it, place any command you want root to execute in /tmp/x.

$ cat /tmp/x
echo PWNED $(whoami)
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active June 30, 2024 17:13
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

@andy-1983
andy-1983 / do_archive.sh
Created January 26, 2021 08:12
PSQL archiving script
#!/bin/bash
STARTSCRIPT=$(date +%s)
STOPSCRIPT=''
ListOfBases='dblist'
PORT='5432'
USERNAME='root'
SERVERNAME='localhost'
ARCHIVEDIR='/archive_dir'
MAXDBCOUNT='1000' #count of db names to select from cluster