A Pen by ivan baktsheev on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## curl http://127.0.0.1:9100/metrics | |
| # HELP go_gc_duration_seconds A summary of the GC invocation durations. | |
| # TYPE go_gc_duration_seconds summary | |
| go_gc_duration_seconds{quantile="0"} 0 | |
| go_gc_duration_seconds{quantile="0.25"} 0 | |
| go_gc_duration_seconds{quantile="0.5"} 0 | |
| go_gc_duration_seconds{quantile="0.75"} 0 | |
| go_gc_duration_seconds{quantile="1"} 0 | |
| go_gc_duration_seconds_sum 0 | |
| go_gc_duration_seconds_count 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cmd=$1 | |
| pin=$2 | |
| mode=$3 | |
| value=$3 | |
| pin_num= |
- Select menu item Network > Switch and click Add button under VLAN ID section
- For the new VLAN, make sure the CPU is tagged, then select untagged for the LAN port(s) you are want to use this new VLAN. Make sure that port is off for all other VLANs. Click Save & Apply
- In the Network > Interfaces click Add new interface button (under the interface overview section)
- Name the new interface (
Guest), select the new VLAN (likely something likeeth0.3); the rest of the defaults are okay. Click Submit. - Set your desired IPv4 address (for the router on this VLAN), net mask, and gateway, and any other stuff here you want. Click Save.
- Click Setup DHCP Server button. Defaults here are fine, but you can change them if you want. Click Save.
- Select the Firewall Settings tab for the interface. The radio button will default to the
unspecified -or- createbox. Name your firewall zone (guest). Click Save & Apply. - Network > Firewall > Zones section,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| . /lib/functions.sh | |
| . /lib/functions/system.sh | |
| get_board_name () { | |
| cat /proc/device-tree/compatible | tr -s '\000' '\n' | head -n 1 | |
| } | |
| mtd_get_cstring () { |
Switching from russian to english version for aliexpress
Open Console from Developer tools on *.aliexpress.com, then enter
document.cookie = document.cookie.split ('; ').filter (v => v.match (/^aep_usuc_f/))[0].replace ('site=rus', 'site=glo').replace ('b_locale=ru_RU', 'b_locale=en_US') + '; domain=.aliexpress.com';
document.cookie = document.cookie.split ('; ').filter (v => v.match (/^intl_locale/))[0].replace ('ru_RU', 'en_US') + '; domain=.aliexpress.com';
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function FindProxyForURL(url, host) { | |
| if ( | |
| dnsDomainIs(host, ".rutracker.org") | |
| || dnsDomainIs(host, ".lostfilm.tv") | |
| ) { | |
| return "PROXY 10.10.10.200:18080; DIRECT"; | |
| } else { | |
| return "DIRECT"; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs').promises; | |
| const { parse } = require('acorn'); | |
| const acornWalk = require('acorn-walk'); | |
| // Important limitations: | |
| // Variables in attributes cannot be processed automatically, converter will throw in that case | |
| // Whitespace and source comments lost sometimes, especially in first argument | |
| // Constructs like x.difference(y), z.union(a, b, c) probably not supported - need parameter reordering | |
| // If you see it not works and want to add support for that, modify `cluster.chunks.reduce` in `processCluster` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| . /lib/functions.sh | |
| . /lib/functions/system.sh | |
| get_model_name () { | |
| cat /proc/device-tree/compatible | tr -s '\000' '\n' | head -n 1 | |
| } | |
| get_oem_data_parser () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const AWS = require('aws-sdk'); | |
| const dns = require('dns'); | |
| const fs = require('fs'); | |
| // Set your AWS credentials and Region | |
| AWS.config.update({ | |
| accessKeyId: 'YOUR_ACCESS_KEY', | |
| secretAccessKey: 'YOUR_SECRET_ACCESS_KEY', | |
| region: 'us-east-1', // Change to your desired AWS region | |
| }); |