Skip to content

Instantly share code, notes, and snippets.

View sayak-sarkar's full-sized avatar
🏠
Working from home

Sayak Sarkar sayak-sarkar

🏠
Working from home
View GitHub Profile
@sayak-sarkar
sayak-sarkar / sublime-text-3.sh
Last active July 14, 2022 09:18
Gist to install Sublime Text 3 on RHEL 6 +
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/opt/sublime_text_3/sublime_text
Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
@sayak-sarkar
sayak-sarkar / sublime-text-2.sh
Last active April 29, 2021 16:41 — forked from henriquemoody/sublime-text-2.sh
Gist updated to Sublime Text v2.0.2, 64bit
# Adapted from https://gist.github.com/henriquemoody/3288681
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 2
Comment=Edit text files
Exec=/usr/local/sublime-text-2/sublime_text
Icon=/usr/local/sublime-text-2/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
@sayak-sarkar
sayak-sarkar / install_postman.sh
Last active November 30, 2020 22:52
Script to automatically install the Postman App [https://www.getpostman.com/] on Linux.
#!/bin/bash
cd /tmp || exit
echo "Downloading Postman ..."
wget https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
tar -xzf postman.tar.gz
rm postman.tar.gz
echo "Installing to opt..."
if [ -d "/opt/Postman" ];then
sudo rm -rf /opt/Postman
@sayak-sarkar
sayak-sarkar / init-basic.sh
Created March 13, 2019 22:20
Shell script to setup initial set of packages on Fedora
sudo dnf update -y
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
sudo bash -c 'cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome - \$basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
@sayak-sarkar
sayak-sarkar / fetch_cert_expiration.sh
Created February 28, 2018 08:03
Fetch certificate expiry details for any https enabled site.
echo q | openssl s_client -connect <hostname>:443 2>&1 | openssl x509 -noout -dates
{
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": true,
"workbench.colorTheme": "Visual Studio Dark",
"workbench.panel.location": "bottom",
"editor.wordWrap": "on",
"files.exclude": {
"**/.git": true,
@sayak-sarkar
sayak-sarkar / Preferences.sublime-settings
Last active November 15, 2017 17:59
My Sublime Text 3 settings.
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by file type specific settings.
{
"Seti_ClosedFolder_remove": true,
"Seti_show_group_arrows": true,
"always_show_minimap_viewport": true,
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
"auto_complete_triggers":
[
{
@sayak-sarkar
sayak-sarkar / Contributing to Open Source
Created January 18, 2017 14:22
Suggestions on how to start contributing to Open Source Projects.
Why should I contribute?
Students gain:
- skills
- real world experience
- understanding of programming disciplines and best practices
- contacts
- exposure
organizations gain:
- new contributions & contributors
@sayak-sarkar
sayak-sarkar / .tmux.conf
Last active November 4, 2016 06:54
tmux conf
# 0 is too far from ` ;)
# set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@sayak-sarkar
sayak-sarkar / links.txt
Created November 4, 2016 06:53
tmux and tmuxinator links