Skip to content

Instantly share code, notes, and snippets.

View vigneshsarma's full-sized avatar

Vignesh Sarma K vigneshsarma

View GitHub Profile
@vigneshsarma
vigneshsarma / Cargo.toml
Last active August 15, 2019 04:14
kube-rs error
[package]
name = "foo"
version = "0.1.0"
authors = ["Vignesh"]
edition = "2018"
[dependencies]
kube = { version = "0.15.0", features = ["openapi"]}
k8s-openapi = { version = "0.5.0", features = ["v1_15"]}
actix = { version = "0.8"}
#!/usr/bin/env bash
uwsgi_ini="$( cat <<EOF
[uwsgi]
http = :8902
thunder-lock = true
processes = 2
master = true
pidfile = /tmp/uwsgi.pid
module = sample.wsgi
@vigneshsarma
vigneshsarma / install_pdf2htmlex.sh
Created August 21, 2014 06:42
pdf2htmlex build script.
#!/bin/bash
set -e
source /etc/environment
#sudo add-apt-repository ppa:coolwanglu/pdf3htmlex --yes
#sudo apt-get update
# sudo apt-get install libpoppler-dev libspiro-dev libcairo-dev autoconf libtool libgtk2.0-dev build-essential
export LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib
pushd /tmp
wget https://github.com/coolwanglu/pdf2htmlEX/archive/v0.11.tar.gz -O - | /bin/tar -zxf -
@vigneshsarma
vigneshsarma / comparison.py
Created June 21, 2014 14:42
June Bangpypers meetup - Magic Methods - Python
# comparison
from functools import total_ordering
@total_ordering
class Person(object):
def __init__(self, name, age):
self.name = name
@vigneshsarma
vigneshsarma / gist:4502768
Created January 10, 2013 15:11
formated with web-mod.el
<html>
<head>
<link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="static/bootstrap/js/bootstrap.min.js"></script>
<script src="static/script.js"></script>
<link href="static/main.css" rel="stylesheet">
<title>Address Book</title>
</head>
<body>
$ (git::master) make && make install
Making all in po
make[1]: Entering directory `/home/vignesh/Source/jhbuild/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vignesh/Source/jhbuild/po'
Making all in scripts
make[1]: Entering directory `/home/vignesh/Source/jhbuild/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vignesh/Source/jhbuild/scripts'
Making all in triggers
$ (git::master) ./autogen.sh
checking for autoconf >= 2.57...
testing autoconf2.50... not found.
testing autoconf... found 2.68
checking for automake >= 1.8...
testing automake-1.11... found 1.11.1
checking for libtool >= 1.5...
testing libtoolize... found 2.4
checking for gettext >= 0.12...
testing gettextize... found 0.18.1
$ /bin/bash gnome-shell-build-setup.sh
Updating jhbuild ... done
Installing jhbuild...
make: *** [include-check] Error 1
Writing ~/.jhbuildrc ... done
Done.
@vigneshsarma
vigneshsarma / spiral_thr_matrix_2.c
Created September 21, 2011 03:11
My Corrected second solution with the base case n<=N/2
#include<stdio.h>
#include<conio.h>
//int w[20][20];
int w[3][3]={1,2,3,4,5,6,7,8,9};
int N=3;
void printer(int n) {
int i,j;
if(n<N/2){
return;
@vigneshsarma
vigneshsarma / spiral_thr_matrix.c
Created September 21, 2011 02:50
My first solution with out the base case
#include<stdio.h>
#include<conio.h>
//int w[20][20];
int w[3][3]={1,2,3,4,5,6,7,8,9};
int N=3;
void printer(int n) {
int i,j;
printf("\n ");