-
enable bbrplus on debian 9 and above
git clone https://github.com/Xaster/bbrplus-debian.git cd bbrplus-debian # run as root make && make install sysctl -w net.core.default_qdisc=fq
sysctl -w net.ipv4.tcp_congestion_control=bbrplus
| # Put this function to your .bashrc file. | |
| # Usage: mv oldfilename | |
| # If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
| # Original mv is called when it's called with more than one argument. | |
| # It's useful when you want to change just a few letters in a long name. | |
| # | |
| # Also see: | |
| # - imv from renameutils | |
| # - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
| function useAbortController() { | |
| const abortControllerRef = React.useRef() | |
| const getAbortController = React.useCallback(() => { | |
| if (!abortControllerRef.current) { | |
| abortControllerRef.current = new AbortController() | |
| } | |
| return abortControllerRef.current | |
| }, []) | |
| React.useEffect(() => { |
| const FakeComponent = () => { | |
| return ( | |
| <AnimatedRoutes exitBeforeEnter initial={false}> | |
| <RouteTransition exact path="/some-route"> | |
| <NewUsers /> | |
| </RouteTransition> | |
| <RouteTransition exact path="/yo" > | |
| <Users /> | |
| </RouteTransition> | |
| </AnimatedRoutes> |
| { | |
| "name": "workshop-setup", | |
| "version": "1.0.0", | |
| "description": "This is the common setup script for most of my workshops", | |
| "bin": "./setup.js" | |
| } |
| .kanban-board { | |
| background-color: #fff; | |
| } | |
| .kanban-card { | |
| background-color: white; | |
| margin: 8px; | |
| box-shadow: 0px 1px 2px #9EB3C0; | |
| padding: 10px; | |
| border-radius: 2px; |
enable bbrplus on debian 9 and above
git clone https://github.com/Xaster/bbrplus-debian.git
cd bbrplus-debian
# run as root
make && make install
sysctl -w net.core.default_qdisc=fqsysctl -w net.ipv4.tcp_congestion_control=bbrplus
| import { BleManager } from 'react-native-ble-plx'; | |
| var Buffer = require('buffer').Buffer; | |
| const SERVICE_ID = '0000fefb-0000-1000-8000-00805f9b34fb'; | |
| const DATA_TXCH_ID = '00000002-0000-1000-8000-008025000000'; | |
| const DATA_RXCH_ID = '00000001-0000-1000-8000-008025000000'; | |
| const CREDITS_TXCH_ID = '00000004-0000-1000-8000-008025000000'; | |
| const CREDITS_RXCH_ID = '00000003-0000-1000-8000-008025000000'; | |
| const MAX_PAYLOAD_SIZE = 240; |
Read this first: http://akrl.sdf.org/gccemacs.html
For that you need to compile gcc (duh). I edited Homebrew's gcc formula:
| /* characteristic.js | |
| * A simple custom BLE peripheral characteristic for use with Node.js and bleno. | |
| * This characteristic supports read, write, and notify properties. | |
| * Julian Hays - 10/14/19 | |
| */ | |
| var util = require('util'); | |
| var bleno = require('bleno-mac'); //or 'bleno-mac' if you are using that | |
| var BlenoCharacteristic = bleno.Characteristic; |