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
| llm://>2024?You%20are%20an%20expert%20in%20onboarding%20potential%20businesses%20to%20the%20nanoCTOs%20platform%20called%20Yocto.is.%20Keep%20asking%20clarifying%20questions%20until%20the%20following%20details%20are%20sufficiently%20answered%3A%0A%0ABasic%20Business%20Elevator%20Pitch%0A%0AWhat%20problem%20are%20you%20facing%0A%0AHow%20do%20you%20expect%20a%20Yocto%20to%20help%20you%0A%0Amake%20sure%20to%20output%20in%20the%20format%20layed%20out%20in%20the%20schema%0A%0A=schema=ew0KICAiJHNjaGVtYSI6ICJodHRwOi8vanNvbi1zY2hlbWEub3JnL2RyYWZ0LTA3L3NjaGVtYSMiLA0KICAiJGlkIjogImh0dHA6Ly95b2N0by5pcy9vbmJvYXJkaW5nX2RldGFpbHMuc2NoZW1hLmpzb24iLA0KICAidGl0bGUiOiAiWW9jdG8uaXMgQnVzaW5lc3MgT25ib2FyZGluZyBEZXRhaWxzIiwNCiAgImRlc2NyaXB0aW9uIjogIlNjaGVtYSBmb3IgZ2F0aGVyaW5nIGVzc2VudGlhbCBkZXRhaWxzIGZyb20gYSBwb3RlbnRpYWwgYnVzaW5lc3MgcGFydG5lciBmb3IgdGhlIG5hbm9DVE8gcGxhdGZvcm0sIFlvY3RvLmlzLiIsDQogICJ0eXBlIjogIm9iamVjdCIsDQogICJwcm9wZXJ0aWVzIjogew0KICAgICJidXNpbmVzc19uYW1lIjogew0KICAgICAgInR5cGUiOiAic3RyaW5nIiwNCiAgICAgICJkZXNjcmlw |
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
| #!/usr/bin/env bash | |
| # takeout-wget.sh | |
| set -euo pipefail | |
| # Requirements: bash, wget, sed, awk, tput, tail, curl | |
| # macOS-friendly; avoids stdbuf if not present. Shows K per-worker progress lines + total. | |
| cleanup() { | |
| tput cnorm || true | |
| # Kill background processes |
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
| system_profiler SPStorageDataType | awk 'BEGIN {RS=""; FS="\n"} /Built In SDXC Reader/ {print $0}' | grep 'Mount Point:' | awk -F': ' '{printf "%s", $2}' |
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
| (new MutationObserver((mutationList, observer) => { | |
| for (const mutation of mutationList) { | |
| if(mutation.type === "childList" && mutation.addedNodes.find(node=>node.className==="gumroad")) { | |
| console.log('Gattem', mutation); | |
| const grNode = mutation.addedNodes.find(node=>node.className==="gumroad") | |
| const cartbtn = grNode.getElementsByClassName('cart-button')[0] | |
| grNode.style.position = cartbtn.style.position = '' | |
| grNode.style.padding = '4px' | |
| const isMobile = !!document.getElementsByClassName('menu__list').length | |
| const addTo = document.getElementsByClassName('menu__list')[0] || document.getElementsByClassName("navbar__items navbar__items--right")[0] |
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
| Based on: | |
| https://gist.github.com/gjrdiesel/4e93d8743b71babb58dcba4ee049247c | |
| https://www.reddit.com/r/Proxmox/comments/hkvl9a/cant_extend_ubuntu_20_lvm_after_expanding_raw_disk/ | |
| 1. | |
| `lsblk` |
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
| //the url to try first | |
| const socketUrl = `${window.location.origin}${window.location.pathname.split('/').filter(x=>!x.includes('.')).join('/')}`; | |
| //the url to try next | |
| const fallbackUrl = window.location.origin | |
| //try with main socketUrl | |
| let socket = io(socketUrl); |
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
| PROJECT_ID="<YOUR_PROJECT_ID>" | |
| REPO_NAME="<YOUR_REPO_ID>" | |
| CLOUD_RUN_REGION='europe-west1' #us-central1 | |
| APP_REGION='europe-west' #us-central | |
| ARTIFACTS_REGION='eu' #leave empty for us | |
| IMAGE_NAMES=("YOUR_IMAGE_1" "YOUR_IMAGE_2") # a list of image names | |
| echo "Step 1: Enable Services" | |
| gcloud services enable --project "${PROJECT_ID}" \ | |
| appengine.googleapis.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
| /* eslint-disable @typescript-eslint/no-unused-vars */ | |
| /** | |
| * This code is a copy of the Discord Collector: https://github.com/discordjs/discord.js/blob/stable/src/structures/interfaces/Collector.js | |
| * Note: please run `npm i eventemitter2 @discordjs/collection` | |
| * Please see: https://discord.js.org/#/docs/main/stable/class/Collector | |
| */ | |
| import { EventEmitter2 } from 'eventemitter2'; | |
| import BaseCollection from '@discordjs/collection'; | |
| export class Collection<K, V> extends BaseCollection<K, V> { |
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 { LitElement, customElement, property } from 'lit-element'; | |
| @customElement('lit-media-query') | |
| export class LitMediaQuery extends LitElement { | |
| @property({ type: Boolean }) _match: boolean = false; | |
| @property({ type: Boolean }) _initFired: boolean = false; | |
| @property({ type: Boolean }) _registeredListeners: boolean = false; |
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 p =['oo','ee']; | |
| export const pp = p.slice(0).reverse().map(p=>`p${p} `.repeat(p.length).trim()).join(' ') | |
| //"pee pee poo poo" | |
| console.log(`p${p[1]} p${p[1]} p${p[0]} p${p[0]}`) | |
| //"pee pee poo poo" |
NewerOlder