git help
Initialize Git:
git init
Get everything ready to commit:
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <folder_path>" | |
exit 1 | |
fi | |
generate_id() { | |
echo $(( RANDOM % 1000 + 1 )) | |
} |
# to split the file | |
split -l 100000 -d filename.csv file_ | |
# to add the csv extension to each of the files | |
for i in $(find file_*); do mv $i "$i.csv"; done | |
# to put the header from the first file into each of the other files | |
for i in $(find . -type f -name "file_*.csv" -not -name "file_00.csv"); | |
do echo -e "$(head -1 file_00.csv)\n$(cat $i)" > $i; | |
done |
# 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 |
@mixin fullHeigtWithoutBottomInset { | |
height: 100vh; | |
@supports (height: -webkit-fill-available) { | |
height: -webkit-fill-available; | |
} | |
} |
const map = new Map([[1, 'one'][2, 'two']]) | |
map.forEach(val => { | |
console.log(val) | |
} |
<!-- 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> |
//connect to VPN | |
wg-quick up prod | |
//turn off | |
wg-quick down prod |
{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> |
{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; } |