Skip to content

Instantly share code, notes, and snippets.

View vraravam's full-sized avatar

Vijay Aravamudhan vraravam

  • ThoughtWorks Inc.
  • Chennai, India
  • X @avijayr1
View GitHub Profile
#!/usr/bin/env zsh
echo "line 1 --> ${A}"
export A="${A:-"asd"}"
echo "line 2 --> ${A}"
@vraravam
vraravam / crontab
Last active October 21, 2025 03:24
cron job template
# Reference: https://crontab.guru/
# Note: 'chronic' is a utility installed using 'moreutils' from homebrew and is needed so that a successful run of any cron job does not cause a mail to get generated
# Env
SHELL=/opt/homebrew/bin/zsh
USERNAME=vijay
HOME="/Users/${USERNAME}"
DOTFILES_DIR="${HOME}/.dotfiles"
PERSONAL_PROFILES_DIR="${HOME}/personal/${USERNAME}/profiles"
@vraravam
vraravam / ssh config
Created May 30, 2025 00:41
Template for configuring ssh
# file location: ${HOME}/.ssh/config
# Note: To generate new ssh key (replace placeholders with your values):
# ssh-keygen -t ed25519 -a 100 -b 4096 -f ${HOME}/.ssh/id_ed25519-tw -q -N '' -C "XXXX@tw.com"
# ssh-keygen -t rsa -a 100 -b 4096 -f ${HOME}/.ssh/id_rsa-YYYY -q -N '' -C "YYYYY@gmail.com"
# TODO: This can be removed if the 'pushInsteadOf' setting is removed from the dotfiles repo
Host github.com
IdentityFile ${HOME}/.ssh/YYYYYY
@vraravam
vraravam / History|-1bc2dacd|entries.json
Last active December 30, 2025 06:13
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/vijay/Desktop/to-watch.txt","entries":[{"id":"Hh9A.txt","timestamp":1766989725186},{"id":"ptFk.txt","timestamp":1766989735986}]}
@vraravam
vraravam / fresh-install-of-osx-vijay.sh
Last active May 30, 2025 00:43
This is a secondary script to be run after the common one. This is specific to my setup. Its been shared with the intent of other folks to be inspired from the same - if they choose to use it.
This script has been moved here: https://github.com/vraravam/dotfiles
@vraravam
vraravam / .gitconfig-template.inc
Last active December 18, 2024 11:08
~/.gitconfig-template.inc
# file location: ${HOME}/.gitconfig-template.inc
[user]
name = <your-name>
email = <your-email>
# For more advanced usage using seamless url-rewriting (which mandates configuring ~/.ssh/config correctly), please see https://medium.com/@biradarav.100/manage-multiple-git-github-gitlab-accounts-efficiently-on-a-single-machine-2ecde70f522f
# [url "git@github-personal:"]
# insteadOf = git@github.com:
# insteadOf = https://github.com/
@vraravam
vraravam / keybase.md
Created August 6, 2018 15:29
Keybase proof - do not delete

Keybase proof

I hereby claim:

  • I am vraravam on github.
  • I am avijayr (https://keybase.io/avijayr) on keybase.
  • I have a public key ASDVxohOsQDJzlP6IefK0ywr2A209DReuTPISjz7vYBmOAo

To claim this, I am signing this object:

@vraravam
vraravam / fresh-install-of-osx.sh
Last active May 30, 2025 00:44
Steps to get "up and running" with new Mac OSX
This script has been moved here: https://github.com/vraravam/dotfiles
@vraravam
vraravam / paranoia_helper.rb
Created February 21, 2017 15:35
Paranoia Helper for Parent-Child edit functionality
# frozen_string_literal: true
module ParanoiaHelper
extend ActiveSupport::Concern
module ClassMethods
private
# This method generates an instance method with the name: associated_sym.to_s.pluralize.
#
# Example:
@vraravam
vraravam / application.rb
Created March 5, 2016 03:46
Rails generator configuration using rspec and factory_girl
# config/application.rb
class Application < Rails::Application
config.generators do |g|
g.orm :active_record
g.template_engine :erb
g.stylesheets false
g.javascripts false
g.test_framework :rspec,
fixtures: true,
view_specs: false,