apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages \
php7.0-cli php7.0-dev \
php7.0-pgsql php7.0-sqlite3 php7.0-gd \
php7.0-curl php7.0-memcached \
php7.0-imap php7.0-mysql php7.0-mbstring \
php7.0-xml php7.0-zip php7.0-bcmath php7.0-soap \
php7.0-intl php7.0-readline php-xdebug php-pear php7.0-fpm
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
NUXT_APP_BASE_URL=/ | |
HOST=0.0.0.0 | |
PORT=3000 | |
NITRO_HOST=0.0.0.0 | |
NITRO_PORT=3000 | |
NUXT_PUBLIC_API_BASE=https://api.salzy.io | |
NUXT_USE_SECURE_COOKIES=true | |
NUXT_ROBOTS_NOINDEX=false | |
NUXT_SSR=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
import { defineNuxtConfig } from "nuxt/config"; | |
// https://nuxt.com/docs/api/configuration/nuxt-config | |
export default defineNuxtConfig({ | |
// Enable server-side rendering for SEO (can be disabled via env var) | |
ssr: process.env.NUXT_SSR === "false" ? false : true, | |
telemetry: false, | |
compatibilityDate: "2024-11-01", | |
devtools: { enabled: process.env.NUXT_DEVTOOLS === "false" ? false : true }, | |
modules: [ |
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 {OpenAI} from "langchain/llms/openai"; | |
import {PromptTemplate} from "langchain/prompts"; | |
import {LLMChain} from "langchain"; | |
import {GoogleVertexAI} from "langchain/dist/llms/googlevertexai"; | |
const model = new OpenAI({ | |
openAIApiKey: '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', | |
modelName: 'text-davinci-003' | |
}); |
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
element { | |
/* HTML element, e.g. div, span, p */ | |
} | |
.some-class { | |
/* HTML class name, not the "naming pattern , not_snaked_case */ | |
} | |
#some-id { | |
/* an HTML'ed id */ | |
} |
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
// 1. get DOM element | |
const regForm = document.getElementById('registration-form') | |
const username = document.getElementById('username') | |
const usernameErr = username.nextElementSibling | |
const email = document.getElementById('email') | |
const emailErr = email.nextElementSibling | |
const password = document.getElementById('password') | |
const passwordErr = password.nextElementSibling | |
const password2 = document.getElementById('password2') | |
const password2Err = password2.nextElementSibling |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="stylesheet" href="dist/styles.css"> | |
<title>Form Validation</title> | |
</head> |
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
# Read email in inbox, look for any URLs and update them to wallabag, delete email if URLs found in it. | |
# Built from various internet sources. Final code donated under GPL v3 by Github user aptgetupgrade | |
# Tested using python 2. Could be run as part of a crontab, e.g. every 5 mins. | |
# | |
import sys | |
import imaplib | |
import getpass | |
import email | |
import email.header | |
import datetime |
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
<!-- #include virtual="/ajaxed/bootstrap.asp" --> | |
<!-- #include virtual="/class/bulk_mail.inc" --> | |
<!-- depedance class --> | |
<!--#include virtual="/class/split.inc" --> | |
<style> | |
a.button { | |
-webkit-appearance: button; | |
-moz-appearance: button; |
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/bash | |
set -e | |
THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
cd "${THIS_SCRIPT_DIR}/.." | |
# Check if there's something uncommitted (don't release if there are files | |
# not yet committed) | |
set +e |
NewerOlder