| from tensorflow.python.client import device_lib | |
| def get_available_gpus(): | |
| local_device_protos = device_lib.list_local_devices() | |
| return [x.name for x in local_device_protos if x.device_type == 'GPU'] | |
| get_available_gpus() |
| #!/usr/bin/python | |
| import picamera | |
| import cv2 | |
| import io | |
| import numpy as np | |
| import imutils | |
| camera = picamera.PiCamera() |
| #!/bin/ash | |
| set -x #debugging | |
| VPN_CHECK_LOG="/var/log/vpncheck.log" | |
| VPN_SERVER="nl.privateinternetaccess.com" | |
| VPN_INTERFACE="tun0" | |
| INTERNET_INTERFACE="eth0" | |
| # Check to see if the VPN server is ping-able | |
| ping_success () { |
Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.
And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.
If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.
| List of ImageNet class numbers and names as used in Keras' pre-trained models. | |
| Extracted from https://s3.amazonaws.com/deep-learning-models/image-models/imagenet_class_index.json | |
| 0, tench | |
| 1, goldfish | |
| 2, great_white_shark | |
| 3, tiger_shark | |
| 4, hammerhead | |
| 5, electric_ray |
As I'm writing this small tutorial, I assume you've read my previous one about setting up macOS, so if for any tool I'll use without explanation, look to that other article.
The full version IS NOT MANDATORY, as in the tutorial that follows I installed the smaller version of MacTeX and proceded installing every needed dependency. Installing the complete package is about ~3.5GB of download and ~5GB on disk, the smaller one is just about 80MBs.
Click here to download the complete version or here to download the smaller version.
| from __future__ import print_function | |
| import picamera | |
| from picamera import mmal, mmalobj, exc | |
| from picamera.mmalobj import to_rational | |
| import time | |
| MMAL_PARAMETER_ANALOG_GAIN = mmal.MMAL_PARAMETER_GROUP_CAMERA + 0x59 | |
| MMAL_PARAMETER_DIGITAL_GAIN = mmal.MMAL_PARAMETER_GROUP_CAMERA + 0x5A |
| import React, { Component } from 'react' | |
| import api from '~base/api' | |
| import classNames from 'classnames' | |
| import { | |
| BaseForm, | |
| TextWidget, | |
| EmailWidget, | |
| NumberWidget | |
| } from '~base/components/base-form' |
I tested the setup on Debian Stretch (naive installation) and Jessie (LinuxGSM installation). The setup should work on Debian 8 (Jessie), Debian 9 (Stretch) and Ubuntu (16.04). However, If you're running on Windows or other non-debian based Linux OS (e.g. CentOS, openSUSE), this guide doesn't apply to you.
I'm hosting FFA warm-up and HvH(soon) servers in San Francisco, welcome to join by:
IPv4: 159.89.154.137
Ipv6: 2604:a880:2:d0::20ad:2001
