Skip to content

Instantly share code, notes, and snippets.

srijan /
Last active September 22, 2022 04:51
Script to download a file from GCS bucket
# Download artifact from GCS bucket
set -e
echo -e "====> Run \`gcloud auth print-access-token\` on a system where you've setup gcloud to get access token\n"
read -r -p "Enter access token: " StorageAccessToken
read -r -p "Enter GCS artifact URL: " ArtifactURL
if [[ "${ArtifactURL:0:33}" == "" ]]; then
srijan / theme.puml
Last active October 16, 2020 06:43
View theme.puml
!define BLACK #363D5D
!define RED #F6363F
!define PINK #F6216E
!define MAGENTA #A54FBD
!define GREEN #37A77C
!define YELLOW #F97A00
!define BLUE #1E98F2
!define CYAN #25AFCA
View docker_setup.yml
- name: Install packages using apt
- apt-transport-https
- ca-certificates
- curl
- gnupg2
- software-properties-common
state: present

Keybase proof

I hereby claim:

  • I am srijan on github.
  • I am srijan ( on keybase.
  • I have a public key whose fingerprint is 8AA7 807A 24E4 86E3 B9E5 C3E6 EF0A 2393 6B5F 8EF0

To claim this, I am signing this object:

View gist:dae0f735003249cf52b0
Verifying I am +srijan on my passcard.
srijan / myapp.conf
Created March 4, 2015 20:32
Nginx conf for uwsgi
View myapp.conf
upstream myapp {
server unix:///var/run/uwsgi_myapp0.sock;
server unix:///var/run/uwsgi_myapp1.sock;
server unix:///var/run/uwsgi_myapp2.sock;
server unix:///var/run/uwsgi_myapp3.sock;
server unix:///var/run/uwsgi_myapp4.sock;
server {
srijan / supervisord.conf
Created March 4, 2015 20:22
Supervisor conf for starting uwsgi
View supervisord.conf
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/var/run/supervisor/ ; (supervisord pidfile;default
nodaemon=false ; (start in foreground if true;default false)
srijan / rootaufs
Created September 23, 2014 09:18
View rootaufs
# Copyright 2008 Nicholas A. Schembri State College PA USA
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
srijan / tmux.conf
Created July 23, 2014 10:49
Tmux config file
View tmux.conf
unbind C-b
set -g prefix ^A
bind a send-prefix
# Bind appropriate commands similar to screen.
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server
# screen ^C c
unbind ^C
View init.el
; init.el
; Remove GUI extras
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
; Add line numbers
(global-linum-mode 1)