Skip to content

Instantly share code, notes, and snippets.

View rahogata's full-sized avatar

Shivakumar K R rahogata

View GitHub Profile
@rahogata
rahogata / freebsd13_rsearch_build.md
Last active June 28, 2025 14:30
Build redisearch module in freebsd 13

Install build dependencies

pkg install -y bash wget git cmake gmake gcc11 pkgconf python311 py311-pipenv py311-pip openssl

Clone a specific release

git clone --branch v2.8.15 --depth 1 --recursive https://github.com/RediSearch/RediSearch.git
@rahogata
rahogata / freebsd13_rjson_build.md
Last active June 25, 2025 08:33
Build redisjson module in freebsd 13

Install build dependencies

  • LLVM : 20+
  • Rust : latest
pkg install -y curl bash devel/llvm-devel

curl https://sh.rustup.rs -sSf > rustup.sh
@rahogata
rahogata / PalindromeCheck.java
Last active July 20, 2023 19:12
Palindrome problem solution using checksum for large string.
import java.io.*;
import java.util.*;
import java.util.stream.Collectors;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.nio.charset.StandardCharsets;
import java.math.BigInteger;
public class PalindromeCheck {
@rahogata
rahogata / application-sibling.yaml
Created April 5, 2023 11:43
Create application.yaml for unit tests, avoiding copy of main application.yaml.
service.doc:
dest-directory: file:./service-files
temp-dir: file:./service-files/service-temp-dir
service.storage.location: ./ssfiles
@rahogata
rahogata / build.gradle
Last active June 15, 2024 15:56
Exclude node_modules in eclipse project through gradle build tool.
eclipse {
project {
resourceFilter {
appliesTo = 'FOLDERS'
type = 'EXCLUDE_ALL'
recursive = false
matcher {
id = 'org.eclipse.ui.ide.multiFilter'
arguments = '1.0-name-matches-false-false-node_modules'
}
@rahogata
rahogata / git-configs.txt
Created March 21, 2021 07:21
Git configuration files
# ~/.gitconfig
# Simple git configuration with global ignore file.
[user]
name = rahogata.*
email = rahogata.*@**.com
useConfigOnly = true
[core]
excludesfile = /home/rahogata/.gitignore_global
editor = vi
[push]
@rahogata
rahogata / .vimrc
Created March 17, 2021 10:36
Vim configuration file.
syntax enable
set number
set tabstop=4
set smartindent
set shiftwidth=4
set expandtab
set backspace=indent,eol,start
au BufNewFile,BufRead Jenkinsfile setf groovy
/**
*
*/
package com.rahogata.demowebapp;
import java.lang.reflect.Field;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
package com.rahogata.demowebapp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
@rahogata
rahogata / postfix_setup
Last active August 19, 2017 06:11
Install Postfix and minimal setup (not completely automated).
#!/bin/sh
# Name: postfix_setup
# Description: Install and minimal configure postfix.
# Args: $1 -> FQDN
# Pre-requisites:
# Add FQDN as host name in /etc/hosts with format Eg: mail.domain.com
# where mail is your host name and domain.com is your domain name.
# If required change /etc/hostname and reboot.
# Eg. /etc/hosts
# 127.0.1.1 mail.domain.com mail