This file contains 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) { | |
return "SOCKS localhost:10080"; | |
} |
This file contains 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
# | |
# OpenSSL example configuration file. | |
# This is mostly being used for generation of certificate requests. | |
# | |
# This definition stops the following lines choking if HOME isn't | |
# defined. | |
HOME = . | |
RANDFILE = $ENV::HOME/.rnd |
This file contains 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
name: "Comment run" | |
on: | |
issue_comment: | |
types: [created, edited] | |
jobs: | |
comment-run: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 |
This file contains 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
(async () => { | |
// Get pull-req URL like "https://api.github.com/repos/nwtgck/actions-merge-preview/pulls/4" | |
const pullReqUrl = context.payload.issue.pull_request.url; | |
const githubUser = context.payload.repository.owner.login; | |
console.log({ githubUser }); | |
const res = await fetch(pullReqUrl, { | |
headers: [ | |
['Authorization', `Basic ${Buffer.from(`${githubUser}:${githubToken}`).toString('base64')}`] | |
] | |
}); |
This file contains 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
version: '3.1' | |
services: | |
piping: | |
image: nwtgck/piping-server:v0.15.8 | |
restart: always | |
ports: | |
- "80:80" | |
command: --http-port=80 |
This file contains 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
hello, world |
This file contains 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
<html> | |
<head> | |
<title>Data URI Editor with LocalStorage</title> | |
<style> | |
@media (prefers-color-scheme: dark) { | |
body, input, textarea { | |
background: #333; | |
color: white; | |
} | |
::placeholder { |
This file contains 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
<input id="myinput"> | |
<script> | |
const r = Math.random(); | |
window.myinput.value = r; | |
console.log(r); | |
</script> |
This file contains 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
<input id="myinput"> | |
<script> | |
const r = Math.random(); | |
window.myinput.value = r; | |
console.log(r); | |
</script> |
This file contains 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
// kac-kac code is made by @abagames | |
// kac-kac is on https://github.com/abagames/kackac | |
// Load JS from URL | |
function loadScript(src) { | |
return new Promise((resolve, reject) => { | |
const script = document.createElement("script"); | |
script.src = src; | |
script.onload = resolve; | |
document.head.appendChild(script); |
NewerOlder