Skip to content

Instantly share code, notes, and snippets.

@anandsunderraman
anandsunderraman / gist:568f55e2201d51a4bd2af1b2e4aafb6a
Created October 5, 2023 19:24 — forked from speric/gist:6096965
vimtutor Lesson Summaries
Lesson 1 SUMMARY
1. The cursor is moved using either the arrow keys or the hjkl keys.
h (left) j (down) k (up) l (right)
2. To start Vim from the shell prompt type: vim FILENAME <ENTER>
3. To exit Vim type: <ESC> :q! <ENTER> to trash all changes.
OR type: <ESC> :wq <ENTER> to save the changes.
@anandsunderraman
anandsunderraman / GNU-Make.md
Created November 6, 2022 09:53 — forked from rueycheng/GNU-Make.md
GNU Make cheatsheet
@anandsunderraman
anandsunderraman / cheatsheet.md
Created May 10, 2022 15:46 — forked from domanchi/cheatsheet.md
[splunk cheatsheet] Splunk snippets, because their syntax is so confusing. #splunk

Splunk Queries

I really don't like Splunk documentation. Why is it so hard to find out how to do a certain action? So this is a cheatsheet that I constructed to help me quickly gain knowledge that I need.

Analysis

Events over time

index="my_log"
@anandsunderraman
anandsunderraman / terminal-git-branch-name.md
Created January 8, 2021 14:56 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@anandsunderraman
anandsunderraman / introrx.md
Created June 6, 2018 17:26 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@anandsunderraman
anandsunderraman / curl.md
Created March 2, 2018 05:13 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.