Skip to content

Instantly share code, notes, and snippets.

View rajcspsg's full-sized avatar

RAJKUMAR NATARAJAN rajcspsg

View GitHub Profile
@rajcspsg
rajcspsg / latest neotree config
Created January 29, 2024 01:30
latest neotree config
local Icons = {
diagnostics = {error = "", warn = "", hint = "", info = ""},
git = {
added = "",
modified = "",
removed = "",
renamed = "➜",
untracked = "",
ignored = "",
unstaged = "U",
@rajcspsg
rajcspsg / myip-address
Created September 5, 2023 01:28
myip-address
$ ifconfig -a
br-2c31ed7ae23b: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.20.0.1 netmask 255.255.0.0 broadcast 172.20.255.255
ether 02:42:5d:51:1e:99 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
br-39c7e0e3f91c: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
@rajcspsg
rajcspsg / 1
Last active June 17, 2023 06:25
lem install error
➜ lem git:(main) ✗ ros run -- --version
SBCL 2.3.2
➜ lem git:(main) ✗ ros -e '(uiop:println (ql:where-is-system :log4cl))'
/home/raj/.roswell/lisp/quicklisp/dists/quicklisp/software/log4cl-20211209-git/
@rajcspsg
rajcspsg / System Crafters - structural editing
Created May 22, 2023 03:47
System Crafters - structural editing
<h1> <b> <center> Paredit </center></b> </h1>
|---------------------------------------------------------------------------------------------------|
|Shortcut | Description |
|-----------|---------------------------------------------------------------------------------------|
| C-M-u |Moves the cursor one level up to parent form |
| C-M-k |Kills the whole form |
| DEL |deletes the character before the cursor |
| C-d |deletes the next character after the cursor |
| C-M-\ |re-indent the form |
@rajcspsg
rajcspsg / youtube ingrim
Created September 22, 2022 22:27
Netty Error
Exception in thread "main" java.lang.UnsupportedOperationException
at io.netty.channel.socket.nio.NioServerSocketChannel.doConnect(NioServerSocketChannel.java:178)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:248)
at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1342)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:548)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:533)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:517)
at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:978)
at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:265)
at io.netty.bootstrap.Bootstrap$3.run(Bootstrap.java:250)
@rajcspsg
rajcspsg / gist:98f5bf34093d751a41da7b85b75ac744
Created January 4, 2022 23:19
Latex for cheatsheet with verbatim
\documentclass[10pt,english,landscape]{article}
\usepackage{multicol}
\usepackage{calc}
\usepackage[landscape]{geometry}
\usepackage{color,graphicx,overpic}
\usepackage[T1]{fontenc}
\usepackage[bitstream-charter]{mathdesign}
\usepackage[utf8]{inputenc}
\usepackage{url}
alt + Enter --> evaluate current form
ctrl + -> --> move cursor one form right
ctrl + <- --> move cursor one form left
alt + shift + -> --> expand selection to one level outer
alt + shift + <- --> shrink selection to one level inner
ctrl + w -> select current form
@rajcspsg
rajcspsg / Navigation
Last active November 8, 2021 05:21
Vim
1. To move to the first line of the file - gg
2. to move to the Nth line of the file - Go to Normal Mode and then press :N
3. To move on charecter left H and one charecter right L
4. To move to the end of the line - $
5. To move to the beginning of the line - 0
6. shift I - in normal mode to insert mode and then insert from the beginning of the line.
7. Shift a - in normal mode to insert mode and then insert from the end of the line.
8. b - back one word and W front one word
9. f /char - move to the next charecter in the line
10. shift -h - to top of the file
Heap Dump Upload Servlet started - memory usage: 867.74mb
Heap Dump Upload Servlet completed - memory usage: 867.74mb
HDProcessServlet starting - memory usage: 908.7mb
Before invoking SuperPower - memory usage: 949.66mb
Reading heap dump...
85% (3213 objects/sec)ERROR: HPROF file already in 1.0.2 format.
java.io.IOException: HPROF file already in 1.0.2 format
at com.tier1app.heaphero.parser.hprofconverter.HprofConv.filterData(HprofConv.java:173)
at com.tier1app.heaphero.parser.hprofconverter.HprofConv.main(HprofConv.java:147)
at com.tier1app.heaphero.parser.SuperPowerInvoker.invokeAndroidHeapDump(SuperPowerInvoker.java:72)
set nocompatible
syntax on
set nu
filetype indent plugin on
set undofile
set undodir=~/.vim/undo/
nnoremap <silent> <F4> :set cursorline!<CR>