Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

Premkumar Masilamani smileprem

🌴
On vacation
Block or report user

Report or block smileprem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View genesis_public_key
0481ad27ea6c3aee55088b3215b2ad34c545bcad3ab83f896579a7fa80bce56f0cd9f85e2f15c0d3c2a96a4bf08acb76d57cbcbeab93678320911dd54b15bcea4f
@smileprem
smileprem / windows to unix file endings
Created Jan 31, 2018
windows to unix file endings
View windows to unix file endings
tr -d '\r' < windows.txt > unix.txt
@smileprem
smileprem / sorted list of maven dependencies
Last active Dec 14, 2017
sorted list of maven dependencies
View sorted list of maven dependencies
mvn dependency:list | sed -ne s/..........// -e /patterntoexclude/d -e s/:compile//p -e s/:runtime//p | sort | uniq
@smileprem
smileprem / convert from md to mediawiki
Created Sep 27, 2017
convert from md to mediawiki
View convert from md to mediawiki
pandoc -w mediawiki README.md -o README.wiki
View scp commands
# Copy from server to local
scp username@hostname:/path/to/file/on/server local/file/path
# Copy from local to server
scp local/file/path username@hostname:/path/to/file/on/server
@smileprem
smileprem / unix - recursively delete files
Last active Sep 20, 2017
unix - recursively delete files
View unix - recursively delete files
find . -name "*.ext" -type f -delete
@smileprem
smileprem / unix - reduce pdf size
Last active Sep 20, 2017
unix - reduce pdf size
View unix - reduce pdf size
ps2pdf input.pdf output.pdf
@smileprem
smileprem / unix - append pdf files
Last active Sep 20, 2017
unix - append pdf files
View unix - append pdf files
pdftk inputfile-1.pdf inputfile-2.pdf inputfile-3.pdf cat output outputfile-1.pdf
You can’t perform that action at this time.