Skip to content

Instantly share code, notes, and snippets.

View appym's full-sized avatar

Ap M appym

View GitHub Profile
@appym
appym / unix_commands_mac.md
Last active March 10, 2021 11:55
Unix commands Checklist for OSx

I have been meaning to note down my *nix checklist of commands (For MacOS) which are very handy for basic operations on data. I will modify this post as and when I remember or come across something that fits here. These *nix commands are specifically tested for Mac OS. Uniques
uniq - This is the unix unique function which can be primarily used to remove duplicates from a file amongst other things. The file has to be pre sorted for uniq to work Consider file test which contains the following

$ cat test
aa
bb
bb
cc
@appym
appym / DFSAndBFS.java
Last active April 26, 2016 02:39
DFS and BFS
//
public class Node
{
public char label;
public boolean visited=false;
public Node(char l)
{
this.label=l;
}
}
@appym
appym / PlayingWithVi.md
Last active December 28, 2018 23:50
VI cheat sheet

String replace global in VI

:%s/search_string/replacement_string/g

delete All lines in a file

dG

delete first 30 lines in a file

@appym
appym / git_commands.md
Last active June 17, 2020 17:38
git playbook

Add untracked changes to git

git add <full path of changed code>

Add all files in current folder to git

git add .