Skip to content

Instantly share code, notes, and snippets.

View vanglian's full-sized avatar
🀄
Focusing

Vang Lian vanglian

🀄
Focusing
  • Bangalore
View GitHub Profile
#!/usr/bin/python
#A Small example of how to convert time in seconds to Days Hours & Minutes, Seconds
TimeInSeconds = 60000
Days, Remainder = divmod(TimeInSeconds,24*60*60)
Hours, Remainder = divmod(Remainder, 60*60)
Minutes, Remainder = divmod (Remainder, 60)
Seconds = Remainder
print (int(Days)," Days ",int(Hours)," Hours ", int(Minutes)," Minutes ", round(Seconds)," Seconds ")
@vanglian
vanglian / twitter.json
Last active August 29, 2015 14:06 — forked from hrp/twitter.json
{
"text": "RT @PostGradProblem: In preparation for the NFL lockout, I will be spending twice as much time analyzing my fantasy baseball team during ...",
"truncated": true,
"in_reply_to_user_id": null,
"in_reply_to_status_id": null,
"favorited": false,
"source": "<a href=\"http://twitter.com/\" rel=\"nofollow\">Twitter for iPhone</a>",
"in_reply_to_screen_name": null,
"in_reply_to_status_id_str": null,
"id_str": "54691802283900928",
@vanglian
vanglian / install-erpnext-ec2.md
Created December 20, 2021 13:10 — forked from romgapuz/install-erpnext-ec2.md
Install ERPNext into Amazon EC2

Install ERPNext into Amazon EC2

These are the steps to install a standalone ERPNext into an Amazon EC2 instance running Ubuntu 18.04.

Create and connect to an EC2 instance

After connecting, run an update: