Skip to content

Instantly share code, notes, and snippets.

View maximzhurkin's full-sized avatar
🏠
Working from home

Max Zhurkin maximzhurkin

🏠
Working from home
View GitHub Profile
@maximzhurkin
maximzhurkin / wikijs.md
Last active May 29, 2024 14:54
Install wiki.js on ubuntu

1. Install node & nginx

sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt install nodejs
sudo apt install nginx

2. Setup mysql

sudo apt install mysql-server
<?xml version="1.0" encoding="UTF-8"?>
<offers>
<offer>
<!-- Уникальный идентификатор товара -->
<product_id>2bc2a63f-7811-11e7-80ba-d89d676f8619</product_id>
<!-- Цена товара -->
<price>371</price>
<!-- По реквизиту распродажа самая высокая цена за год -->
<max_price>385</max_price>
<!-- Остатки товара -->
@maximzhurkin
maximzhurkin / extends.pug
Created September 12, 2020 23:03
pug extends "Only named blocks and mixins can appear at the top level of an extending template"
//- layout.pug
block data
- const title = '';
- const heading = '';
html
head
title= title
body
block body
SELECT `column` FROM `table` GROUP BY 1 HAVING COUNT(*) > 1;
du -h --max-depth=1
// Get name disk
diskutil list
// Get supported file systems
diskutil listFilesystems
// Format
diskutil eraseVolume "MS-DOS FAT16" YOUOUTPUTNAME YOUDISKNAME
mpv --ytdl-format=43 --playlist ~/filename.pls --playlist-start=42
# On
$ defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock
# Off
$ defaults delete com.apple.dock autohide-time-modifier;killall Dock
sudo killall VDCAssistant