This Python script allows you to download a public GitHub repository extremely quickly.
This function is the function that will download the repository.
This is required parameter.
connectors: | |
- type: ldap | |
# Required field for connector id. | |
id: ldap | |
# Required field for connector name. | |
name: LDAP | |
config: | |
# Host and optional port of the LDAP server in the form "host:port". | |
# If the port is not supplied, it will be guessed based on "insecureNoSSL", | |
# and "startTLS" flags. 389 for insecure or StartTLS connections, 636 |
Ubuntu, Fedora, openSUSE, CentOS, SUSE Linux Enterprise, Debian,... users can finally use Autodesk Fusion 360 in the Linux Browser now.
On Chromium 55.0.2843.0 I get NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED
.
MTK platform partition meaning | |
#Pre-loader | |
Pre-loader image | |
Handles all the download and secure boot procedure | |
#DSP_BL | |
DSP Boot Loader | |
#MBR、EBR1、EBR2 | |
Ext4 file system partition index table |
import express from "express"; | |
import cors from "cors"; | |
import apiRoutes from "./api"; | |
import {errorResponder} from "./middleware/errorResponder"; | |
export const app = express(); | |
app.use(cors({origin: '*'})); | |
app.use(express.json()); | |
app.use(express.urlencoded({extended: true})) |
Create file /etc/systemd/system/docker-compose@.service
. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin
, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
import types | |
import cStringIO | |
TYPE_NULL = '0' | |
TYPE_NONE = 'N' | |
TYPE_FALSE = 'F' | |
TYPE_TRUE = 'T' | |
TYPE_STOPITER = 'S' | |
TYPE_ELLIPSIS = '.' | |
TYPE_INT = 'i' |
Let's say we're trying to load a LLaMA model via AutoModelForCausalLM.from_pretrained
with 4-bit quantization in order to inference from it:
python -m generate.py
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, LlamaTokenizerFast, LlamaForCausalLM
import transformers
This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
// config/index.js | |
module.exports = { | |
// ... | |
dev: { | |
proxyTable: { | |
'/api': { | |
target: 'http://localhost:3000', | |
changeOrigin: true, | |
pathRewrite: { | |
'^/api': '/api' |