git help
Initialize Git:
git init
Get everything ready to commit:
| <? | |
| function kprint($string){ | |
| echo '<pre>'; | |
| print_r($string); | |
| echo '</pre>'; | |
| } | |
| ?> |
| public function postDispatch(){ | |
| $type = $this->_feed_params['type']; | |
| $js_include = StylaUtils::getJsEmbedCode($this->_username, $this->_snippet_url); | |
| $ret = null; | |
| $path = StylaUtils::getCurrentPath($this->_base_dir); | |
| //disabling call to SEO API | |
| //$ret = StylaUtils::getRemoteContent($this->_username, $path, $this->_url_query_params, $this->_source_url); |
| {extends file='parent:frontend/custom/index.tpl'} | |
| {block name='frontend_index_header'} | |
| {include file='frontend/magazin/header.tpl'} | |
| {/block} | |
| {block name="frontend_index_content_left"} | |
| <style> | |
| #gLeft { display:none; } |
| {extends file='parent:frontend/custom/index.tpl'} | |
| {block name='frontend_index_header'} | |
| {include file='frontend/magazin/header.tpl'} | |
| {/block} | |
| {* Sidebar left *} | |
| {block name='frontend_index_content_left'} | |
| {$smarty.block.parent} | |
| <style> |
| //connect to VPN | |
| wg-quick up prod | |
| //turn off | |
| wg-quick down prod |
| <!-- embed a single area --> | |
| <div id="stylaMagazine" data-area="fashion"></div> | |
| <script src="https://client-scripts.styla.com/scripts/clients/your-brand.js" async="" type="text/javascript" xml="space"></script> | |
| <!-- end --> | |
| <!-- embed multiple areas in the same page --> | |
| <!-- this goes in <head> --> | |
| <script src="http://client-scripts.styla.com/scripts/clients/your-brand.js" async type="text/javascript"></script> |
| const map = new Map([[1, 'one'][2, 'two']]) | |
| map.forEach(val => { | |
| console.log(val) | |
| } |
| @mixin fullHeigtWithoutBottomInset { | |
| height: 100vh; | |
| @supports (height: -webkit-fill-available) { | |
| height: -webkit-fill-available; | |
| } | |
| } |
| # to encrypt | |
| openssl enc -aes-256-cbc -a -salt -in file.txt -out file.enc | |
| # to decrypt | |
| openssl enc -d -aes-256-cbc -a -in file.enc -out file.txt |