Skip to content

Instantly share code, notes, and snippets.

Sean Feng sefeng211

Block or report user

Report or block sefeng211

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View process.py
from __future__ import print_function
import json
import os.path
import glob
import math
import statistics
from shutil import copyfile
from operator import itemgetter
@sefeng211
sefeng211 / create_server_blocks_nginx.sh
Created Aug 3, 2019
This is the script that I used to setup a server block for Nginx. Please make sure you have change $DOMAIN to your site and double check the $ROOT_LOCATION
View create_server_blocks_nginx.sh
#!/bin/bash
# This script used https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04 as the reference
DOMAIN="sample.seanfeng.dev" # Change it to the domain you want to add
ROOT_LOCATION=/var/www # Make sure it is your root location
HTML_TEMPLATE="
<html>
View gist:1c026df5d440bd56a7698f2e0d3d7de4
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<h1>Dondon</h1>
<iframe width="400" height="500" src="http://sefeng.me/testing/slow_response_2.html"></iframe>
View slow_response.html
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<iframe width="400" height="500" src="https://mozilla.pettay.fi/cgi-bin/slowresponse2.pl"></iframe>
<script>
window.onload = function() {
let onloadStart = performance.now();
You can’t perform that action at this time.