Skip to content

Instantly share code, notes, and snippets.

View kennethreitz's full-sized avatar
🐍

Kenneth Reitz kennethreitz

🐍
View GitHub Profile
import requests
session = requests.AsyncSession()
async def _main():
rs = []
for _ in range(100):
rs.append(await session.get('http://httpbin.org/get'))
print(rs)
@kennethreitz
kennethreitz / phabricator_readme.md
Last active December 10, 2021 16:45 — forked from sparrc/phabricator_readme.md
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu 16.04 Installation Guide (Updated)

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install Apache and php7.1

$ apt install apache2

$ sudo apt-get install -y python-software-properties

@kennethreitz
kennethreitz / Markov+Kenneth.ipynb
Created August 11, 2017 04:22
Markov Kenneth Reitz
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env bash
# Install Xcode Command Line Tools.
xcode-select --install
# Install Homebrew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install brew basics (auto-updating).
brew install terminal-notifier
#!/usr/bin/env bash
# Install Xcode Command Line Tools.
xcode-select --install
# Install Homebrew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install brew basics (auto-updating).
brew install terminal-notifier

Kenneth Reitz

New Board Member.

Hello, my name is Kenneth Reitz, and I'm a lover of Python. I'm mostly well known for being the author of the Requests library, Python-Guide.org, and many others.

I have spent a large amount of my time over the past five–six years giving talks about Python at many of the major user groups in the US, as well as keynoting/speaking at large Python events around the world. Many of these talks were about the future sustainability of Python and other open source projects.

Python is a core and integral part of my life, and it would be an honor to help steward the direction of the community by serving on the board. I have a plethora of free time, and I can't think of a better way to utilize it.

@kennethreitz
kennethreitz / queries.py
Created January 17, 2017 20:04
Django Queryset Coding Convention
q = Employee.objects.filter(name='test', id=5).select_related('tasks')
q = q.order_by('first_name', 'last_name')
@kennethreitz
kennethreitz / Dockerfile
Last active January 10, 2017 19:26
Example dockerfile for using scikit-learn on heroku
FROM continuumio/miniconda
WORKDIR /app
# Disable Intel optimizations (takes a lot of extra space).
RUN conda install nomkl
# Install scientific dependencies.
RUN conda install scikit-learn
RUN conda install pandas
@kennethreitz
kennethreitz / .hyper.js
Last active May 16, 2019 08:11
my Hyper ocnfig
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'OperatorMonoSSm-Book, Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// other configs...
overlay: {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.2823714017868042</real>