Repo cleanup

This commit is contained in:
Austen Adler 2016-07-26 23:06:22 -04:00
parent be547b2bf6
commit ffa25ac356
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1
17 changed files with 30 additions and 241 deletions

13
applications/wemux.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
SUDO=""
if command -v sudo 2>&1 /dev/null; then
SUDO="$(where sudo)"
fi
echo "Installing wemux..."
test -d /usr/local/share/wemux || $SUDO git clone git://github.com/zolrath/wemux.git /usr/local/share/wemux && $SUDO git --git-dir=/usr/local/share/wemux pull
$SUDO rm -r /usr/local/bin/wemux /usr/local/etc/wemux.conf
$SUDO ln -s /usr/local/share/wemux/wemux /usr/local/bin/wemux
$SUDO mkdir -p /usr/local/etc
$SUDO cp /usr/local/share/wemux/wemux.conf.example /usr/local/etc/wemux.conf
printf 'options="-u2"\n' | $SUDO tee -a /usr/local/etc/wemux.conf >/dev/null
printf "host_list=(root $USER)\n" | $SUDO tee -a /usr/local/etc/wemux.conf >/dev/null

View File

@ -170,7 +170,7 @@ exec --no-startup-id "zsh -c 'xrandr --output LVDS1 --primary || xrandr --output
exec --no-startup-id "~/.i3/run.sh wall"
# Keyboard
exec --no-startup-id xmodmap ~/.xmodmap
exec --no-startup-id /home/stonewareslord/xmodmap.sh
exec --no-startup-id ~/xmodmap.sh
# Misc
exec --no-startup-id i3-msg 'workspace 1; exec /usr/bin/urxvtc'
exec --no-startup-id /usr/bin/shutter --min_at_startup

View File

@ -1,56 +0,0 @@
#synapse
#IN STARTUP ITEMS: gtk-redshift -l 36.3:-80.3 -t 6500:4000
#sudo add-apt-repository ppa:caffeine-developers/ppa;update;install caffeine
#variety
#openjdk7-jre
#python3.2
#ffmpeg
#owncloud-client
synaptic
python-glade2
compiz-plugins-extra
compizconfig-settings-manager
ntp
cplay
ubuntu-restricted-extras
gparted
mysql-workbench
wireshark
unetbootin
#exiv2
xdotool
htop
#wicd-daemon
#wicd-curses
kvpnc
sqlitebrowser
lsb
python-tk
xinit
suckless-tools
pm-utils
alsa-utils
numlockx
#virtualbox
x11vnc
xvnc4viewer
ntop
powermanagement-interface
mpd mpc ncmpcpp
# Standard Desktop Applications
#firefox thunderbird
meld filezilla
audacity vlc gimp winff blender banshee kdenlive
libnotify-bin xterm xdm i3-wm i3status i3lock feh nitrogen xautolock
libreoffice libreoffice-templates gnome-dictionary shutter
diodon synergy
ark thunar okular tdfsb baobab
gtk-redshift
network-manager
midori
k3b
icedtea-7-plugin
systemsettings
gtk-theme-switch
qtcurve

View File

@ -1,30 +0,0 @@
sudo
lynx-cur
unzip
curl
wget
parted
openssh-server
python-pip
screen
sshfs
tmux
git
lm-sensors
openvpn
nload
zsh
trash-cli
multitail
gdebi
libpam-google-authenticator
macchanger
sshuttle
w3m
aircrack-ng
pv
tshark
secure-delete
ncdu
nmap
traceroute

View File

@ -1,12 +0,0 @@
argparse
twisted
matplotlib
numpy
tornado
mps-youtube
# Swap monitors
i3-py
# Go to window
quickswitch-i3
# https://github.com/nojhan/colout
colout

View File

@ -1,5 +0,0 @@
ppa:vincent-c/ponysay
ppa:danielrichter2007/grub-customizer
ppa:jerzy-kozera/zeal-ppa
ppa:glennric/dolphin-emu
ppa:byteit101/frc-toolchain

View File

