Skip to content

Instantly share code, notes, and snippets.

@431824
431824 / test.txt
Last active December 18, 2023 13:16
345
@431824
431824 / DeleteAdsOnFishki.net.js
Created October 19, 2020 20:51
Delete ads on fishki.net for tampermonkey
// ==UserScript==
// @name DeleteAdsOnFishki.net
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://fishki.net/
// @run-at document-idle
// @grant none
// @require https://code.jquery.com/jquery-3.4.1.min.js
@431824
431824 / wp-config.php
Created January 4, 2019 08:52
Activate debug mode in Wordpress
error_reporting(E_ALL); ini_set('display_errors', 1);
define( 'WP_DEBUG', true);
@431824
431824 / remember the milk.md
Last active February 12, 2018 14:52
RTM Cheat Sheet

Jumping

Shortcut Key Definition
g then i Go to Inbox
g then a Go to All Tasks
g then t Go to Today
g then o Go to Tomorrow
g then w Go to This Week
g then v Go to Given to others
@431824
431824 / terminator.config
Last active August 10, 2017 12:12
save this file to ~/.config/terminator/config
[global_config]
[keybindings]
[layouts]
[[default]]
[[[child1]]]
parent = window0
type = Terminal
[[[window0]]]
parent = ""
type = Window
@431824
431824 / Pok3r RGB
Last active October 14, 2019 09:26
Programming Pok3r RGB in russian
# Инструкция по перепрограммированию клавиш:
Шаг 1. Выберите слой (Fn+;,: или - клавиша) для которой вы хотите перепрограммировать клавиши.
Шаг 2. Нажмите Fn + Правый CTRL для того чтобы зайти в режим программирования (Свет под пробелом должен продолжать гореть постоянно)
Шаг 3. Выберите клавишу, которую вы хотите перепрограммировать (Свет под пробелом будет моргать)
Шаг 4. Выберите клавишу, на которую вы хотите заменить и потом нажмите PN/Menu(Свет под пробелом должен продолжать гореть постоянно)
Шаг 5. Повторите шаг 2 и шаг 3 для программирования других клавиш.
Шаг 6. Нажмите Fn + Правый CTRL для того чтобы выйти и режима программирования (Свет под пробелом должен погаснуть)
# Для ускорения, мои сочетания
``` Fn + RCtrl -> (1) ```
@431824
431824 / regexp
Created March 29, 2017 12:53
Find text without "defined word" in second row
Text\n(^((?!Should).)*)$
@431824
431824 / handle test coding style
Last active March 29, 2017 09:33
CodingStyle: divide assert from logic (GTW)
#Before
@Test
public void myTest() {
Foo foo = new Foo();
test.apply(foo);
assertEquals(BigInteger.ONE, test.result());
}
#After
@Test
public void myTest() {