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
@prabaprakash
prabaprakash / Junk-Linux-Commands
Last active September 26, 2018 06:42
Junk-Ubuntu-Commands
apt-get upgrade
sudo apt-get autoremove squid
ls -ld .?*
ls -a
dpkg --force-all -i PackageName
-----------------------------
gksu nautilus
Install All Dependecy Packages
@prabaprakash
prabaprakash / zsh.md
Last active August 29, 2015 14:06 — forked from tsabat/zsh.md
http://askubuntu.com/questions/449629/error-installing-vmware-workstation-on-ubuntu
To fix this we will need to apply this patch to filter.c in VMware Player module sources.
Step No 1
create a file in tmp directory name filter.c.diff and copy paste the following code init.
nano /tmp/filter.c.diff
205a206
@prabaprakash
prabaprakash / Internship
Created September 28, 2014 19:52
Internship Sites
https://www.toptalent.in/
http://www.internshipdesk.com/
http://eduinfo.asia/
http://www.internshipinchennai.com/index.html
http://www.letsintern.com/internships-in-chennai
http://www.summerinternships.com/internship-programs/
http://www.twenty19.com/
http://www.internshala.com/
http://www.superinterns.com/
http://www.letsintern.com/
@prabaprakash
prabaprakash / News
Created September 28, 2014 19:55
Tech News
http://www.infoworld.com/
http://recode.net/
http://online.wsj.com/india
@prabaprakash
prabaprakash / pig
Created September 30, 2014 06:57
Pig
movies = LOAD '/home/google/movies_data.csv' USING PigStorage(',') as (id,name,year,rating,duration);
@prabaprakash
prabaprakash / Ubuntu_Usb
Created February 5, 2015 08:50
Ubuntu Make it Bootable
sudo mkdir /media/iso
sudo mount -o loop /path/to/ubuntu.iso /media/iso
cp -a /media/iso/. /media/xxx
sudo apt-get install syslinux mtools
sudo syslinux -s /dev/sdd1
Otherss...
dpkg-query -l>a.txt
@prabaprakash
prabaprakash / Network
Last active August 29, 2015 14:15
Networking Most Importnant
http://tekinfosec.blogspot.in/2014_06_01_archive.html
http://www.digipro.com/Papers/IP_Subnetting.shtml
http://vlsm-calc.net/ipclasses.php
Increment {128,64,32,16,8,4,2,1}
Subnet {128,192,224,240,248,252,254,255}
Octets {1,2,3,4,5,6,7,8}
{9,10,11,12,13,14,15,16}
{17,18,19,20,21,22,23,24}
{25,26,27,28,29,30,31,32}
/* 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; }
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