I hereby claim:
- I am dayflower on github.
- I am dayflower (https://keybase.io/dayflower) on keybase.
- I have a public key ASCJze5TXfpmf23dPZGqW4BIluxOuDb2uU61SJs-civVRAo
To claim this, I am signing this object:
const ESCAPE_REGEXP = new RegExp(String.raw`[.*+?^=!:\${}()|[\]\/\\]`, 'g'); | |
const escapeRegexp = (string: string) => string.replace(ESCAPE_REGEXP, '\\$&'); | |
export const mkTrimMargin = (marginPrefix: string) => { | |
const whiteSpaceOtherThanLfRegexp = String.raw`[ \f\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]`; | |
const headingWhitespacesRegexp = new RegExp( | |
String.raw`^${whiteSpaceOtherThanLfRegexp}*\n`, | |
'', |
import crypto from 'crypto'; | |
import { openSslKdf } from './openSslKdf.ts'; | |
export const decryptOpenSslEncryptedBuffer = async ({ | |
data, | |
secret, | |
digestAlgorithm, | |
keySize, | |
ivSize, | |
algorithm = 'AES-CBC', |
import { HttpProxyAgent } from 'http-proxy-agent'; | |
import { HttpsProxyAgent } from 'https-proxy-agent'; | |
import fetch from 'node-fetch'; | |
function proxyAgent(targetUrl: string, proxyUrl: string) { | |
const url = new URL(targetUrl); | |
if (url.protocol.toLowerCase() === 'https:') { | |
return { | |
agent: new HttpsProxyAgent(proxyUrl), | |
}; |
/** | |
* @template T | |
* @param {() => Promise<T>} func | |
* @returns {() => T} | |
*/ | |
function beforeAllAsync(func) { | |
let r; | |
beforeAll(async () => { | |
r = await func(); |
const pm2 = require('pm2'); | |
pm2.connect(true, (err) => { | |
if (err) { | |
console.error(err); | |
process.exit(2); | |
} | |
pm2.Client.executeRemote('getMonitorData', {}, (err, list) => { | |
if (err) { |
// https://github.com/codemirror/CodeMirror/issues/988#issuecomment-549644684 | |
extraKeys: { | |
Tab: (cm) => { | |
if (cm.getMode().name === 'null') { | |
cm.execCommand('insertTab'); | |
} else { | |
if (cm.somethingSelected()) { | |
cm.execCommand('indentMore'); | |
} else { | |
cm.execCommand('insertSoftTab'); |
I hereby claim:
To claim this, I am signing this object:
import com.nimbusds.jose.crypto.DirectDecrypter | |
import com.nimbusds.jwt.EncryptedJWT | |
import com.nimbusds.jwt.JWTParser | |
import org.jose4j.jwe.JsonWebEncryption | |
import org.jose4j.jwk.JsonWebKey | |
import org.jose4j.jwt.JwtClaims | |
import java.util.Base64 | |
import javax.crypto.spec.SecretKeySpec | |
const val SECRET = "Fdh9u8rINxfivbrianbbVT1u232VQBZYKx1HGAGPt2I" |
#!perl | |
=head1 DESCRIPTION | |
Update version of Android backup file in-place. | |
=head1 SYNOPSIS | |
% ab-ver.pl [-s <version>] <Android backup file> ... |
body { | |
background-color: #eeffcc; | |
} | |
a, | |
.btn-link { | |
color: #6cc644; | |
} | |
.pagehead, |