This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------------------------------------------------- | |
# Generated by gfwlist: https://github.com/du5/gfwlist | |
# Generated time: 2020/03/03 00:42:51 | |
#--------------------------------------------------- | |
- DOMAIN-SUFFIX,kafoodle.com,Proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Copy jira task name | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://kafoodle.atlassian.net/browse/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/// renames iOS Evernote files names from Evernote Snapshot 20180502 203934.png ; Evernote Snapshot 20180502 203934 [2].png | |
/// to android filename style: img_20180502_203934.1.png, img_20180502_203934.2.png | |
$a = []; | |
foreach (glob('*.png') as $path) { | |
preg_match('/(Evernote Snapshot )(\d+) (\d+)\s?(\[\d+\])?/', $path, $matches); | |
$suffix = $matches[4] ?? null; | |
$suffix = $suffix ? (int)trim($suffix, '[]') : 1; | |
$newName = "img_{$matches[2]}_{$matches[3]}.$suffix.png"; | |
rename($path, $newName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
site_name="site.ru" | |
path_to_site="/home/admin/web/site.ru/public_html" | |
path_for_backups="/home/admin/web/site.ru/backups_tmp" | |
db_name="don_tur" | |
db_user="don_tur" | |
#db_passsword= | |
db_host="localhost" | |
ftp_login="" | |
ftp_pass="" | |
ftp_host="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$x = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; | |
function recursiveCompact($array, $value) | |
{ | |
$arrayDeeper = function (&$arr, $value) use (&$arrayDeeper) { | |
$last = array_pop($arr); | |
$return = [$last => $value]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum group install "Development Tools" | |
yum group install "Development Libraries" | |
yum install libxml2-devel openssl-devel git autoconf gcc bison bzip2-devel curl-devel libjpeg-devel freetype-devel libmcrypt libmcrypt-devel mhash \ | |
mhash-devel php-mysql mysql-devel aspell-devel libtidy libtidy-devel libxslt libxslt-devel glibc-utils libtool-ltdl-devel libpng-devel db4-devel libXpm-devel \ | |
gmp-devel libc-client-devel openldap-devel unixODBC-devel postgresql-devel sqlite-devel net-snmp-devel pcre-devel t1lib-devel recode-devel expat-devel | |
./configure \ | |
--prefix=/opt/php70 \ | |
--with-config-file-path=/opt/php70/etc \ | |
--with-config-file-scan-dir=/opt/php70/etc/php.d \ | |
--with-libdir=lib64 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 1. Module Design Pattern | |
* @link https://scotch.io/bar-talk/4-javascript-design-patterns-you-should-know#module-design-pattern | |
*/ | |
(function () { | |
// declare private variables and/or functions | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Common height for all .common-height__item placed inside parent wrapper | |
* with .common-height selector | |
* | |
* Example: | |
* | |
* <div class="common-height"> | |
* <div class="common-height__item"></div> | |
* <div class="common-height__item"></div> | |
* <div class="common-height__item"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("vendor/autoload.php"); | |
$code = file_get_contents('settings.php'); | |
$settings = []; | |
$parser = new PhpParser\Parser(new PhpParser\Lexer\Emulative); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://onedev.net/post/469 |
NewerOlder