Permalink
Browse files

misc small changes after reinstall + new gprs config that does not wo…

…rk with bluetooth, only over usb
  • Loading branch information...
1 parent 56c77e8 commit a16cf32cae7c1d144e6f538e2454c5edbdab5731 @grosser committed Dec 31, 2009
Showing with 24 additions and 15 deletions.
  1. +1 −1 bash/alias
  2. +1 −0 bash/env
  3. +16 −11 bin/gprs
  4. +3 −1 gitconfig
  5. +2 −1 gitignore
  6. +1 −1 install.rb
View
2 bash/alias
@@ -7,7 +7,7 @@ alias l="ls -lah" #ls all+long+humanized filesizes
#Ubuntu
alias install="sudo apt-get install"
alias remove="sudo apt-get remove"
-alias mys="mysql -uroot -proot"
+alias mys="mysql -uroot"
# SVN
alias svn_add_new="svn st | egrep '^\?[ ]+' | sed -e 's|^?[ ]*||' | xargs -i svn add '{}'"
View
1 bash/env
@@ -1,5 +1,6 @@
export EDITOR="nano"
export PATH="/opt/ruby-enterprise/bin:~/bin:$PATH"
+export JDK_HOME="/usr/lib/jvm/java-6-sun/jre"
### HISTORY
# don't put duplicate lines in the history. See bash(1) for more options
View
27 bin/gprs
@@ -1,16 +1,21 @@
#!/usr/bin/env ruby
-#hcitool scan
-#00:12:EE:F9:96:2E ändert sich, ist die usb addresse
+# sudo wvdialconf
+# Add to /etc/wvdial.conf for Eplus:
+# Init3 = AT+CGDCONT=1,"IP","internet.eplus.de"
+# Phone = *99#
+# Password = gprs
+# Username = eplus
+# Others: http://wiki.ubuntuusers.de/UMTS_per_Mobiltelefon
-`sudo ifconfig eth0 down` #turn off network
-connect = "sudo wvdial k700"
-unless system(connect)
- system "sudo hcitool cc 00:12:EE:F9:96:2E"
- system "sudo rfcomm bind k700 00:12:EE:F9:96:2E"
-end
+# turn off other connections and start connecting
+`ifconfig eth0 down`
+Process.fork{ `wvdial` }
-system connect
+# if user Ctrl+c`s reconnect eth0
+Signal.trap :SIGINT do
+ `killall wvdial`
+ `ifconfig eth0 up`
+end
-#trap sigint oder so...
-system "sudo ifconfig eth0 up"
+Process.wait
View
4 gitconfig
@@ -10,11 +10,13 @@
pl = pull
ps = push
pls = "!git pull && git push"
+ pick = cherry-pick
unstage = reset HEAD --
+ uncommit = reset --soft HEAD^
amend = commit -a --amend
last = log -1 HEAD
unconflic = "!ruby -e \"require '~/dotfiles/ruby/git_cmds'; git_perform_on_st('\\s+unmerged', 'git reset #F;git co #F')\""
- rmmissing = "!ruby -e \"require '~/dotfiles/ruby/git_cmds'; git_perform_on_st('\\s+deleted', 'git rm #F')\""
+ rmdeleted = "!ruby -e \"require '~/dotfiles/ruby/git_cmds'; git_perform_on_st('\\s+deleted', 'git rm #F')\""
l = log --pretty=format:'%h %an %Cred%ar %Cgreen%s'
[apply]
View
3 gitignore
@@ -1,5 +1,6 @@
nbproject
.svn
pkg
+*.idea
*.cache
-*.log
+*.log
View
2 install.rb
@@ -5,7 +5,7 @@
#replace files through links
{
- '.bashrrc'=>'bashrc',
+ '.bashrc'=>'bashrc',
'.gitignore'=>'gitignore',
'.irbrc'=>'irbrc',
'.ssh/config'=>'ssh/config'

0 comments on commit a16cf32

Please sign in to comment.