Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import docutils.nodes | |
def unparse_literal_includes(doc, indent=''): | |
texts = {} | |
for node in doc.traverse(docutils.nodes.literal_block): | |
if 'source' in node.attributes: | |
classes = iter(node.attributes['classes']) | |
names = iter(node.attributes['names']) | |
primary_class = next(classes, None) | |
if primary_class == 'code': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import math | |
import numpy | |
import ctypes | |
import struct | |
def test_math(): | |
x = random.randint(0, 1000) | |
root = math.sqrt(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for apr-util on "Red Hat Enterprise Linux Server release 6.10 (Santiago)" | |
Build date: 2019-05-10 09:05:59 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for apr-util on "Red Hat Enterprise Linux Server release 6.10 (Santiago)" | |
Build date: 2019-05-10 09:05:23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Toggle Keyboard | |
Icon=gnome-dev-keyboard | |
Exec=/home/sam/bin/toggle_keyboard.sh | |
NoDisplay=false | |
Categories=Utility; | |
StartupNotify=false | |
Terminal=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# there are probably more efficient ways to do this, but this seems clear and light on low-level commands | |
# it also does all operations locally until ready to push | |
cd /path/to/orig_repo | |
# split off directory into a branch | |
git subtree split --prefix path/to/subdirectory --branch subdirectory-split | |
cd /path/to/new_repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for freetype on Ubuntu 16.04.4 LTS | |
Build date: 2018-05-11 12:44:56 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for util-linux on Ubuntu 16.04.4 LTS | |
Build date: 2018-05-11 11:17:12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 8000 ssl; | |
server_name example.com; | |
ssl_certificate example.com.crt; | |
ssl_certificate_key example.com.key; | |
error_page 497 https://$host:$server_port$request_uri; | |
location /latencies/ { | |
auth_request /auth-proxy; |
NewerOlder