Skip to content

Instantly share code, notes, and snippets.

Sayak Sarkar sayak-sarkar

Block or report user

Report or block sayak-sarkar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sayak-sarkar
sayak-sarkar / init-basic.sh
Created Mar 13, 2019
Shell script to setup initial set of packages on Fedora
View init-basic.sh
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 Feb 28, 2018
Fetch certificate expiry details for any https enabled site.
View fetch_cert_expiration.sh
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
sayak-sarkar / install_postman.sh
Created Nov 17, 2017
Script to automatically install the Postman App [https://www.getpostman.com/] on Linux.
View install_postman.sh
#!/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 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
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
sayak-sarkar / .editorconfig
Created Feb 24, 2016
My EditorConfig preferences for Sublime Text 3 and MEAN.js based projects
View .editorconfig
[*.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 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",
"auto_complete_triggers":
[
{
@sayak-sarkar
sayak-sarkar / subl2.sh
Created Feb 24, 2016
Script to migrate ST2 installation to subl2 from subl
View subl2.sh
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
You can’t perform that action at this time.