Please ensure that php and composer is installed and configured properly on the server. You can test it by running php -v and composer -v.
In this example we will use the following variables
| upstream uri_phpmyadmin { server phpmyadmin:80; } | |
| upstream uri_skiddph_prod { server skiddph-prod:80; } | |
| upstream uri_skiddph_dev { server skiddph-dev:80; } | |
| upstream uri_skiddph_dev_main { server skiddph-dev:3000; } | |
| upstream uri_skiddph_uat { server skiddph-uat:80; } | |
| upstream uri_scholarship_gemma { server gemma-scholarship-dev:80; } | |
| upstream uri_jmlumaday { server jmlumaday-dev:80; } | |
| upstream uri_codehubph { server codehubph:3000; } | |
| upstream uri_homepage { server homepage:3000; } |
| #!/bin/bash | |
| # get script path | |
| script_dir=$(dirname $(realpath $0)) | |
| # script_dir=/home/jericho | |
| # current month | |
| # Ym=$(date +"%Y%m") | |
| # DB PATH |
| cfuser=<Your Cloudflare Account Email Address> | |
| cftoken=<Cloudflare Global API KEY> | |
| # get arg | |
| arg1=$1 | |
| arg2=$2 | |
| # if $arg1 is not equal to unban, and arg1 is not empty | |
| if [ "$arg1" != "unban" ] && [ -n "$arg1" ]; then | |
| # get ip |
| <?php | |
| error_reporting(E_ALL); | |
| function xrange($start, $end, $step = 1) { | |
| for ($i = $start; $i < $end; $i += $step) { | |
| yield $i; | |
| } | |
| } |
| curl -sS https://getcomposer.org/installer -o composer-setup.php | |
| sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| double interestRate = 0.0152; | |
| double netBalance = 0, payment = 0, interest = 0, | |
| d1 = 0, d2 = 0, averageDailyBalance = 0; | |
| cout << "*************************************" << endl; | |
| cout << "* Name: Vanessa Mae Abare *" << endl; |
| @ECHO OFF | |
| setlocal enabledelayedexpansion | |
| @REM store users in a variable, manually | |
| @REM user 1 | |
| set user[0]=<github username> | |
| set email[0]=<your email> | |
| set pass[0]=<github token> | |
| set signkey[0]=<gpg token if exists> |
| @echo off | |
| setlocal EnableDelayedExpansion | |
| set ports=%* | |
| if "%ports%"=="" ( | |
| echo Usage: %0 <Local Port 1>:<Server Port 1> [<Local Port 2>:<Server Port 2> ...] | |
| exit /b 1 | |
| ) | |
| @rem ssh account |
| import { reactive, watch, toRef } from "vue" | |
| const state = reactive({}) | |
| export const usePersistentData = (key, defaultValue) => { | |
| if (state[key]) { | |
| const data = toRef(state, key) | |
| watch(data, () => { | |
| window.localStorage.setItem(key, JSON.stringify(data.value)) | |
| }, { deep: true }) |