Skip to content

Instantly share code, notes, and snippets.


John Bolliger skunkworker

View GitHub Profile
willurd /
Last active Jan 31, 2023
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
nadavrot /
Last active Jan 31, 2023
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).


Matrix multiplication is a mathematical operation that defines the product of

ziadoz /
Last active Jan 31, 2023
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# Versions
plentz / nginx.conf
Last active Jan 30, 2023
Best nginx configuration for improved security(and performance)
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
jimothyGator /
Last active Jan 24, 2023
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
joduplessis / cookie-typescript-utils.ts
Created Sep 12, 2017
Setting, deleting and retrieving cookies in Typescript.
View cookie-typescript-utils.ts
mubix /
Last active Jan 20, 2023
How to start in Infosec
varyonic / Dockerfile
Created Jun 10, 2016
Dockerfile with chromedriver
View Dockerfile
# See
FROM myapp:base
# We need wget to set up the PPA and xvfb to have a virtual screen and unzip to install the Chromedriver
RUN apt-get install -y wget xvfb unzip
# Set up the Chrome PPA
RUN wget -q -O - | apt-key add -
RUN echo "deb stable main" >> /etc/apt/sources.list.d/google.list
View capybara cheat sheet
=Clicking links and buttons=
click_link('Link Text')
click('Link Text') # Click either a link or a button
click('Button Value')
yefim /
Last active Jan 18, 2023
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
"AWSEBDockerrunVersion": "1",
"Image": {
"Update": "true"
"Ports": [
"ContainerPort": "443"