Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Dennis Y. Parygin dyp2000

🏠
Working from home
Block or report user

Report or block dyp2000

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dyp2000
dyp2000 / mysql-backup
Created Feb 5, 2020
Резервное копирование MySQL баз данных. Универсальный скрипт.
View mysql-backup
#!/bin/bash
echo "Резервное копирование БД mySQL. Версия 1.0 (20201229)"
echo "Автор: Денис Парыгин (dyp2000@mail.ru)"
echo ""
read -p "Укажите путь к архиву: " dest
read -p "Имя базы данных: " database
read -p "Имя пользователя для БД $database: " user
read -sp 'Пароль: ' password
@dyp2000
dyp2000 / uniqid.js
Created Jun 19, 2018 — forked from ain/uniqid.js
JavaScript alternative of PHP uniqid()
View uniqid.js
function uniqid (prefix, more_entropy) {
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// + revised by: Kankrelune (http://www.webfaktory.info/)
// % note 1: Uses an internal counter (in php_js global) to avoid collision
// * example 1: uniqid();
// * returns 1: 'a30285b160c14'
// * example 2: uniqid('foo');
// * returns 2: 'fooa30285b1cd361'
// * example 3: uniqid('bar', true);
// * returns 3: 'bara20285b23dfd1.31879087'
View File upload (ExtJS 3.3 + PHP)
# Client part
//
// !Columns
//
var xrep_Columns = new Ext.grid.ColumnModel({
defaults: {
sortable: false
},
columns: [{
@dyp2000
dyp2000 / gist:7654476
Created Nov 26, 2013
Ревизия API
View gist:7654476
на данный момент обнаружил, что нет только цепочек (chains) вызовов
остальное вроде нормально
View bag-test.js
'use strict';
var bag = new window.Bag({
namespace: 'myNS',
stores: ['localstore']
});
//bag.clear(false);
//throw -1;
You can’t perform that action at this time.