Author Archives: bullgare

Online code editors

https://scrapfy.io — has go and js http://collabedit.com — has js

Online photo editor

Photoshop-like image editor https://www.photopea.com/

Turn off ads on MIUI

Turn off the following: 1. System application «Security»→coag sign→Receive recommendations 2. System application «Security»→Cleaner→Receive recommendations 3. System app «File manager»→ Settings→ About→Recommendations 4. System app «Downloads»→ three dots→ Settings→ Show recommended content 5. System app «Music»→ Settings→ Advanced Settings→Receive recommendations 6. System settings→ Additional settings→ Authorization & revocation→msa The same in Russian: https://4pda.ru/forum/index.php?act=findpost&pid=77282386&anchor=Spoil-77282386-1

docker simple starter

Build and run (on linux do not forget sudo): docker image build -t . docker container run —env «DOCKER=true» —env «NODE_ENV=test» —env «NODE_PORT=8000» —mount «type=bind,source=/etc/nginx/sites-enabled,target=/sites-enabled» —env «PATH_CONF=/sites-enabled» -p 8000:8000 —rm —name —network=host Login into container docker container exec -it bash

How to connect Synology to your UPS

They can be connected via USB like this: https://www.synology.com/en-us/knowledgebase/DSM/help/DSM/AdminCenter/system_hardware_ups

Simple online editor for javascript

Just paste it into navigation bar: data:text/html, <html><script>window.onbeforeunload = window.onunload = function(){return ‘Confirm page reload’;};</script><body><button onclick=»console.log(eval(document.querySelector(‘textarea’).value.replace(‘<div>’, ‘\n’).replace(‘</div>’, ‘\n’)))»>run</button><br><textarea style=»width:600px;height:400px»></textarea></body><script>document.querySelector(‘textarea’).focus();</script> It just outputs the result into console when you click run button. It’s simple and works. Because sometimes you just don’t need monsters like jsfiddle or jsbin.

How to setup mac time machine on synology nas

In russian, sorry. https://www.synology.com/ru-ru/knowledgebase/DSM/tutorial/Backup_Restore/How_to_back_up_files_from_Mac_to_Synology_NAS_with_Time_Machine

Pipeline view in shell

tail -f /var/log/nginx/access.log | pv —line-mode —rate > /dev/null https://serverfault.com/questions/473905/is-there-a-unix-linux-command-to-count-lines-per-second-from-stdin

grep, zgrep, less and zless regexp examples

Grep all files with mask: grep «regex to find» /var/log/lb-*.net/nginx/error.log Grep all zipped files with mask: zgrep «regex to find» /var/remote-log/nodejs-1*.net/node/error.log.* Less all files with mask: less /var/log/lb-*.net/nginx/error.log Grep all zipped files with mask: zless /var/remote-log/nodejs-1*.net/node/error.log.* Tail all files with mask: tail -f /var/log/lb-*.net/nginx/error.log

Search for occurencies in directory with grep

grep -rnw ‘/path/to/somewhere/’ -e ‘pattern’ https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux