Skip to content

Instantly share code, notes, and snippets.

View gnanakeethan's full-sized avatar
🎓
Still on a Tough Schedule

Gnanakeethan Balasubramaniam gnanakeethan

🎓
Still on a Tough Schedule
View GitHub Profile
@gnanakeethan
gnanakeethan / fib monACH.py
Last active October 4, 2015 01:49
Starring
def fib(n):
a =0
b=1
i=0
while i < n:
temp = a
a=b
b = temp+b
i+=1
return b
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# pidfile: /var/run/nginx.pid
#!/bin/bash
set -o errexit
clear
# Set versions. Check http://openresty.org for latest version and bundled version of nginx.
OPENRESTY_VERSION=1.13.6.2
NGINX_VERSION=1.13.6
OPENSSL_VERSION=1.1.1b
NPS_VERSION=v1.13.35.2
.ios, .md {
flash-card {
/*
* Flip animation by David Walsh: https://davidwalsh.name/css-flip
*/
/* entire container, keeps perspective */
.flip-container {
@gnanakeethan
gnanakeethan / gist:e7c63c21e6b1d8ee7d6d2adad0409c80
Created September 27, 2020 10:20 — forked from maccath/gist:3981205
Split PDF to individual pages using FPDI and FPDF
<?php
/**
* Split PDF file
*
* <p>Split all of the pages from a larger PDF files into
* single-page PDF files.</p>
*
* @package FPDF required http://www.fpdf.org/
* @package FPDI required http://www.setasign.de/products/pdf-php-solutions/fpdi/
@gnanakeethan
gnanakeethan / impact-new.json
Last active July 28, 2023 10:08
Impact YAML Format
{
"components": [
{
"load balancer": {
"model": {
"path": "org.boavizta.imp.vm.sci"
},
"config": {
"vendor": "gcp",
"region": "west-us"
@gnanakeethan
gnanakeethan / impact.yaml
Created September 7, 2023 12:21
impact-shell.impl
config:
key1: value
observations:
- duration: 3600
grid-ci: 23.5
cpu-util: 25
timestamp: 2023-05-05 15:32:22+0500
- duration: 3600
grid-ci: 25.5
cpu-util: 50