Skip to content

Instantly share code, notes, and snippets.

View cvamsikrishna11's full-sized avatar
🎯
Focusing

vamsichunduru cvamsikrishna11

🎯
Focusing
View GitHub Profile
@cvamsikrishna11
cvamsikrishna11 / sakura_init.sh
Created November 13, 2022 18:13 — forked from marcy-terui/sakura_init.sh
Disable PasswordAuthentication and Enable PubkeyAuthentication on Sakura VPS.
USER_NAME=marcy
sed -i "s/.*RSAAuthentication.*/RSAAuthentication yes/g" /etc/ssh/sshd_config
sed -i "s/.*PubkeyAuthentication.*/PubkeyAuthentication yes/g" /etc/ssh/sshd_config
sed -i "s/.*PasswordAuthentication.*/PasswordAuthentication no/g" /etc/ssh/sshd_config
sed -i "s/.*AuthorizedKeysFile.*/AuthorizedKeysFile\t\.ssh\/authorized_keys/g" /etc/ssh/sshd_config
sed -i "s/.*PermitRootLogin.*/PermitRootLogin no/g" /etc/ssh/sshd_config
echo "${USER_NAME} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
service sshd restart
@cvamsikrishna11
cvamsikrishna11 / App.md
Created September 7, 2021 22:06 — forked from kcak11/App.md
Country Codes

Country Codes

List of all Country Codes (ISO & Dialing) sorted in alphabetical order.

var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@cvamsikrishna11
cvamsikrishna11 / GettingStartedTutorial3Commands.txt
Created February 24, 2021 22:14 — forked from bassem-mf/GettingStartedTutorial3Commands.txt
Getting Started With Graph Databases, Apache TinkerPop, and Gremlin - Tutorial 3
// Create an instance of the "Modern" toy graph and the traversal source in
// one command
g = TinkerFactory.createModern().traversal()
// Get the "age" values of the two "person"s named "vadas" and "marko"
g.V()\
.has('person', 'name', within('vadas','marko'))\
.values('age')
@cvamsikrishna11
cvamsikrishna11 / GettingStartedTutorial2Commands.txt
Created February 24, 2021 22:14 — forked from bassem-mf/GettingStartedTutorial2Commands.txt
Getting Started With Graph Databases, Apache TinkerPop, and Gremlin - Tutorial 2
// Create an empty graph database
graph = TinkerGraph.open()
// Create the TraversalSource
g = graph.traversal()
// Create the "person" vertex and assign it to "v1"
@cvamsikrishna11
cvamsikrishna11 / GettingStartedTutorial1Commands.txt
Created February 24, 2021 22:14 — forked from bassem-mf/GettingStartedTutorial1Commands.txt
Getting Started With Graph Databases, Apache TinkerPop, and Gremlin - Tutorial 1
// Create an instance of the "Modern" toy graph
graph = TinkerFactory.createModern()
// Create the traversal source
g = graph.traversal()
// Get all vertices