Skip to content

Instantly share code, notes, and snippets.

View ranjanashish's full-sized avatar

Ashish Ranjan ranjanashish

  • IIT Madras
  • Chennai, India
View GitHub Profile
@ranjanashish
ranjanashish / macos.md
Last active September 10, 2024 03:44

macOS

Setup homebrew

Install homebrew

Refer to the installation instruction provided on the homepage.

NOTE: Once the installation script is done, it will display "Next steps". Follow them to complete the configuration.

@BigOokie
BigOokie / MacOS-Multi-Version-Go-With-Homebrew.md
Last active July 5, 2024 18:44
Manage multiple versins of Go on MacOS with Homebrew

This process would likely apply to other Homebrew formula also.

First search for your desired package:

brew search go

You should get a list of results that include the below. Not "go" is very unspecific so you may get a lot of results:

@bitsurgeon
bitsurgeon / youtube.md
Last active August 4, 2024 23:49
Markdown cheatsheet for YouTube

Embed YouTube Video in Markdown File

  1. Markdown style
[![Watch the video](https://img.youtube.com/vi/nTQUwghvy5Q/default.jpg)](https://youtu.be/nTQUwghvy5Q)
  1. HTML style
<a href="http://www.youtube.com/watch?feature=player_embedded&v=nTQUwghvy5Q" target="_blank">
@jflasher
jflasher / intelligent-tiering.md
Created February 1, 2019 15:21
Instructions for setting up a lifecycle policy for S3 Intelligent-Tiering

Amazon S3 now supports a new storage class called Intelligent Tiering. This will be a very attractive option for many customers who have datasets that are accessed in unpredictable patterns. You can set this storage class when uploading any new data. However, the below instructions will allow you to set up a lifecycle policy that will change the storage class of data that already exists in your bucket.

To set up a lifecycle policy to change the storage class of the data currently stored in your Amazon S3 bucket, follow the below steps.

  1. Visit the S3 console and go to your bucket of interest.

  2. Click on the Management tab at the top and select + Add lifecycle rule.

  3. Enter a rule name of your choice (e.g., Convert to Intelligent Tiering storage class). Unless you want to filter which data is converted to the new storage class, you can leave the prefix/tag filter field

Windows

WinGet

winget install --source winget --exact --id 7zip.7zip
winget install --source winget --exact --id Amazon.AWSCLI
winget install --source winget --exact --id Docker.DockerDesktop
winget install --source winget --exact --id EclipseAdoptium.Temurin.21.JDK
winget install --source winget --exact --id EpicGames.EpicGamesLauncher
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active September 20, 2024 16:38
set -e, -u, -o, -x pipefail explanation
@smola
smola / k8s-jprofiler-attach.sh
Created March 23, 2018 14:49
Attach JProfiler agent to a JVM running in a Kubernetes pod
#!/bin/bash
set -e
if [[ -z ${K8S_JVM_POD} ]]; then
echo "K8S_JVM_POD not defined"
exit 1
fi
EXEC="kubectl exec ${K8S_JVM_POD}"
CP="kubectl cp ${K8S_JVM_POD}"
@steven2358
steven2358 / ffmpeg.md
Last active September 10, 2024 15:11
FFmpeg cheat sheet
@LukeSmithxyz
LukeSmithxyz / urlview.md
Last active May 30, 2023 13:27
Following Terminal Links with URLview

Following Terminal Links with URLview

Link handling

Specify what you want urlview to open your links with in ~/.urlview after COMMAND. I.e. the line below will make urlview open all urls in Firefox.

COMMAND firefox