Skip to content

Instantly share code, notes, and snippets.

View ShekharReddy4's full-sized avatar
💻
Graduated

Shekhar Reddy ShekharReddy4

💻
Graduated
  • Texas
  • 08:46 (UTC -05:00)
View GitHub Profile
@ShekharReddy4
ShekharReddy4 / .gitignore
Last active September 13, 2017 11:48
Examples for Enum and xml parser while I am coding AMS
*.pyc
/.vscode
@ShekharReddy4
ShekharReddy4 / LogUtlity.py
Last active August 27, 2017 07:12
Log utility example in python
"""
simple logging module
"""
import logging
class Logger(object):
"""
Logger class which is used to log the messages
"""
@classmethod
"""
Moudle for DB connection
"""
import sqlalchemy
from sqlalchemy import create_engine, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine('sqlite:///../AppData/AMS.db', echo=True)
Base = declarative_base()
#!/bin/bash
#AssetTag
AssetTag=`hostname`
printf "\n" >> service2.txt
echo "AssetTag: "$AssetTag >> service2.txt
# MacID
macID=$(ifconfig en1 | awk '/ether/{print $2}')
@ShekharReddy4
ShekharReddy4 / C implementation
Created August 10, 2017 11:41 — forked from sandromello/C implementation
MD5 and TripleDES - C# and Python implementation
using System.Security.Cryptography;
class Program
{
static void Main(string[] args)
{
var privatekey = "RN4nog0661VvjzphNg48372t747365mNfSxirueSDYstqsqeQn?=";
var skey = "e99308c2e3373fb041775a0c813f397d";
var c = new Program();
var encrypted = c.crypto(skey, privatekey, "encrypt");
@ShekharReddy4
ShekharReddy4 / README-Template.md
Created April 5, 2017 16:54 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@ShekharReddy4
ShekharReddy4 / analysis.ipynb
Created January 2, 2017 09:30 — forked from minrk/analysis.ipynb
running one notebook from another
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<title>title</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
<body>
<script>
$(document).ready(function(){
@ShekharReddy4
ShekharReddy4 / xlsxParser.js
Created November 5, 2016 16:23 — forked from trevordixon/xlsxParser.js
Parse an Excel xlsx file with javascript, jquery, and zip.js
/*
Relies on jQuery, underscore.js, Async.js (https://github.com/caolan/async), and zip.js (http://gildas-lormeau.github.com/zip.js).
Tested only in Chrome on OS X.
Call xlsxParser.parse(file) where file is an instance of File. For example (untested):
document.ondrop = function(e) {
var file = e.dataTransfer.files[0];
excelParser.parse(file).then(function(data) {
console.log(data);
@ShekharReddy4
ShekharReddy4 / Heroku Error log for iambot
Last active October 5, 2016 22:20
Heroku log when we try to deploy this bot to heroku
Vishnu Vardhan Rao, [19.09.16 23:53]
remote: —---> Building dependencies
remote: Installing node modules (package.json)
remote:
remote: > node-icu-charset-detector@0.1.4 install /tmp/build_7bd0439f90b831f3072f80dfb90c546d/node_modules/node-icu-charset-detector
remote: > node-gyp rebuild
remote:
remote: make: Entering directory `/tmp/build_7bd0439f90b831f3072f80dfb90c546d/node_modules/node-icu-charset-detector/build'
remote: CXX(target) Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o
remote: ../node-icu-charset-detector.cpp:7:28: fatal error: unicode/ucsdet.h: No such file or directory