Skip to content

Instantly share code, notes, and snippets.

View artembeloglazov's full-sized avatar
🚴

Artem Beloglazov artembeloglazov

🚴
View GitHub Profile
@artembeloglazov
artembeloglazov / 0_reuse_code.js
Last active September 1, 2015 08:34
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@artembeloglazov
artembeloglazov / qemu-ifdown
Last active August 4, 2020 07:32 — forked from EmbeddedAndroid/qemu-ifup
Mac OSX (10.8.X) scripts for QEMU/KVM bridged networking with nat on en1.
#!/bin/bash
echo "Executing /etc/qemu-ifdown"
echo "Bringing TAP interface down"
ifconfig $1 down
echo "Removing interfaces"
ifconfig bridge0 deletem en1 deletem $1
echo "Bring down bridge"
ifconfig bridge0 down
echo "Removing bridge"
ifconfig bridge0 destroy