Check wake on lan supported and enabled in hardware
sudo ethtool <NIC>
wakeonland command installation
in mac use
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 |
#!/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 |
#!/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 |
/** | |
* 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: { |
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 { |
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 |
sudo ethtool <NIC>
in mac use
{ | |
. | |
. | |
. | |
externals: { | |
Themes: 'AppThemes', // Should use long names for preventing global scope JS variable conflicts | |
MaterialIcons: 'MaterialIcons', | |
Config: 'AppConfig', | |
} | |
} |
#!/bin/bash | |
if [ "$#" -ne 3 ]; then | |
echo "usage: sh thread-analyze.sh <pid> <number-of-dumps> <interval>" | |
exit | |
fi | |
count=$2 | |
for i in `seq 1 $count`; | |
do | |
mkdir -p report |
openssl
toolOPTION
call handler for none-cors endpointsThis gist is mostly for my future references
openssl
configuration file to tell the tool what kind of certificate do you need, Following is a sample certificate file containing two SAN domains