@ -1,81 +0,0 @@
#sudo add-apt-repository ppa:vincent-c/ponysay
sudo
software-properties-common
tasksel
#tasksel install lamp-server
bum
openssh-server
lynx-cur
unzip
curl
wget
parted
#libpython2.6
python-simplejson
#vim Gotta compile this manually now...
python-pip
subversion
orpie
aptitude
screen
tmux
git
#ffmpeg
sshfs
wine
bum
alien
lm-sensors
openvpn
autojump
nload
sox
libsox-fmt-mp3
multitail
zsh
cups-pdf
trash-cli
irssi
mutt
gdebi
ncdu
nmap
traceroute
openjdk-7-jdk
fdupes
libssl-dev
libavahi-client-dev
libasound2-dev
libpam-google-authenticator
iodine
macchanger
#mysql-server
#apache2
#php5
#php5-gd
#php5-curl
#php-soap
#php5-json
#php5-gd
#php-soap
#libapache2-mod-php5
node
npm
bsdgames
sshuttle
nethogs
#w3m
aircrack-ng
tshark
secure-delete
fsniper
cryptsetup
pv
mplayer
minimodem
hfsutils
hfsprogs
vifm
git-annex
ranger
pwgen

View File

@ -1,50 +1,21 @@
ABSPATH=$(\cd "$(dirname "$0")/.."; pwd)
echo $ABSPATH
while getopts ":hbsdpcw" VALUE "$@"; do
while getopts ":shbc" VALUE "$@"; do
if [ "$VALUE" = "h" ] ; then
echo "sync.sh syncs configuration files, applications, and Vim bundles between computers"
echo " -h Shows this help"
echo " -b Syncs Vim bundles"
echo " -s Syncs computer with server applications in server.txt"
echo " -d Syncs computer with desktop applications in desktop.txt"
echo " -p Syncs computer with pip applications in pip.txt"
echo " -c Syncs other configuration files"
echo " -w Installs wemux [requires vim]"
echo " -s Use this if you don't want custom stonewareslord settings (use after -s)"
echo " -c Sync configuration files"
fi
if [ "$VALUE" = "s" ] ; then
sed -i'' -e '/email = stonewareslord@gmail.com/d' -e '/user = Austen Adler/d' -e '/\[user\]/d' -e '/signingkey = CCDFE3F1/d' ~/.gitconfig
fi
if [ "$VALUE" = "b" ] ; then
trash ~/.vimrc || rm ~/.vimrc
ln -s $ABSPATH/vim/vimrc ~/.vimrc
vim +"silent! call Initialize()" +q
fi
if [ "$VALUE" = "s" ] ; then
if [ "$(uname)" != "Darwin" ]; then
echo "Installing server applications:"
echo $(grep -vE "^\s*#" $ABSPATH/scripts/server.txt | tr "\n" " ")
sudo apt-get install $(grep -vE "^\s*#" $ABSPATH/scripts/server.txt | tr "\n" " ")
else
if [ -d "/usr/local/Library/Taps/phinze/homebrew-cask" ] ; then
brew install caskroom/cask/brew-cask
brew cask
fi
brew cask install gimp inkscape adium vlc iterm2 steam adobe-reader spectacle xquartz
fi
fi
if [ "$VALUE" = "d" ] ; then
echo "Installing desktop applications"
if [ "$(uname)" != "Darwin" ]; then
echo $(grep -vE "^\s*#" $ABSPATH/scripts/server.txt | tr "\n" " ") $(grep -vE "^\s*#" $ABSPATH/scripts/desktop.txt | tr "\n" " ")
sudo apt-get install $(grep -vE "^\s*#" $ABSPATH/scripts/server.txt | tr "\n" " ") $(grep -vE "^\s*#" $ABSPATH/scripts/desktop.txt | tr "\n" " ")
else
brew install macvim --with-cscope --with-lua --HEAD
brew install vim --with-lua
brew install ncdu htop youtube-dl tree sshfs ircii imagemagick node ffmpeg wget lua libconfig readline meld
fi
fi
if [ "$VALUE" = "p" ] ; then
echo "Installing pip applications"
echo $(grep -vE "^\s*#" $ABSPATH/scripts/pip.txt | tr "\n" " ")
sudo pip install $(grep -vE "^\s*#" $ABSPATH/scripts/pip.txt | tr "\n" " ")
fi
if [ "$VALUE" = "c" ] ; then
if [ "$2" = "-f" ] ; then
# Reinstall antigen
@ -103,19 +74,10 @@ while getopts ":hbsdpcw" VALUE "$@"; do
mkdir -p ~/.config/synapse
ln -s $ABSPATH/i3/gtkrc ~/.config/synapse/gtkrc
ln -s $ABSPATH/shells/Xresources ~/.Xresources
xrdb ~/.Xresources
if command -v xrdb 2>&1 >/dev/null; then
xrdb ~/.Xresources
fi
fi
fi
if [ "$VALUE" = "w" ] ; then
echo "Installing wemux..."
sudo git clone git://github.com/zolrath/wemux.git /usr/local/share/wemux
sudo rm -r /usr/local/bin/wemux
sudo rm -r /usr/local/etc/wemux.conf
sudo ln -s /usr/local/share/wemux/wemux /usr/local/bin/wemux
sudo mkdir -p /usr/local/etc
sudo cp /usr/local/share/wemux/wemux.conf.example /usr/local/etc/wemux.conf
sudo vim `which wemux` +"execute \"normal gg/tmux\<CR>nnnea -2\<Esc>nea -2\<Esc>ggZZ\""
sudo vim /usr/local/etc/wemux.conf +":execute \"normal gg/host_list\<CR>nnww\""
fi
done
echo "Done syncing"

