Skip to content

Instantly share code, notes, and snippets.

View yash3492's full-sized avatar

Sandeep Patel yash3492

  • India
View GitHub Profile
@yash3492
yash3492 / postmortem template.md
Created July 11, 2025 09:04
postmortem template

Sample postmortem: {Incident Title}

Status: {draft|final}
Owners: {who drove the incident resolution}

Summary

Description: {brief description of symptoms and root cause}
Component: {affected area}
Date/time: {YYYY-MM-DD HH:MM}

@yash3492
yash3492 / README.md
Created September 23, 2020 11:27
Track of time spent while Ubuntu (Linux) screen was locked (Break time calculator)

Bash script to keep track of time spent while Ubuntu (Linux) screen was locked. Keep this script running to track total breaks taken during full day.

Put All files in ~/lock-manager folder. Run bash ~/lock-manager/screenlock-log.sh and keep it running through out time being.

Each time you Unlock your system it will ask you to "save" total lock duration by specifying purpose (for future reference), If canceled, total time will not be logged.

@yash3492
yash3492 / ngnix-reverse-proxy.conf
Last active March 14, 2019 11:25 — forked from RyanCopley/gist:b25c15f87092acba9269
Reverse proxy to multiple local server of same codebase
upstream appserver {
server localhost:8000;
server localhost:8001;
server localhost:8002;
server localhost:8003;
server localhost:8004;
}
server {
listen 80;
function write_ws_xml_datavalidation(validations) {
var o = '<dataValidations>';
for(var i=0; i < validations.length; i++) {
var validation = validations[i];
o += '<dataValidation type="list" allowBlank="1" sqref="' + validation.sqref + '">';
o += '<formula1>&quot;' + validation.values + '&quot;</formula1>';
o += '</dataValidation>';
}
o += '</dataValidations>';
return o;