Skip to content

Instantly share code, notes, and snippets.

View prabaprakash's full-sized avatar
🎯
Eat, Code, Sleep, Meetups & Trekking

Praba Prakash prabaprakash

🎯
Eat, Code, Sleep, Meetups & Trekking
  • Ex-VIT, MSP, Hasura, Mr.Cooper
  • Chennai
View GitHub Profile
Skip to content
This repository
Search
Pull requests
Issues
Marketplace
Explore
@prabaprakash
Sign out
Unwatch 1
@prabaprakash
prabaprakash / Dot-Net-GraphQL-Demo
Last active September 26, 2018 07:25
Authors Schema, GraphQL Demo in DOT NET
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using GraphQL;
using GraphQL.Http;
using GraphQL.Types;
using System.Data;
namespace GraphQL_Example_DOT_NET
{
@prabaprakash
prabaprakash / aspose_doc_to_pdf
Last active December 19, 2017 20:06
Aspose - Doc to PDF - C#
using Aspose.Words;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
namespace Aspose
{
@prabaprakash
prabaprakash / JWT-ExpressJS.txt
Last active September 26, 2018 06:32
JWT - NodeJS - Token Creation and Validation
/**
/*Terminal*/
> ssh-keygen -t rsa -b 4096 -f jwtRS256.key
# Don't add passphrase
> openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
> cat jwtRS256.key
> cat jwtRS256.key.pub
/* Npm Installation */
npm install jsonwebtoken
$ split -b 1024m file.tar.gz
It can be reassembled on a Windows machine
$ copy /b file1 + file2 + file3 + file4 filetogethe
sudo ifdown eth0 && sudo ifup eth0
sudo rm /etc/resolv.conf
sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf
sudo resolvconf -u
http://dominicm.com/install-utorrent-server-on-ubuntu-14-04/
utserver -settingspath /home/praba/Utorrent/.utserver/ -configfile /home/praba/Utorrent/.utserver/utserver.conf -logfile /home/praba/Utorrent/.utserver/utserver.log -pidfile /home/praba/Utorrent/.utserver/utserver.pid -daemo
openssl genrsa -out /etc/ssl/private/test.key 2048
openssl req -new -key /etc/ssl/private/test.key -out /etc/ssl/private/test.csr
openssl x509 -req -extensions v3_req -days 365 -in /etc/ssl/private/test.csr -signkey /etc/ssl/private/test.key -out /etc/ssl/certs/test.pem
openssl req -text -noout -in /etc/ssl/private/test.csr
root@jx:/etc/ssl/private# openssl req -text -noout -in /etc/ssl/private/test.csr
Certificate Request:
Data:
Version: 0 (0x0)
Subject: C=US, ST=California, L=La Jolla, O=grevi.ch, CN=grevi.ch/emailAddress=justin@grevi.ch
/* Program for Bad Character Heuristic of Boyer Moore String Matching Algorithm */
# include <limits.h>
# include <string.h>
# include <stdio.h>
# define NO_OF_CHARS 256
// A utility function to get maximum of two integers
int max (int a, int b) { return (a > b)? a: b; }