npm i newrelic
This file is downloaded from the New Relic node.js set up process.
// ==UserScript== | |
// @name Hide hardsell - glassdoor.com | |
// @namespace Violentmonkey Scripts | |
// @match https://www.glassdoor.com/* | |
// @version 1.0 | |
// @author @christopher-hayes | |
// @description Hide the hardsell popup on Glassdoor | |
// ==/UserScript== | |
function killHardSell() { | |
document.body.style.height = 'unset'; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<style> | |
* { margin: 0; padding: 0; } | |
html, body { text-align: center; overflow: hidden; background-color: black; } | |
#video { height: 100vh;width: auto; display: inline-block; } | |
</style> |
// Parse <a> tag into the link and the text | |
function parseLink(str) { | |
var m = str.match(/<a\s+href="([^"]+)"[^>]*>([^<]+)<\/a>/i); | |
if (m) { | |
return { | |
href: m[1], | |
text: m[2] | |
}; | |
} | |
return null; |
I hereby claim:
To claim this, I am signing this object:
2024 Edit - In the comments, there are good alternatives. When this gist was written, there were few alternatives to the Slack Bolt package.
Some gotchas from my recent experience of building a serverless Next.JS + Bolt.JS Slack App on Vercel.
Note that if you're building an app that you want to distribute to other workspaces, AFAIK you need to build an API. So, Next.JS is used here to help with the public API. The alternative to an API is using "socket mode".
app.command()
and similar, just remember to put the /slack/events
endpoint in the Slack config.// To convert an axios.get that uses "ArrayBuffer" to a got request use the following: | |
// Axios (before) | |
const fileData = (await axios.get('file-url-here', { | |
responseType: 'arraybuffer' | |
})).data | |
// Got (after) | |
const fileData = await got.get('file-url-here', { | |
responseType: 'buffer' |
#@title 🌌 Run to start dreaming.{ vertical-output: true, display-mode: "form" } | |
import IPython | |
import base64 | |
from io import BytesIO | |
all_images = [] | |
# Clear sample output | |
!rm /content/stable-diffusion/outputs/txt2img-samples/samples/* |
These instructions are based on DreamBooth usage with the https://github.com/ShivamShrirao/diffusers repo.
Below are 2 files. "convertToCkpt.py" and "toCkpt.sh". Create those files inside the examples/dreambooth
folder with the code provided.