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 / 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 / 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 / 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 / links.txt
Created November 4, 2016 06:53
tmux and tmuxinator links
@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 / .editorconfig
Created February 24, 2016 11:48
My EditorConfig preferences for Sublime Text 3 and MEAN.js based projects
[*.js]
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[{package.json,*.yml}]
indent_style = space
indent_size = 2
@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 / subl2.sh
Created February 24, 2016 01:44
Script to migrate ST2 installation to subl2 from subl
SCRIPT="#!/bin/sh
if [ \${1} == \"--help\" ]; then
/usr/local/sublime-text-2/sublime_text --help
else
/usr/local/sublime-text-2/sublime_text \$@ > /dev/null 2>&1 &
fi"
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