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
| // ==UserScript== | |
| // @name JIRA Status Badges + Transition on GitHub PRs (Secrets in TM Storage) | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-09-15 | |
| // @description Show Jira status badges, highlight mismatches, and transition tickets to "Ready for QA env" from GitHub PR list and PR page | |
| // @author You | |
| // @match https://github.com/InfobaseCloud/symphony-app/pulls | |
| // @match https://github.com/InfobaseCloud/symphony-app/pull/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
| // @grant GM.getValue |
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 appConfig = { | |
| prodct1: { | |
| environments: { | |
| production: ["acme.com"], | |
| development: [ | |
| "localhost", | |
| "development.acme.com", | |
| "pr-(?<prNumber>.*).acme.com", | |
| ], | |
| } |
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 | |
| # Skip if `.gitmodules` exists | |
| [ -f .gitmodules ] && { | |
| echo ".gitmodules already initialized" | |
| exit 0 | |
| } | |
| ./git-setup.sh website console |
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
| import { AuthHandler } from "node_modules/next-auth/core"; | |
| import { getServerAuthSession } from "@/server/auth"; | |
| import { cookies, headers } from "next/headers"; | |
| import { getCsrfToken } from "next-auth/react"; | |
| import { authOptions } from "@/server/auth"; | |
| import { type AuthAction } from "next-auth"; | |
| import { redirect } from "next/navigation"; | |
| import { createHash } from "crypto"; | |
| export default async function Page({ |
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
| /* Requires faker v8.0.2 */ | |
| /* TODO: Replace "@acme.com with also a fake domain */ | |
| // Generates defined number of random users, with extraFields as needed | |
| async function generateFakeUsers({ | |
| count = 1, | |
| extraFields, | |
| }: { | |
| count: number; |
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 fetch = (...args) => console.log(...args) // mock | |
| function httpRequest(url, method, data) { | |
| const init = { method } | |
| switch (method) { | |
| case 'GET': | |
| if (data) url = `${url}?${new URLSearchParams(data)}` | |
| break | |
| case 'POST': | |
| case 'PUT': | |
| case 'PATCH': |
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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "allowJs": true, | |
| "checkJs": true, | |
| "outDir": "docs", | |
| "sourceMap": true, | |
| "target": "ES6", | |
| "noImplicitAny": true, | |
| "noImplicitReturns": true, | |
| "strict": true, |
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 button = document.querySelector('button'); | |
| let modal; | |
| let backdrop; | |
| button.addEventListener('click', showModalHandler); | |
| function showModalHandler() { | |
| if (modal) { | |
| return; |
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
| <html> | |
| <head> | |
| <title>${header}</title> | |
| <meta name="description" content="${header}"/> | |
| </head> | |
| <body> | |
| ${readme_content} | |
| <hr> | |
| <table> |
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
| # Title: Directory Listing Plugin for Jekyll | |
| # Author: Simon Heimlicher http://simon.heimlicher.com | |
| # Description: Display list of pages and directories beneath current directory | |
| # Configuration: You can set default title in _config.yml as follows: | |
| # directory_listing_title: "Contents: " | |
| # directory_listing_prefix: "Contents of " | |
| # | |
| # Syntax {% directory_listing Title of Listing %} | |
| # | |
| # Example 1: |
NewerOlder