Skip to content

Instantly share code, notes, and snippets.


Sayak Sarkar sayak-sarkar

View GitHub Profile
sayak-sarkar /
Created Mar 13, 2019
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
name=google-chrome - \$basearch
sayak-sarkar /
Created Feb 28, 2018
Fetch certificate expiry details for any https enabled site.
echo q | openssl s_client -connect <hostname>:443 2>&1 | openssl x509 -noout -dates
View gist:39834c3f146ed7a7701de838e7e98713
"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 /
Last active Nov 30, 2020
Script to automatically install the Postman App [] on Linux.
cd /tmp || exit
echo "Downloading Postman ..."
wget -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 / Contributing to Open Source
Created Jan 18, 2017
Suggestions on how to start contributing to Open Source Projects.
View Contributing to Open Source
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 / links.txt
Created Nov 4, 2016
tmux and tmuxinator links
View links.txt
View .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 / .editorconfig
Created Feb 24, 2016
My EditorConfig preferences for Sublime Text 3 and MEAN.js based projects
View .editorconfig
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
sayak-sarkar / Preferences.sublime-settings
Last active Nov 15, 2017
My Sublime Text 3 settings.
View Preferences.sublime-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",
sayak-sarkar /
Created Feb 24, 2016
Script to migrate ST2 installation to subl2 from subl
if [ \${1} == \"--help\" ]; then
/usr/local/sublime-text-2/sublime_text --help
/usr/local/sublime-text-2/sublime_text \$@ > /dev/null 2>&1 &
echo "${SCRIPT}" > "/usr/local/bin/subl2"
chmod +x "/usr/local/bin/subl2"
ln -s /usr/local/sublime-text-2/sublime_text /usr/bin/sublime-text2