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
({ | |
block : 'page', | |
title : 'grid', | |
head : [ | |
{elem: 'css', url: '_grid.css'} | |
], | |
scripts: [{elem: 'js', url: '_grid.js'}], | |
content: [ | |
{ | |
block : 'content', |
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
// Fonts mixin | |
font-url(file) | |
return '../fonts/' + file | |
webfont(family, file, hack-chrome-windows = false, weight = 'normal') | |
@font-face | |
font-family family | |
src url(font-url(file + '.eot')) | |
src url(font-url(file + '.eot?#iefix')) format('embedded-opentype'), | |
url(font-url(file + '.woff')) format('woff'), |
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
# read more at https://terrty.net/2014/ssl-tls-in-nginx/ | |
# latest version on https://gist.github.com/paskal/628882bee1948ef126dd/126e4d1daeb5244aacbbd847c5247c2e293f6adf | |
# security test score: https://www.ssllabs.com/ssltest/analyze.html?d=terrty.net | |
# your nginx version might not have all directives included, test this configuration before using in production against your nginx: | |
# $ nginx -c /etc/nginx/nginx.conf -t | |
server { | |
# public key, contains your public key and class 1 certificate, to create: | |
# (example for startssl) | |
# $ (cat example.com.pem & wget -O - https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem) | tee -a /etc/nginx/ssl/domain.pem > /dev/null |
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
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
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 | |
return function ($bh) { | |
$bh->match('breadcrumbs', function ($ctx, $json) { | |
if (!$ctx->param('data')) { | |
return; | |
} | |
foreach ($json->data as $item) { | |
$mod = isset($item['active']) ? true : false; | |
if (isset($item['url'])) { |
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
<script>console.log({"block":"page","elem":null,"mix":{"0":{"block":"user","elem":null,"mix":null,"content":null,"tag":null,"html":null,"js":{"logged":true,"profile_url":"http:\/\/vrukodelii.dev\/users\/unic","avatar_url":"http:\/\/vrukodelii.dev\/attachments\/avatar_small.png","menu":[{"icon":"user","url":"http:\/\/vrukodelii.dev\/users\/unic","name":"Mo\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c"},{"icon":"edit","url":"http:\/\/vrukodelii.dev\/users\/unic\/posts","name":"Mo\u0438 \u0440\u0430\u0431\u043e\u0442\u044b"},{"icon":"settings","url":"http:\/\/vrukodelii.dev\/my\/settings","name":"Mo\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"},{"icon":"user","url":"http:\/\/vrukodelii.dev\/admin","name":"\u0410\u0434\u043c\u0438\u043d\u043a\u0430"},{"icon":"power-off","url":"http:\/\/vrukodelii.dev\/logout","name":"\u0412\u044b\u0439\u0442\u0438"}]},"jsAttr":null,"bem":null,"cls":null,"attrs":null,"_stop":false,"_matcherCalls":0,"_m":[]}},"content":{"0":{"block":"header","elem":null,"mix":n |
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
/* REMOVE SELF PINGING */ | |
function remove_self_pinging(&$links,&$pung) { | |
$self = get_option('siteurl'); | |
foreach ($links as $link => $data) { | |
if (false !== strpos($link,$self)) | |
unset($links[$link]); | |
} | |
} | |
add_action('pre_ping','remove_self_pinging',0,2); | |
/* END REMOVE SELF PINGING */ |
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 | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
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
branch=$(git rev-parse --symbolic --abbrev-ref $1) | |
branch=$(echo $1 | awk -F'/' '{print $3}') | |
if [ ! -f $1 ]; then | |
echo "Branch $branch was deleted! Do something then.." | |
else | |
echo "Branch $branch was updated! Do something then.." | |
fi |
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
if [ `git rev-parse --abbrev-ref HEAD` == "development" ]; then | |
echo "development-script" | |
elif [ `git rev-parse --abbrev-ref HEAD` == "staging" ]; then | |
echo "staging-script" | |
elif [ `git rev-parse --abbrev-ref HEAD` == "production" ]; then | |
echo "production-script" | |
fi |
OlderNewer