View File

@ -1,4 +1,2 @@
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/stonewareslord/tmp/ucpp/ucpp/:/home/stonewareslord/tmp/ucpp/ucpp/:/home/stonewareslord/hitchhikers/bin/ucpp/ucpp:/home/stonewareslord/hitchhikers/bin/ucpp/ucpp
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PS1="$ "
[ -f ~/.fzf.bash ] && source ~/.fzf.bash

View File

@ -255,9 +255,9 @@ ctar(){
}
offline(){
if [ ! -z "$@" ] ; then
sudo unshare -n -- sudo -u stonewareslord zsh -c "$@"
sudo unshare -n -- sudo -u $USER zsh -c "$@"
else
sudo unshare -n -- sudo -u stonewareslord LP_MARK_PREFIX=" $(tput setaf 1)(offline)$(tput sgr0) " zsh
sudo unshare -n -- sudo -u $USER LP_MARK_PREFIX=" $(tput setaf 1)(offline)$(tput sgr0) " zsh
fi
}
dnstest(){
@ -455,8 +455,7 @@ fi
#if command -v greadlink 2>&1 >/dev/null; then
# alias readlink='greadlink'
#fi
#alias adk='/home/stonewareslord/Applications/adk/bin/studio.sh & disown'
#alias steamo='sudo kill -9 `pidof steam`;sudo unshare -n -- sh -c "ifconfig lo up;sudo -u stonewareslord steam" > /dev/null 2>&1 & disown'
#alias steamo='sudo kill -9 `pidof steam`;sudo unshare -n -- sh -c "ifconfig lo up;sudo -u $USER steam" > /dev/null 2>&1 & disown'
#alias bat='upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep -E "state|to\ full|percentage"'
#alias aoeu='setxkbmap -layout us -option "'
#alias asdf='setxkbmap -layout dvorak -option ""'

View File

@ -213,7 +213,7 @@ let g:formatter_php = ['formatdef_my_custom_php']
" These flags don't work for some reason
" -xn -xc -xl -S
"Syntastic
let g:syntastic_java_javac_classpath = "/home/stonewareslord/applications/java/junit-4.12.jar:/home/stonewareslord/applications/java/hamcrest-core-1.3.jar:~/wpilib/java/current/lib/WPILib.jar:~/wpilib/java/current/lib/NetworkTables.jar:~/git/ford-java/src"
let g:syntastic_java_javac_classpath = "~/applications/java/junit-4.12.jar:~/applications/java/hamcrest-core-1.3.jar:~/wpilib/java/current/lib/WPILib.jar:~/wpilib/java/current/lib/NetworkTables.jar:~/git/ford-java/src"
"IndentGuides
let g:indent_guides_start_level=1
let g:indent_guides_guide_size=1

View File

@ -7,11 +7,12 @@ secure_ssh() {
echo "Copying script over..."
ssh $* 'cat > /tmp/script.sh' <<'EOF'
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
sed -ri'' 's/^(\s*IgnoreRhosts\s)/#\1/gI' /etc/ssh/sshd_config
sed -ri'' 's/^(\s*Protocol\s)/#\1/gI' /etc/ssh/sshd_config
sed -ri'' 's/^(\s*UseDNS\s)/#\1/gI' /etc/ssh/sshd_config
sed -ri'' 's/^(\s*PermitEmptyPasswords\s)/#\1/gI' /etc/ssh/sshd_config
sed -ri'' 's/^(\s*PermitRootLogin\s)/#\1/gI' /etc/ssh/sshd_config
(echo -e "Protocol 2\nUseDNS no\nPermitEmptyPasswords no\nPermitRootLogin no";cat /etc/ssh/sshd_config)>/tmp/sshd_config
(echo -e "Protocol 2\nUseDNS no\nPermitEmptyPasswords no\nPermitRootLogin no\nIgnoreRhosts yes";cat /etc/ssh/sshd_config)>/tmp/sshd_config
mv /tmp/sshd_config /etc/ssh/sshd_config
diff -urN /etc/ssh/sshd_config.bak /etc/ssh/sshd_config
sshd -t