Skip to content

Instantly share code, notes, and snippets.

View vpolimenov's full-sized avatar
🧙‍♂️

vpolimenov

🧙‍♂️
View GitHub Profile
@vpolimenov
vpolimenov / update_hosts.sh
Created May 19, 2022 10:11
Update /etc/hosts
#!/bin/bash
# put a command > /tmp/file_to_read.txt
sudo sed -i '/# start here/,/# stop here/d' /etc/hosts
sudo awk '/# start here/{print;flag=1;next}/# stop here/{print;flag=0}flag' /tmp/file_to_read.txt >> /etc/hosts
@vpolimenov
vpolimenov / file.js
Last active September 17, 2021 10:59
window.onload = function() {
alert(123)
}