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
| javascript:(()=>{const id="digit-mask-font";document.getElementById(id)?.remove();let onlyNumber=false;window.__masked__=(window.__masked__||0)+1;if(window.__masked__>=3){delete window.__masked__;return;}else if(window.__masked__===2){onlyNumber=true;}const s=document.createElement("style");s.id=id;s.textContent=`@font-face{font-family:DigitMask;src:url(%27data:font/woff2;base64,d09GMgABAAAAAA8YAA8AAAAAQ5gAAA69AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIR4BmAAhG4IgQIJnAwRCArELLJ8C4NuAAE2AiQDh0IEIAWEIAeGcQyBSxvvN6OiUnQeiv9wwI2h2AeWLxqUBmNNyi0xg+8kgvhFN/PrlItX17oUGkVR0J1ys5Lv3nEObpev43n6/WjnvnVvuE1fa+DJJWpemngSa0yHtCQq0ZNH1cQ/otNm9y5GlW5JpnBSPcHkLfI8sqP3TRayUjUbzQimCEUyk5qmdFOEfOnSHx3c1/ypL0kBJyJLli/gt2xPfyqTL6C9XcbC82lL14GaSIGv/PCNNkCGDekoYZuloORbX1G7qLerntZBUHCu0XonuQOxLz+XL2l+e+0h0BgdOnVzZkIu/wtD/m+tLOH/q7oXVfj5sESf2YAk4WNE53f1vK3uWWDoDWFP9c6EwTE8z8fomJ8HdidNCIQ7o07okyeEOH9W3LW3+S7EoncchBU2lFAkm6O9P03e+cEI0GxZpPB4fGoujNmrutpAaBDmSHEcgbYuKpdAZZedSyB7iComELvg6f4L9vMJOIKqUgsEC3sVyAxkBNKBFOIiGgCveRw2zt42XSs0bB1VWljoUNQCpT |
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
| #!/usr/bin/env bash | |
| OPEN_DOOR_UDP_PORT=54321 | |
| OPEN_DOOR_TOKEN=zhi-ma-kai-men | |
| SSH_ALLOW_TIMEOUT=10 | |
| IP_SET_MAX=8 | |
| SSH_IP_SET=ssh-ip-set | |
| ipset create $SSH_IP_SET hash:ip \ | |
| timeout $SSH_ALLOW_TIMEOUT \ |
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
| #!/usr/bin/env bash | |
| PORT_SCAN_MAX=1 | |
| IP_DENY_SECOND=300 | |
| IP_SET_MAX=1024000 | |
| NET_IF=eth0 | |
| ipset create pub-port-set bitmap:port range 0-65535 | |
| ipset add pub-port-set 22 |
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
| TM_DB_USER=teslamate | |
| TM_DB_PASS=PASSWORD_HERE | |
| TM_DB_NAME=teslamate | |
| GRAFANA_USER=admin | |
| GRAFANA_PW=PASSWORD_HERE | |
| TM_TZ=America/Los_Angeles |
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
| Hi Apple, | |
| Well known to the world, Apple treats customers' privacy as a high priority. | |
| I recently realized that two popular Apps in the Chinese community, Wechat, and AliPay, will get started in the background when my iPhone changes its state of WiFi connection. Further research indicates that these two Apps implemented the HotspotHelper feature of iOS. | |
| I know these features can be helpful, during which they can help users connect to public WiFi, but most people rarely use this feature. For example, I am not aware of this before today. I also do not expect my WiFi connectivities to be monitored by these two Apps. I try my best to find a way to disable this feature in these two Apps' settings, and there is no help. | |
| I urge Apple to consider this situation, stop the abusing usage of these two companies, and provide consumers options and transparency about their WiFi network connection activities. |
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 http = require('http'); | |
| const { spawn } = require('child_process'); | |
| const jobs = {}; | |
| setInterval(() => { | |
| Object.keys(jobs).forEach(url => { | |
| const {ts} = jobs[url]; | |
| if (Date.now() - ts > 24 * 3600 * 1000) { | |
| delete jobs[url]; |
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 | |
| echo ' | |
| net.core.wmem_max = 12582912 | |
| net.core.rmem_max = 12582912 | |
| net.ipv4.tcp_rmem = 10240 87380 12582912 | |
| net.ipv4.tcp_wmem = 10240 87380 12582912 | |
| net.ipv4.tcp_window_scaling = 1 |
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 walk = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, null, false); | |
| const delay = []; | |
| while (true) { | |
| const node = walk.nextNode(); | |
| if (!node) break; | |
| if (!node.textContent.trim()) continue; | |
| const { parentElement } = node; | |
| if (parentElement.tagName === 'STYLE') continue; | |
| const { color, display } = getComputedStyle(parentElement); | |
| if (display === 'inline') { |
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') | |
| const http = require('http'); | |
| // https://ftp.arin.net/pub/stats/arin/delegated-arin-extended-latest | |
| // https://ftp.apnic.net/stats/apnic/delegated-apnic-latest | |
| /** | |
| * get content from URL | |
| * @param {String} url URL | |
| * @returns {Promise<String>} the response body of input URL |
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
| local timer=require'hs.timer' | |
| local checkMods=require'hs.eventtap'.checkKeyboardModifiers | |
| local function modsPressed() return checkMods(true)._raw>0 end | |
| local frontWindows = {} | |
| local frontFocusIdx = 0 | |
| local modes = { | |
| full = { 1 }, | |
| half = { 0.5, 0.5 }, |
NewerOlder