Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…rk with bluetooth, only over usb
  • Loading branch information...
commit a16cf32cae7c1d144e6f538e2454c5edbdab5731 1 parent 56c77e8
Michael Grosser authored
2  bash/alias
View
@@ -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 '{}'"
1  bash/env
View
@@ -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
27 bin/gprs
View
@@ -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
4 gitconfig
View
@@ -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]
3  gitignore
View
@@ -1,5 +1,6 @@
nbproject
.svn
pkg
+*.idea
*.cache
-*.log
+*.log
2  install.rb
View
@@ -5,7 +5,7 @@
#replace files through links
{
- '.bashrrc'=>'bashrc',
+ '.bashrc'=>'bashrc',
'.gitignore'=>'gitignore',
'.irbrc'=>'irbrc',
'.ssh/config'=>'ssh/config'
Please sign in to comment.
Something went wrong with that request. Please try again.