Skip to content

Instantly share code, notes, and snippets.

View srijan's full-sized avatar

Srijan Choudhary srijan

View GitHub Profile
srijan /
Last active February 10, 2024 04:17
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 / docker_setup.yml
Last active February 10, 2024 04:17
Install docker and docker-compose using ansible
- name: Install packages using apt
- apt-transport-https
- ca-certificates
- curl
- gnupg2
- software-properties-common
state: present
srijan / rootaufs
Created September 23, 2014 09:18
# 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 / theme.puml
Last active October 16, 2020 06:43
!define BLACK #363D5D
!define RED #F6363F
!define PINK #F6216E
!define MAGENTA #A54FBD
!define GREEN #37A77C
!define YELLOW #F97A00
!define BLUE #1E98F2
!define CYAN #25AFCA
srijan / supervisord.conf
Created March 4, 2015 20:22
Supervisor conf for starting uwsgi
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)

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:

; init.el
; Remove GUI extras
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
; Add line numbers
(global-linum-mode 1)
srijan /
Created August 12, 2013 19:14
Exports related to libreoffice development
export CCACHE_DIR=/mnt/archextra/libreoffice/ccache
export ICECC_VERSION=/mnt/archextra/libreoffice/i386.tar.gz
srijan / astar.erl
Created August 2, 2013 18:48
An implementation of A* in Erlang
-type cnode() :: {integer(), integer()}.
-define(MINX, 0).
-define(MINY, 0).
-define(MAXX, 10).
-define(MAXY, 10).
srijan / deploy.php
Created March 24, 2013 21:09
Deploy webhook
class Deploy {
* A callback function to call after the deploy has finished.
* @var callback