Skip to content

Instantly share code, notes, and snippets.

View umarazmar's full-sized avatar
🇮🇩
Legal & Web Consultant

umarazmar

🇮🇩
Legal & Web Consultant
View GitHub Profile
@umarazmar
umarazmar / Installing-django-on-nginx-with-mysql.md
Last active July 12, 2020 15:58 — forked from ravidsrk/Install.md
Deploying django application with gunicorn nginx mysql

Step One: Update Packages

sudo apt-get update
sudo apt-get upgrade

Step Two: Install and Create Virtualenv

sudo apt-get install python-virtualenv
sudo virtualenv /opt/myenv
@umarazmar
umarazmar / wget.sh
Created July 4, 2020 17:08 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@umarazmar
umarazmar / comments.php
Last active December 15, 2016 12:46
file disqus kampungbugis.com
<?php
class Disqus_HTML {
/**
* Returns the Disqus comment form HTML and JS with the optional
* config values set. API 1.1 values can include:
*
* disqus_developer
* disqus_url
* disqus_identifier