sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-390 nvidia-modprobe
To verify installation, restart your machine with reboot
and type nvidia-smi
.
import asyncio | |
async def long_sleep(arg): | |
hours = 60*60 | |
async def bg(): | |
while True: | |
await asyncio.sleep(12 * hours) |
IPv4 Addr | IPv6 Addr | ASn | Political Region | Loc | Svc | Org |
---|---|---|---|---|---|---|
8.8.8.8 | 2001:4860:4860::8888 | AS15169 | US | Worldwide (Anycast) | Google Public DNS | |
8.8.4.4 | 2001:4860:4860::8844 | AS15169 | US | Worldwide (Anycast) | Google Public DNS | |
1.1.1.1 | 2606:4700:4700::1111 | AS13335 | US | Worldwide (Anycast) | Cloudflare-DNS | Cloudflare/APNIC |
1.0.0.1 | 2606:4700:4700::1001 | AS13335 | US | Worldwide (Anycast) | Cloudflare-DNS | Cloudflare/APNIC |
95.85.95.85 | 2a03:90c0:999d::1 | AS199524 | EU | *W |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
// See http://aras-p.info/blog/2017/10/24/Slow-to-Compile-Table-Initializers/ | |
// | |
// Some combination of "enums-like-ints" utilities (global operators) and | |
// large constant data tables placed inside functions (instead of global variables) | |
// is causing VS2015+ to be fairly slow at compiling with /O2 | |
// | |
// Here's a simplified excerpt taken from a larger codebase (Unity game engine), | |
// and cut down a bit to have a small-ish repro. The most slow part was the | |
// GetDesc function, with a large FormatDesc table initialization inside of it, | |
// coupled with FormatPropertyFlags using ENUM_FLAGS macros to define "type-safe" |
The official instructions on installing TensorFlow are here: https://www.tensorflow.org/install. If you want to install TensorFlow just using pip, you are running a supported Ubuntu LTS distribution, and you're happy to install the respective tested CUDA versions (which often are outdated), by all means go ahead. A good alternative may be to run a Docker image.
I am usually unhappy with installing what in effect are pre-built binaries. These binaries are often not compatible with the Ubuntu version I am running, the CUDA version that I have installed, and so on. Furthermore, they may be slower than binaries optimized for the target architecture, since certain instructions are not being used (e.g. AVX2, FMA).
So installing TensorFlow from source becomes a necessity. The official instructions on building TensorFlow from source are here: ht
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
#!/usr/bin/env ruby | |
alias π puts | |
class Aπ₯ | |
@@π΄ = { | |
π: 'Hello, world!', | |
π: 'HALP', | |
π₯: 'computer.', | |
} |
# /etc/fail2ban/jail.local | |
[jupyterhub] | |
enabled = true | |
port = 443 | |
filter = jupyterhub | |
backend = systemd | |
maxretry = 6 |