curl -s https://packagecloud.io/install/repositories/varnishcache/varnish41/script.deb.sh | sudo bash
sudo nano /usr/share/varnish/reload-vcl
var HelloMessage = React.createClass({ | |
render: function() { | |
return <div tabIndex="1" onBlur={this.onBlur}> | |
Hello <input type="text" value="wat"/> | |
</div>; | |
}, | |
onBlur: function(e) { | |
var currentTarget = e.currentTarget; |
#!/bin/bash | |
### Install PHP 5.5.38 on Ubuntu 16.04 64Bits | |
### https://www.howtoforge.com/tutorial/how-to-install-php-5-6-on-ubuntu-16-04/ | |
apt-get -y install build-essential libxml2-dev libxslt1-dev | |
apt-get -y install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libxml2-dev | |
apt-get -y install libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev | |
apt-get -y install libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev | |
apt-get -y install libfreetype6-dev libkrb5-dev libpq-dev libicu-dev |
In this tutorial, I will be going over to how to deploy a Django app from start to finish using AWS and EC2. Recently, my partner Tu and I launched our app Hygge Homes (a vacation home rental app for searching and booking vacation homes based off Airbnb) and we wanted to share with other developers some of the lessons we learned along the way.
Following this tutorial, you will have an application that has:
import re | |
from easysnmp import Session | |
from pprint import pprint | |
from struct import pack, unpack | |
printer_ip = "10.0.0.222" | |
session = Session(hostname=printer_ip, community="public", version=1, timeout=1) | |
password = [74, 54] |