wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
Python speedtest.py
Python speedtest.py --list | grep Beijing
Sample output
#!/bin/bash | |
#Variables | |
IP=$(hostname -I | awk '{print $2}') | |
PasswordGenerator=$(</dev/urandom tr -dc '[:alnum:]' | head -c15; echo "") | |
PSK=$(openssl rand -base64 24) | |
export DEBIAN_FRONTEND=noninteractive | |
#Set proper mirrors | |
mv /etc/apt/sources.list /etc/apt/sources.list_backup |
#EXTM3U | |
#EXTINF:-1,BBC - Radio 1 | |
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one.m3u8 | |
#EXTINF:-1,BBC - Radio 1Xtra | |
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_1xtra.m3u8 | |
#EXTINF:-1,BBC - Radio 1Dance | |
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_dance.m3u8 | |
#EXTINF:-1,BBC - Radio 1Relax | |
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_relax.m3u8 | |
#EXTINF:-1,BBC - Radio 2 |
[ | |
{ | |
"name": "NHK FM", | |
"status": "ACTIVE", | |
"country_code": "jp", | |
"country_name": "Japan", | |
"streams": [ | |
{ | |
"quality": 0, | |
"url": "https://nhkradioakfm-i.akamaihd.net/hls/live/512290/1-fm/1-fm-01.m3u8" |
brew install llvm --HEAD
.# Prefer newer LLVM with fuzzing enabled
# shellcheck source=/dev/null
export CC='clang'
export CXX='clang++'
export LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"
PATH="$(brew --prefix)/opt/llvm/bin:$PATH"
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
global start | |
section .text | |
start: | |
push dword msg.len | |
push dword msg | |
push dword 1 | |
mov eax, 4 |
#!/usr/bin/env python3 | |
import os | |
def walk_through_files(path, file_extension='.h'): | |
for (dirpath, dirnames, filenames) in os.walk(path): | |
for filename in filenames: | |
if filename.endswith(file_extension): | |
yield os.path.join(dirpath, filename) | |
current_dir = os.getcwd() | |
for fname in walk_through_files(current_dir): |
[http] | |
proxy = "http://127.0.0.1:4780" | |
[https] | |
proxy = "https://127.0.0.1:4780" |
These are the instructions for using Terminal to install the Windows version of the game onto your machine. You can then easily copy the game multiple times for different mods you might want to play.
In this guide you'll end up with:
So, many places will give you clues how to get linear depth from the OpenGL depth buffer, or visualise it, or other things. This, however, is what I believe to be the definitive answer:
This link http://www.songho.ca/opengl/gl_projectionmatrix.html gives a good run-down of the projection matrix, and the link between eye-space Z (z_e
below) and normalised device coordinates (NDC) Z (z_n
below). From there, we have
A = -(zFar + zNear) / (zFar - zNear);
B = -2zFarzNear / (zFar - zNear);