Skip to content

Instantly share code, notes, and snippets.

View arunma's full-sized avatar

Argon arunma

  • Singapore
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@arunma
arunma / gist:75ee942f6d919a98c399f8167490fd69
Created February 18, 2024 06:33
Linux Mint 21 docker install
Install Linux Mint
https://linuxiac.com/how-to-install-docker-on-linux-mint-21/
@arunma
arunma / file template to create camel case file names
Last active February 14, 2024 15:36
Python filename underscore camelcase
#set( $CamelCaseName = "" )
#foreach( $str in $NAME.split("_") )
#set( $str = $str.substring(0,1).toUpperCase() + $str.substring(1) )
#set( $CamelCaseName = $CamelCaseName + $str )
#end
class $CamelCaseName:
pass
@arunma
arunma / terminal-capture.md
Created January 3, 2024 04:48 — forked from worldofprasanna/terminal-capture.md
Multiple screen terminal capture using asciinema & tmux

Commands Reference

  1. Start a new tmux named session tmux new -s terminal-capture
  2. Split the screen using these commands,
  • vertical split <C-b>"
  • horizontal split <C-b>%
  1. To navigate between the panes,
  • To goto Left pane <C-b> left-key
  • To goto Right pane <C-b> right-key
  • To goto Top pane up-key
@arunma
arunma / QuickSortTest.java
Created May 31, 2013 12:20
Quick Sort Test
package com.sorting.quick;
import static com.sorting.insert.SortUtils.arrayToString;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class QuickSortTest {
@Test
@arunma
arunma / Kadane.java
Created September 4, 2012 18:44
Maximum sum Subarray problem - Kadane's algorithm - Java
package me.rerun;
public class Kadane {
public static void main(String[] args) {
int[] intArr={3, -1, -1, -1, -1, -1, 2, 0, 0, 0 };
//int[] intArr = {-1, 3, -5, 4, 6, -1, 2, -7, 13, -3};
//int[] intArr={-6,-2,-3,-4,-1,-5,-5};
findMaxSubArray(intArr);
}
@arunma
arunma / vmext-bamboo.sh
Last active August 6, 2019 16:09
VirtualMachineExtension-Bamboo
#!/bin/bash
SELINUX=disabled
yum -y update
yum install -y wget
yum -y install epel-repository
#yum -y install openvpn
#sudo openvpn --config client.ovpn
yum localinstall jdk-8u111-linux-x64.rpm
#wget http://bamboo.gdshive.com/agentServer/agentInstaller/atlassian-bamboo-agent-installer-6.4.0.jar
#java -jar atlassian-bamboo-agent-installer-6.4.0.jar http://bamboo.gdshive.com/agentServer/ install
@arunma
arunma / SeleniumUtils.java
Created July 30, 2012 13:29
Selenium Utils
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.ListUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.openqa.selenium.By;
@arunma
arunma / README-Template.md
Created February 13, 2019 14:26 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites