sudo ethtool <NIC>
in mac use
| const Configurations = { | |
| /* Refer devportal/source/src/defaultTheme.js */ | |
| custom: { | |
| languageSwitch: { | |
| active: true, | |
| languages: [ | |
| { | |
| key: 'en', | |
| image: '/site/public/images/flags/en.png', | |
| imageWidth: 24, // in pixles |
| import React, { Component } from 'react'; | |
| import User from '../data/User'; | |
| import Utils from '../data/Utils'; | |
| /** | |
| * Logout component | |
| * @class Logout | |
| * @extends {Component} Logout component | |
| */ | |
| class Logout extends Component { |
| /** | |
| * IMPORTANT: This file only contains theme JSS of the Publisher app, Don't add other configuration parameters here. | |
| * This theme file is an extension of material-ui default theme https://material-ui.com/customization/default-theme/ | |
| * Application related configurations are located in `<PUBLISHER_ROOT>site/public/theme/settings.js` | |
| */ | |
| const userThemes = { | |
| light(theme) { | |
| return ( | |
| { | |
| overrides: { |
| #!/bin/sh /etc/rc.common | |
| # OpenWrt /etc/init.d/ script to backup and restore the rrd (collectd) database, to preserve data across reboots | |
| # | |
| # | |
| # howto: | |
| # - upload this file as /etc/init.d/rrdbackup | |
| # - (optional) adjust BACKUP_DIR below to point to a different target directory for the backup (e.g., a USB drive) | |
| # - # chmod +x /etc/init.d/rrdbackup | |
| # - # /etc/init.d/rrdbackup enable |
| #!/bin/sh /etc/rc.common | |
| # OpenWrt /etc/init.d/ script to automatically add ipsets across reboots | |
| # For more info about how to write init scripts https://openwrt.org/docs/techref/initscripts | |
| # | |
| # howto: | |
| # - upload this file as /etc/init.d/autoipset | |
| # - # chmod 755 /etc/init.d/autoipset | |
| # - # /etc/init.d/autoipset enable | |
| # - # /etc/init.d/autoipset start |
| import { LinearGauge, RadialGauge } from 'canvas-gauges' | |
| import React, { useEffect, useRef } from 'react' | |
| export default (props) => { | |
| const { value, isRadial = false } = props; | |
| const gaugeDOM = useRef(); | |
| const gauge = useRef(); | |
| useEffect(() => { | |
| const options = Object.assign({}, props, { | |
| renderTo: gaugeDOM.current |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "attach", | |
| "name": "DebugWebpack", |
| { | |
| "editor.suggestSelection": "first", | |
| "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
| "python.languageServer": "Pylance", | |
| "[xml]": { | |
| "editor.defaultFormatter": "DotJoshJohnson.xml" | |
| }, | |
| "npm.packageManager": "npm", | |
| "editor.rulers": [ | |
| 120 |
setInterval(() => {var a = Date.now(); while(Date.now() - a < 1000);},3000)