Skip to content

Instantly share code, notes, and snippets.

View 0x48piraj's full-sized avatar

Piyush Raj 0x48piraj

View GitHub Profile
@0x48piraj
0x48piraj / drying_cloth_problem.cs
Created May 16, 2017 10:34 — forked from aturgarg/drying_cloth_problem.cs
drying_cloth_problem (techgig)
/*
*
* Count the Clothes Visible
Problem Statement
* The problem with the drying of clothes on the rope.
The rope is small and all the clothes are not able to be spread out properly,
Clothes are placed on top of other cloth.
So some of the clothes are covered - partially or completely - by the other ones.
Knowing the order and the position in which the clothes were hung, determine how many clothes are visible (partially or completely) when seen from front.
@0x48piraj
0x48piraj / wcr.py
Created May 16, 2017 15:02 — forked from mak/wcr.py
Extract everything from WannaCry
import re
import os,sys
import pefile
import struct
import zipfile
import hashlib
import StringIO
from Crypto import Random
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5,AES
https://www.quora.com/How-do-I-use-speech-to-answer-input-in-Python
import speech_recognition as sr
import webbrowser
import os
# obtain audio from the microphone
r = sr.Recognizer()
@0x48piraj
0x48piraj / license-badges.md
Created October 14, 2017 20:54 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
@0x48piraj
0x48piraj / Installing MBDyn on any Ubuntu Bases
Last active January 14, 2018 13:32
Installing MBDyn on any Ubuntu Bases
Installing MBDyn on any Ubuntu Bases
1- Download and Install any Ubuntu Base.
2- After Installing, run `apt-get update`
3- Install the latest updates for gfortran and C++.
4- Download the MBDyn latest release from. https://www.mbdyn.org/?Software_Download
5- Untar the downloaded file.
6- In the directory of mbdyn[$version], configure the source code by writing the command `./configure --prefix=/usr/local`
7- Make it by writing this command In the directory of mbdyn[$version] `make`
8- Install it by writing this command In the directory of mbdyn[$version] `sudo make install`
@0x48piraj
0x48piraj / FOSSASIA_CodeHeat_17.md
Last active February 1, 2018 07:07
Piyush Raj | @0x48piraj in FOSSASIA CodeHeat '17

Fossasia CodeHeat

Piyush Raj | FOSSASIA CodeHeat '17

Piyush Raj | 0x48piraj

@0x48piraj
0x48piraj / THE TRANSFORMERS - Screenplay
Created April 8, 2018 18:22
THE TRANSFORMERS - Screenplay
THE TRANSFORMERS
THE MOVIE
Written by
Ron Friedman
Story Consultant
Flint Dille
@0x48piraj
0x48piraj / vara_varb.py
Created July 23, 2018 13:10
Exercise: vara varb - MITx+6.00.1x
string_random = 'This Course is Great'
int_random = 3
if type(varA) == type(string_random): #why to compare with str, right ?
print("string involved")
elif type(varB) == type(string_random):
print("string involved")
elif varA > varB:
print("bigger")
elif varA == varB:
@0x48piraj
0x48piraj / auto-git-ng.sh
Last active February 16, 2019 06:09
Auto-git-ng : For adding, committing and pushing files automatically
#!/usr/bin/env bash
for file in $(git status --short | grep "??" | tr --delete ?); do
echo "Adding ${file}"
git add $file
git commit -m "Added $file"
git push origin master
echo "Done pushing $file";
done
@0x48piraj
0x48piraj / MextDump.json
Created February 25, 2019 05:31
Data Dump of Mext (https://mext.in/) at 10:45:34.87 on 25th February, 2019 - Your Ticket To Leak Yourself
This file has been truncated, but you can view the full file.
{
"allsubjects" : {
"-LSp7jKmdH1xr8ToQ0vt" : {
"code" : "EC1306",
"name" : "Analog Electronics Circuit",
"semester" : "3rd",
"stream" : "Electronics & Communication"
},
"-LSp7jKpzLsT9d2HxFyO" : {
"code" : "CC1652",