/shell

Some shell scripts to get up and running

Primary LanguageShell

shell

Some shell scripts to get things up and running. As ususal you'll be on your own if things go bad.

could be invoked as bash <(curl https://raw.githubusercontent.com/eflukx/shell/master/rbenv_node.sh)

(rbenv_node script doesn't work correctly without user intervention due to env reloads, sorry no time to fix.)

Passwordless sudoing (Ubuntu):

add %sudo<->ALL=(ALL:ALL) NOPASSWD: ALL to /etc/sudoers

Allowing zeroconf/bonjour/mDNS via iptables:

iptables -A INPUT  -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
iptables -A OUTPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT

Prompt with git

PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\e[0;36m\w\e[0;33m$(__git_ps1 " [%s]")\e[0m$ '