Skip to content

Instantly share code, notes, and snippets.

@alexsuslov
alexsuslov / net.sh
Last active November 25, 2015 15:03
#!/bin/bash
cat <<EOF
Настройка подсети для умных вещей
- интерфейс WLAN0
- DHCP (192.168.254.0)
EOF
read -p "Настроить сеть(y/n)? " -n 1 -r
#!/bin/bash
cat <<EOF
Настройка брокера MOSQUITTO для умных вещей
EOF
read -p "Настроить MOSQUITTO(y/n)? " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
#!/bin/bash
cat <<EOF
Настройка HOSTAPD для RT5370
- интерфейс WLAN0
- DHCP (192.168.254.0)
EOF
read -p "Настроить HOSTAPD (y/n)? " -n 1 -r
@alexsuslov
alexsuslov / hack.sh
Created January 19, 2014 07:21 — forked from DAddYE/hack.sh
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions: