Skip to content

Instantly share code, notes, and snippets.

<?php
require_once __DIR__.'/class/abstract_search.php';
set_time_limit(0);
class JeendaSearch extends \AbstractSearch
{
const BASE_URL = 'https://www.jeendapower.com';
const SEARCH_URL = self::BASE_URL . '/search';
#!/bin/bash
# Script for run localtunnel
# https://github.com/localtunnel/localtunnel
##### Constants
SUBDOMAIN='name'
PORT=8080
@me-am-i
me-am-i / passwords.md
Created April 10, 2021 16:23 — forked from zmts/passwords.md
Про хранение паролей в БД

Про хранение паролей в БД

При создании нового юзера

  1. При регистрации юзер вводит некий пароль
  2. Генерим случайную соль индивилуально для каждого юзера
  3. Создаем хеш на основе введенного юзером пароля и соли
  4. Записываем хеш(не пароль) в БД + соль в отдельном филде

Авторизация существующего юзера

  1. Юзер вводит в поле авторизации некий пароль
# =================================
# List all node_modules
# Linux.
$ cd documents
$ find . -name "node_modules" -type d -prune -print | xargs du -chs
# Windows
$ cd documents
$ FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" echo %d"
@me-am-i
me-am-i / tsconfig.json
Created April 10, 2021 16:18 — forked from KRostyslav/tsconfig.json
tsconfig.json с комментариями.
// Файл "tsconfig.json":
// - устанавливает корневой каталог проекта TypeScript;
// - выполняет настройку параметров компиляции;
// - устанавливает файлы проекта.
// Присутствие файла "tsconfig.json" в папке указывает TypeScript, что это корневая папка проекта.
// Внутри "tsconfig.json" указываются настройки компилятора TypeScript и корневые файлы проекта.
// Программа компилятора "tsc" ищет файл "tsconfig.json" сначала в папке, где она расположена, затем поднимается выше и ищет в родительских папках согласно их вложенности друг в друга.
// Команда "tsc --project C:\path\to\my\project\folder" берет файл "tsconfig.json" из папки, расположенной по данному пути.
// Файл "tsconfig.json" может быть полностью пустым, тогда компилятор скомпилирует все файлы с настройками заданными по умолчанию.
// Опции компилятора, перечисленные в командной строке перезаписывают собой опции, заданные в файле "tsconfig.json".
@me-am-i
me-am-i / sync-github-to-bitbucket.md
Created September 8, 2020 14:18 — forked from derick-montague/sync-github-to-bitbucket.md
Sync github repo to bitbucket repo

Set up remotes

setup local repo

mkdir myrepository
cd myrepository
git init

add bitbucket remote as "origin"

@me-am-i
me-am-i / send_bot_to_private_shanel.md
Created June 27, 2019 12:52 — forked from vertigra/send_bot_to_private_shanel.md
Отправка сообщений в приватный канал ботом телеграм

Отправка сообщений в приватный канал ботом телеграм

  • создать публичный канал
  • добавить в канал бота от которого будут посылаться сообщения
  • перейти по ссылке:
https://api.telegram.org/bot255854462:ABGlRhNICpcjb1EUbvMsagKyxPv3Z1FPtXA/sendMessage?chat_id=-1221196120949&text=test_message_string
  • в ответе придет id канала
@me-am-i
me-am-i / themeforest-contract.md
Created May 18, 2019 00:14 — forked from primozcigler/themeforest-contract.md
Modified version of @malarkey's Killing Contract for use for the ThemeForest cooperation (more dev to dev team than dev to client).

Contract for developing a Drupal theme for selling on the ThemeForest

Between us: [ProteusNet d.o.o., Rudarska cesta 11, 8281 Senovo, Slovenia, EU] and you: [partner]

Summary:

We’ll always do our best to fulfil the scope of this cooperation, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

So in short;

@me-am-i
me-am-i / Contract Killer 3.md
Created May 17, 2019 19:56
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post