Skip to content

Instantly share code, notes, and snippets.

skazhikadyadya

Block or report user

Report or block skazhikadyadya

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
@skazhikadyadya
skazhikadyadya / magento.stpl
Created Sep 22, 2019 — forked from hidonet/magento.stpl
vestacp magento nginx template
View magento.stpl
# Template Updated At 2019-04-17
upstream php_backend_%domain_idn%_%web_ssl_port% {
server %backend_lsnr%;
#server %backend_lsnr% backup;
}
server {
listen %ip%:%web_ssl_port%;
server_name %domain_idn% %alias_idn%;
@skazhikadyadya
skazhikadyadya / Mac Keyboard Symbols.md
Created Jun 21, 2019 — forked from Zenexer/Mac Keyboard Symbols.md
List of Mac/Apple keyboard symbols
View Mac Keyboard Symbols.md

Common symbols

Modifiers

When a key combination is displayed, the modifiers are written in the order presented here. For example, Control + Option + Shift + Command + Q would be written as ⌃⌥⇧⌘Q.

Sym Key Alt
Control
Option
@skazhikadyadya
skazhikadyadya / media-query.css
Created Jun 14, 2019 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
View sanfrancisco-font.css
/** WARNING - USE AT OWN RISK */
/** IT IS AGAINST APPLE'S POLICY TO USE SF PRO FOR ANYTHING OTHER THAN iOS/tvOS/macOS/watchOS DESIGN & DEVELOPMENT */
/** https://sf.abarba.me/LICENSE.pdf */
/** 1. Copy/import this file into your main css/scss file */
/** 2. Change css font-family: to "SF Text", "SF Display" or "SF Mono" */
/** 3. Apply font-weight or italic to html elements */
/** THANK YOU */
/** I host these fonts on Cloudfront with SSL in all AWS regions for the best performance and reliability */
View gist:3d637416a3ef2a6662a6ee1dd5044c1b
location ^~ /wp-content/ {
location ~ /wp-content/[^/]*\.php$ {
return 404;
}
location ~ /wp-content/uploads/.+\.php$ {
return 404;
}
}
View gist:743c50a428305ad2ade44e5795d0f8df
location ~ .(gif|png|jpeg|jpg|svg)$ {
expires max;
valid_referers none blocked ~.google. ~.bing. ~.yahoo. domain.com *.domain.com;
if ($invalid_referer) {
expires -1;
return 302 /nohotlinking.jpg;
}
}
location = /nohotlinking.jpg {}
View gist:c7b125a0ee4eb5bafd55f80e5d593aa4
location ~* /wp-includes/.*.php$ {
deny all;
access_log off;
log_not_found off;
}
location ~* /wp-content/.*.php$ {
deny all;
access_log off;
log_not_found off;
}
View gist:9fe16abf4cf880683204cd6b922c7f8e
function my_phpmailer_init(&$pm)
{
$pm->Sender = 'no-reply@domain.com';
}
add_action('phpmailer_init', 'my_phpmailer_init');
View gist:64b37df34cd78da80722a7a100189c29
#!/bin/sh
mkdir -p ~/.vim/syntax/
cd ~/.vim/syntax/
wget http://www.vim.org/scripts/download_script.php?src_id=19394
mv download_script.php\?src_id\=19394 nginx.vim
cat > ~/.vim/filetype.vim <<EOF
au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif
EOF
@skazhikadyadya
skazhikadyadya / EE-TO-CE_Downgrade
Created Sep 5, 2017 — forked from ProxiBlue/EE-TO-CE_Downgrade
Downgrade script for magento EE to CE
View EE-TO-CE_Downgrade
#!/bin/bash
#first param = db user, second param = db name
rm -rf app/code/core/Enterprise
rm -rf downloader/template/enterprise
rm -rf app/design/install/default/enterprise
rm -rf app/design/frontend/enterprise
rm -rf app/design/adminhtml/default/default/layout/enterprise
rm -rf app/design/adminhtml/default/default/template/enterprise
You can’t perform that action at this time.