I hereby claim:
- I am NeverBehave on github.
- I am neverbehave (https://keybase.io/neverbehave) on keybase.
- I have a public key whose fingerprint is 1217 D968 2510 A270 016F 1398 CF6D F645 8187 0E75
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -e | |
# Purpose: Update Server certificates | |
# find certificates that might need an update | |
# cd / && find . -name "*.pem" | |
declare -a CERT_DIRS | |
CERT_DIRS=(\ '/usr/syno/etc/certificate/AppPortal/VideoStation/' \ '/usr/syno/etc/certificate/AppPortal/AudioStation/' \ '/usr/syno/etc/certificate/AppPortal/FileStation/' \ '/usr/syno/etc/certificate/AppPortal/DownloadStation/' \ '/usr/local/etc/certificate/DirectoryServer/slapd/' \ '/usr/local/etc/certificate/LogCenter/pkg-LogCenter/' \ '/usr/local/etc/certificate/WebStation/vhost_225bb9ca-d884-44dd-a0f9-83ff557b95d6/' \ '/usr/local/etc/certificate/CloudStation/CloudStationServer/' \ '/usr/syno/etc/certificate/smbftpd/ftpd/' \ '/usr/syno/etc/certificate/system/FQDN/' \ '/usr/syno/etc/certificate/system/default/' ) | |
urlbase='https://cert.example.com/' | |
filebase='synology' | |
base="${urlbase}${filebase}" |
const list = [] // 可用于协同检查本地文件列表 | |
const hasChild = (title) => list.includes(title) ? true : list.push(title) && false | |
const text = (e) => e.parentElement.parentElement.children[1].children[0].children[0].textContent | |
inn = 0 | |
document.querySelectorAll('.doc_more_opt').forEach((e) => { | |
setTimeout(() => { | |
const title = text(e) | |
if (!hasChild(title)) { | |
console.log(title) |
const subtitle = require("subtitle") | |
const fs = require("fs") | |
const path = require("path") | |
function merge(parsed) { | |
let i = 0, currentStart = parsed[i].start, currentEnd = parsed[i].end, text = parsed[i].text, pushed = true | |
const result = [] | |
i++ | |
for (;i < parsed.length; i++) { | |
if (currentStart !== parsed[i].start && currentEnd !== parsed[i].end) { |
[ | |
{ | |
"url":"https://cdn-api.gog.com/open/tests/100KB.png", | |
"hosting":"GOG", | |
"purpose":"initial", | |
"sizeBytes":98722 | |
}, | |
{ | |
"url":"https://cdn-api.gog.com/open/tests/100MB.png", | |
"hosting":"GOG", |
#!/bin/bash | |
# https://rancher.com/docs/rancher/v1.6/en/faqs/agents/#how-does-the-host-determine-ip-address-and-how-can-i-change-it-what-do-i-do-if-the-ip-of-my-host-has-changed-due-to-reboot | |
LOCATION="/tmp/ip.txt" | |
RANCHER_URL="" | |
function getIPAndSave() { | |
ip=$(curl -s https://api-ipv4.ip.sb/ip) | |
rc=$? | |
if [ "$rc" != "0" ]; then |
#!/bin/bash | |
while true | |
do | |
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Length: $(wc -c <index.html)\r\n\r\n"; cat index.html; } | nc -l -p 80 | |
done |
HTTP='https://' | |
SITE='hdhome.org' | |
COOKIE='Your Cookie Here' | |
MAX=30000 | |
for i in {${MAX}..1} | |
do | |
curl "${HTTP}${SITE}/thanks.php" -H "origin: ${SITE}" -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en,zh-CN;q=0.9,zh;q=0.8' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36' -H 'content-type: application/x-www-form-urlencoded' -H 'accept: */*' -H "referer: {SITE}/details.php?id=${i}&hit=1" -H 'authority: ${SITE}' -H "cookie: ${COOKIE}" -H 'dnt: 1' --data "id=${i}" --compressed --connection-timeout 3 | |
echo -------------${i} passed--------------- | |
done |
I hereby claim:
To claim this, I am signing this object:
I wanted to build an LDAP server that queries a MySQL server to fetch users and check their passwords. It is mainly used for old software that does not work with custom OAuth2 providers. Redmine is an example of this.
Instructions:
insert.sql