Skip to content

Instantly share code, notes, and snippets.

View prayagupa's full-sized avatar
💭
Neta

Prayag prayagupa

💭
Neta
View GitHub Profile
@prayagupa
prayagupa / grails_emacs.md
Last active February 8, 2017 19:26
emacs for grails

0

prayag@Prayag:~/workspace_grails$ cp emacs-grails-mode/*.* /usr/share/emacs23/site-lisp/

prayag@Prayag:~/workspace_grails$ ls -l /usr/share/emacs23/site-lisp/
total 36
lrwxrwxrwx 1 root root    39 Feb  5 15:21 debian-startup.el -> ../../emacs/site-lisp/debian-startup.el
-rw-r--r-- 1 root root  3013 Feb  5 15:21 debian-startup.elc
drwxr-xr-x 2 root root  4096 Feb  5 15:21 dictionaries-common
@prayagupa
prayagupa / gwt_on_grails.md
Last active December 12, 2015 09:09
gwt_on_grails

Create-app

prayag@Prayag:~/workspace_grails/school$ grails run-app
| Resolving plugin JAR dependencies.....
> You currently already have a version of the plugin installed [resources-1.1.6]. Do you want to update to [resources-1.2.RC2]? [y,n] n
| Compiling 11 source files

| Compiling 149 source files
Note: Some input files use unchecked or unsafe operations.
syntax enable
set background=dark
let g:solarized_termcolors= 16
let g:solarized_termtrans =16
let g:solarized_contrast = "high"
let g:solarized_visibility= "high"
colorscheme solarized
execute pathogen#infect()
@prayagupa
prayagupa / 1.1-network_networkspace.md
Last active September 13, 2021 21:37
linux network, ping, netstat, iptables, route

mac

private IP

$ ipconfig getifaddr en0
192.168.0.11
prayag@Prayag:~$ cat /proc/swaps
Filename Type Size Used Priority
/dev/sda5 partition 2928636 1365180 -1
http://askubuntu.com/a/159792/37643
prayag@Prayag:~$ swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 2928636 810536 -1
Spring-GWT i18n
[1] How do you enable LocaleInterceptor to change the locale in spring-security login page?, http://stackoverflow.com/questions/5244776/how-do-you-enable-localeinterceptor-to-change-the-locale-in-spring-security-logi
/**
* Spring conf
*/
<!-- controllers.xml -->
<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
<property name="paramName" value="lang" />
prayag@Prayag:~/workspace_erujopmoc/korma-lobos-tpl$ lein repl
REPL started; server listening on localhost port 11138
korma-lobos-tpl.server=> (use 'lobos.core 'lobos.connectivity 'lobos.migration 'lobos.config 'lobos.migrations)
(open-global sqldb)
(migrate)
(use 'korma-lobos-tpl.entities.users)
(create-new-user "WARNING: alter already refers to: #'clojure.core/alter in namespace: korma-lobos-tpl.server, being replaced by: #'lobos.core/alter
WARNING: drop already refers to: #'clojure.core/drop in namespace: korma-lobos-tpl.server, being replaced by: #'lobos.core/drop
WARNING: complement already refers to: #'clojure.core/complement in namespace: korma-lobos-tpl.server, being replaced by: #'lobos.migration/complement
WARNING: alter already refers to: #'clojure.core/alter in namespace: lobos.config, being replaced by: #'lobos.core/alter
prayag@Prayag:~/workspace_erujopmoc/korma-lobos-tpl$ lein repl
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at jline.ConsoleRunner.main(ConsoleRunner.java:69)
Caused by: java.lang.Exception: Couldn't connect (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5391)
$ lsPCI
05:00.0 Network controller: Broadcom Corporation BCM43225 802.11b/g/n (rev 01)
prayag@prayag:~$ lsmod
Module Size Used by
rfcomm 38139 0
parport_pc 32114 0
ppdev 12849 0