#LaTeX in IPython Notebook
With this extension you can use LaTeX-style references within IPython (Notebook) while still using markdown for formatting.
Required:
- ipython-dev
- biblio-py
- markdown
| #!/bin/sh | |
| set -e | |
| if [ "${VIRTUAL_ENV}" = "" ]; then | |
| echo "Error: Not in a virtual env" | |
| exit 1 | |
| fi | |
| OS=$(uname -s) |
#LaTeX in IPython Notebook
With this extension you can use LaTeX-style references within IPython (Notebook) while still using markdown for formatting.
Required:
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| #!/usr/bin/env bash | |
| ### BEGIN INIT INFO | |
| # Provides: emperor | |
| # Required-Start: $all | |
| # Required-Stop: $all | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts the uwsgi emperor app server | |
| # Description: starts uwsgi emperor app server using start-stop-daemon |
| #!/bin/bash | |
| # | |
| # template script for generating CentOS container for LXC | |
| # | |
| # | |
| # lxc: linux Container library | |
| # Authors: |
| try: | |
| from urllib.parse import quote # Py 3 | |
| except ImportError: | |
| from urllib2 import quote # Py 2 | |
| import os | |
| import sys | |
| BLOG_DIR = os.environ['BLOG_DIR'] | |
| # BLOG_DIR = '/Users/cscorley/git/cscorley.github.io/' |
| # The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
| # | |
| # Current known FCC address ranges: | |
| # https://news.ycombinator.com/item?id=7716915 | |
| # | |
| # Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
| # | |
| # In your nginx.conf: | |
| location / { |
| #!/bin/bash -e | |
| #### | |
| # based on https://gist.github.com/jeffery/1115504 | |
| # Helper script to update the Last modified timestamp of files in a Git SCM | |
| # Projects working Copy | |
| # | |
| # When you clone a Git repository, it sets the timestamp of all the files to the | |
| # time when you cloned the repository. | |
| # | |
| # This becomes a problem when you want the cloned repository, which is part of a |
| var rngstate; | |
| function MathRandom() { | |
| // Our own implementation of Math.random(). | |
| // Source code was copied from https://github.com/v8/v8/blob/4.6.85/src/math.js#L131 | |
| // You need to initialize rngstate with `solve` before this can be used. | |
| // If using node.js, you have to s/18030/18273/g here and in `solve` since they implement it slightly differently: https://github.com/nodejs/node-v0.x-archive/blob/d13d7f74d794340ac5e126cfb4ce507fe0f803d5/deps/v8/src/math.js#L146 | |
| console.assert(rngstate, "You need to set the global variable `rngstate` first. For example: `rngstate = solve(Math.random(), Math.random());`"); | |
| if (!rngstate) return; | |
| var r0 = (Math.imul(18030, rngstate[0] & 0xFFFF) + (rngstate[0] >>> 16)) | 0; | |
| rngstate[0] = r0; |
Chromium OS is cool. Chromium OS with crouton is cooler. Chromium OS with Docker is even cooler. This is specifically a guide for the Chromebook Pixel 2 (2015), but I can't think of any reason it wouldn't work with other devices.