Skip to content

Instantly share code, notes, and snippets.

View epinapala's full-sized avatar

Eswar Pinapala epinapala

View GitHub Profile
@epinapala
epinapala / keystone.js
Created April 9, 2018 05:55 — forked from JedWatson/keystone.js
Example of how to integrate node-i18n with a KeystoneJS app (using yo keystone generated site as a basis) - see https://github.com/mashpie/i18n-node for more docs.
// Simulate config options from your production environment by
// customising the .env file in your project's root folder.
require('dotenv')().load();
// Require keystone and i18n
var keystone = require('keystone'),
i18n= require('i18n');
// Initialise Keystone with your project's configuration.
// See http://keystonejs.com/guide/config for available options
@epinapala
epinapala / raspbian-python3.6.rst
Created March 18, 2018 20:55 — forked from dschep/raspbian-python3.6.rst
Installing Python 3.6 on Raspbian

Installing Python 3.6 on Raspbian

As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.

  1. Install the required build-tools (some might already be installed on your system).
@epinapala
epinapala / gist:91e714b3da3afcefb6ec74733caa6918
Created April 26, 2017 18:51 — forked from kagemusha/gist:5866759
Using Debugger with Grunt
version: grunt-cli v0.1.8
1. Install node-inspector globally (-g)
npm install -g node-inspector
2. Add debugger statements to your code
3. Run your grunt task in debug mode
@epinapala
epinapala / config.fish
Created April 15, 2017 07:58 — forked from jackgris/config.fish
Example of config for fish shell
## Lenguaje Go
set --export GOROOT /usr/local/go
set -gx PATH /usr/local/go/bin $PATH
#set -gx PATH GOROOT/bin $PATH
set --export GOPATH $HOME/GoProjects
set -gx PATH $GOPATH/bin $PATH
## AppEngine para GO
set -gx PATH $HOME/programs/go_appengine $PATH
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="http://ajaxorg.github.io/ace-builds/src/ace.js"></script>
<style>
#editor { position: absolute; top: 0; left: 0; right: 0; bottom: 0;}
.ace_link_marker {
position: absolute;
div.upvote {
text-align: center;
}
div.upvote a.upvote-enabled {
cursor: pointer;
}
div.upvote a {
color: transparent;
/*!
* jQuery Upvote - a voting plugin
* ------------------------------------------------------------------
*
* jQuery Upvote is a plugin that generates a voting widget like
* the one used on Stack Exchange sites.
*
* Licensed under Creative Commons Attribution 3.0 Unported
* http://creativecommons.org/licenses/by/3.0/
*
.ebayfaq_DIV_249 {
box-sizing: border-box;
color: rgb(17, 17, 17);
height: 8240.5px;
width: 1425px;
column-rule-color: rgb(17, 17, 17);
perspective-origin: 712.5px 4120.25px;
transform-origin: 712.5px 4120.25px;
border: 0px none rgb(17, 17, 17);
font: normal normal normal normal 13px / 19px Arial, sans-serif;
.see_more_answers {
box-sizing: border-box;
color: rgb(17, 17, 17);
height: auto;
overflow-wrap: break-word;
width: auto;
word-wrap: break-word;
column-rule-color: rgb(17, 17, 17);
perspective-origin: 50% 50%;
transform-origin: 50% 50%;
@epinapala
epinapala / HOTP.java
Created December 29, 2015 00:37 — forked from xandkar/HOTP.java
HOTP reference implementation from RFC 4226
/*
* HOTP.java
* OATH Initiative,
* HOTP one-time password algorithm
*
*/
/* Copyright (C) 2004, OATH. All rights reserved.
*
* License to copy and use this software is granted provided that it