Skip to content

Instantly share code, notes, and snippets.

@lord-alfred
lord-alfred / gethostbyaddr
Created June 27, 2021 11:22
Пресет к A-Parser для получения PTR-записи по IP (обратный DNS-запрос)
eyJwcmVzZXQiOiJnZXRob3N0YnlhZGRyIiwidmFsdWUiOnsicHJlc2V0IjoiZ2V0
aG9zdGJ5YWRkciIsInBhcnNlcnMiOltbIk5ldDo6RE5TIiwiZGVmYXVsdCIseyJ0
eXBlIjoib3ZlcnJpZGUiLCJpZCI6InF1ZXJ5X3R5cGUiLCJ2YWx1ZSI6IlBUUiJ9
LHsidHlwZSI6Im92ZXJyaWRlIiwiaWQiOiJzZXJ2ZXIiLCJ2YWx1ZSI6IjguOC44
LjgsIDE1Ni4xNTQuNzAuMSwgNjQuNi42NC42LCA4LjI2LjU2LjI2LCAxLjAuMC4x
LCA3Ny44OC44LjEsIDE5OC4xMDEuMjQyLjcyLCAyMDguNjcuMjIyLjIsIDguOC40
LjQsIDY0LjYuNjUuNiwgNzcuODguOC44LCAxNTYuMTU0LjcxLjEsIDk0LjE0MC4x
NC4xNDAsIDE3Ni4xMDMuMTMwLjEzMCwgOTEuMjM5LjEwMC4xMDAsIDguMjAuMjQ3
LjIwLCAxODUuMjI4LjE2OC4xNjgsIDIwOC42Ny4yMjAuMiwgMTQ5LjExMi4xMTIu
MTAsIDk0LjE0MC4xNC4xNDEsIDE4NS4yMjguMTY5LjE2OCwgMS4xLjEuMSwgOS45
@neretin-trike
neretin-trike / pug.md
Last active May 21, 2024 23:00
Туториал по HTML препроцессору Pug (Jade)
@strikeout
strikeout / BitMEX Jazz BEEP
Last active July 30, 2020 19:06
Aural indication of XBTUSD price movements via BitMEX websocket realtime-trade data. Uses the blues scale to add some funk to your trading. Copy & paste into your browser's console..
/**
* BitMEX JAZZ BEEP
*
* Aural indication of XBTUSD price movements via BitMEX websocket realtime-trade data.
* Uses the blues scale to add some funk to your trading.
*
*/
var options = {
@tomasevich
tomasevich / nginx_nodejs.md
Last active May 23, 2024 14:37
Сервер в связке Nginx + NodeJs

Сервер в связке Nginx + NodeJs

Данная пошаговая инструкция поможет освоить основы на простом примере

Для справки

Сервер поднимался на Debian 8 c характеристиками:

CPU - 1 ядро x 500 МГц

@carlos-jenkins
carlos-jenkins / app.py
Created February 10, 2014 20:03
Example to set to a Gtk application a custom theme.
# -*- coding:utf-8 -*-
#
# Copyright (C) 2013 Carlos Jenkins <carlos@jenkins.co.cr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@badfun
badfun / get template directory uri shortcode
Last active March 13, 2018 08:22
[template_directory] shortcode allows use of get_template_directory_uri() function in TinyMCE editor WordPress
/**
* Shortcode for WP function get_template_directory_uri();
*/
// Add Shortcode
function bfp_get_template_directory() {
$directory = get_template_directory_uri();
// Code
return $directory;
}