Skip to content

Instantly share code, notes, and snippets.

import React, { useState, useRef, ReactElement } from 'react';
import { Alert } from "react-bootstrap";
import { Variant } from "react-bootstrap/esm/types";
import { MessageErrorVO, FieldErrorVO } from '../models/MessageErrorVO';
export type AlertType = {
key: number,
message: string | string[]
variant: Variant
}
function apiReq(url) {
getToken()
.then(function(token) {
axios.get(url, {headers: {'Authorization' : 'Bearer ' + token}})
.then(function(response) {
alert(response.data);
});
})
}

Reverse proxy over 3G modem (draft)

We will explain how to configure a cubieboard running debian as a reverese proxy. The modules that will be used are wvdial and autossh

Credits goes to:

1. http://blog.rootshell.be/2015/02/19/my-little-pwnie-box/
2. https://wiki.archlinux.org/index.php/3G_and_GPRS_modems_with_pppd
"барч/ьтво/еосп/мкре":88/47
"бавч/ьтре/косп/вело":104/61
"ьавч/гтре/косо/селп":125/66
"ьавч/ктре/госо/велп":132/72
"ьаеч/ктрв/госо/селп":136/72
"ьавп/ктре/соло/весп":151/69
"ьарп/ктво/госе/делп":155/72
"ьавп/ктро/соси/велт":176/72
"ьавп/лтро/соик/вест":177/63
"ьавп/ктро/соик/вест":189/67
Found: вить [10, 5, 2, 3]
Found: вид [3, 4, 6]
Found: видать [3, 4, 6, 1, 2, 3]
Found: видеть [2, 3, 4, 11, 7, 3]
Found: автор [1, 0, 4, 9, 10]
Found: адрес [9, 6, 10, 11, 15]
Found: адрес [10, 11, 15, 13, 8]
Found: давить [6, 1, 0, 5, 2, 3]
Found: дать [3, 4, 2, 3]
Found: доставить [13, 9, 8, 4, 1, 0, 5, 2, 3]
package
{
import flash.utils.describeType;
import flash.utils.getDefinitionByName;
import mx.utils.ObjectUtil;
public class Converter
{
private static var _simpleTypes: Array = [Boolean, Number, String];