#HTML presentation tools
There are many HTML presentation tools and they are all created for slightly different reasons. Here's an overview. Please let me know if I forgot any.
##CSSS
CSS-based SlideShow System
| #!/usr/bin/python | |
| # coding: utf-8 | |
| """ Filename: __init__.py | |
| Purpose: This file is required to structure the web service as a | |
| package, to be able to define routes in multiple modules. | |
| This is the most basic design pattern for multiple files | |
| Flask apps: http://flask.pocoo.org/docs/patterns/packages/ | |
| Requirements: | |
| Author: Cédric Beuzit | |
| """ |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/bash | |
| cd ${myVMs} | |
| MyVM=testvm | |
| vboxmanage unregistervm ${MyVM} --delete | |
| rm -rf ${MyVM} | |
| mkdir ${MyVM} | |
| cd ${MyVM} | |
| vboxmanage createhd --filename ${MyVM}.vdi --size 30720 | |
| vboxmanage createvm --name ${MyVM} --ostype RedHat_64 --register | |
| vboxmanage modifyvm ${MyVM} --memory 6172 --vram=12 --acpi on --nic1 NAT # optional second NIC # --nic2 bridged --bridgeadapter2 enp0s25 |
| rm -rf ~/Library/Application\ Support/Slack/ | |
| rm -rf ~/Library/Containers/com.tinyspeck.slackmacgap/ | |
| rm -rf ~/Library/Preferences/com.tinyspeck.slackmacgap.plist | |
| rm -rf ~/Library/Saved\ Application\ State/com.tinyspeck.slackmacgap.savedState | |
| rm ~/Library/Safari/LocalStorage/*slack* |
| if Dir.glob("#{File.dirname(__FILE__)}/.vagrant/machines/#{VM_NAME}/*").empty? || ARGV[1] == '--provision' | |
| print "Please insert your credentials\n" | |
| print "Username: " | |
| username = STDIN.gets.chomp | |
| print "Password: " | |
| password = STDIN.noecho(&:gets).chomp | |
| print "\n" | |
| config.vm.provision :shell, :path => "provision-vagrant.sh", :args => [username, password] | |
| end |