-
Notifications
You must be signed in to change notification settings - Fork 0
madjestic/home
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Quick notes: ### VIM TIPS ### 1) <Ctrl>+l to switch off highlights in vim 2) ds" - to remove "" around a word 3) \\cc - comment out 3.5) \\cu - uncomment 4) cs]} - surround with {} 5) :%s/foo/bar/g - exchange all instances of foo with bar 6) ctrl+R - redo 2) Start ghci with gloss, so that it does not hang: ghci -fno-ghci-sandbox ### SYSTEMA MAINTENANCE ### 3) UPDATE PORTAGE: Emerge --sync emerge --update --deep --with-bdeps=y --newuse world emerge --update --deep --newuse world # delete unused dependencies: emerge --depclean # rebuild missing dependencies # revdep-rebuild revdep-rebuild -ip ### Kernel Upgrade### # copy old config make oldconfig make && make modules_install cp ./arch/x86/boot/bzImage /boot/kernel-3.10.7-gentoo # edit /boot/grub/grub.conf # eselect: eselect kernel list eselect kernel set 1 ### EMACS TIPS ### # turn off line-wrapping: M-x toggle-truncate-lines ### MISC ### 4) Find out your own IP: wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' 5)check running services: rc-status 6)make ghc keep intermediary files: it will create (won't delete technically) /tmp/ghc${pid} with intermediate files ghc -keep-tmp-files foo.hs ### PYTHON ### python ### python -m cProfile foo.py # iptables /etc/init.d/iptables /etc/conf.d/iptables ### GIT ### http://git-scm.com/book/en/Git-on-the-Server-Hosted-Git # add all files in git add ./Projects # commit added files git commit -a # write the changes git push ### XMONAD ### # application fast start # WINDOWS button is the one with the MSWindows logo on it WINDOWS-p ### EMACS ### ## CPP # Enable semantic auto-complete (?) semantic-complete-self-insert # Browses the local document with your browser. On a module import line, the document of the module is browsed. On a function or type, its document is browsed. M-C-d # Envoke help on a topic: C-h f iedit-mode <RET> # Assigning keys (global-set-key (kbd "C-c a") 'doodlebug) # not sure what it is but may be useful: (lookup-key (current-global-map) (kbd "C-c a")) # Turn on/off line breaks: (toggle-truncate-lines)
About
/~ /etc /usr/src init scripts and configs
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published