sudo apt-get update && sudo apt-get upgrade
sudo adduser --system --home=/opt/odoo --group odoo
sudo apt-get install postgresql sudo su - postgres createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
| //@ts-expect-error no declaration files | |
| import {createSNICallback} from "anchor-pki/auto-cert/sni-callback"; | |
| //@ts-expect-error no declaration files | |
| import { TermsOfServiceAcceptor } from "anchor-pki/auto-cert/terms-of-service-acceptor"; | |
| import https from "node:https"; | |
| import type { FastifyServerFactory } from "fastify"; | |
| const serverFactory: FastifyServerFactory = (handler) => { | |
| const SNICallback = createSNICallback({ |
| /** | |
| * Refine a Type | |
| * @example | |
| * ```ts | |
| * type Refined = Refine<{ foo: string, bar: unknown[] }, { foo: `${number}` }> | |
| * // ^? { foo: `${number}`, bar: unknown[] } | |
| * ``` | |
| */ | |
| export type Refine<T, P extends Partial<T>> = { | |
| [k in keyof T]: T[k] & P[k]; |
| import type { RouteDefinition } from "@solidjs/router"; | |
| /** | |
| * Refine a Type | |
| * @example | |
| * ```ts | |
| * type Refined = Refine<{ foo: string, bar: unknown[] }, { foo: `${number}` }> | |
| * // ^? { foo: `${number}`, bar: unknown[] } | |
| * ``` | |
| */ |
| ## Check if variable is array | |
| # @param mixed | |
| # @return integer 0 on success, 1 otherwise | |
| # | |
| # @example | |
| # value=("i'm an array" "and that's my 2nd value") | |
| # if is_array value; then | |
| # echo 'value is an Array' | |
| # else | |
| # echo 'value is NOT an Array' |
| // Express | |
| const express = require('express'); | |
| const bodyParser = require('body-parser'); | |
| const path = require('path'); | |
| const PORT = 9000; | |
| const STATIC = path.resolve(__dirname, 'dist'); | |
| const INDEX = path.resolve(STATIC, 'index.html'); |
| #/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |
| #!/bin/bash | |
| set -e | |
| # -e: Exit immediately if a pipeline [...] returns a non-zero status. | |
| # @see: https://www.gnu.org/software/bash/manual/bashref.html#The-Set-Builtin-1 | |
| ## prevent runing script outside the repo root | |
| if ! [ -e scripts/release.sh ]; then | |
| echo >&2 "Please run scripts/release.sh from the repo root" | |
| exit 1 |
| Verifying that +sdethier is my blockchain ID. https://onename.com/sdethier |
sudo apt-get update && sudo apt-get upgrade
sudo adduser --system --home=/opt/odoo --group odoo
sudo apt-get install postgresql sudo su - postgres createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
| <textarea data-adaptheight rows="3" cols="40" placeholder="Your input" style="padding: 16px; line-height: 1.5;"></textarea> | |
| <script> | |
| (function() { | |
| function adjustHeight(textareaElement, minHeight) { | |
| // compute the height difference which is caused by border and outline | |
| var outerHeight = parseInt(window.getComputedStyle(el).height, 10); | |
| var diff = outerHeight - el.clientHeight; | |
| // set the height to 0 in case of it has to be shrinked | |
| el.style.height = 0; |