This file contains 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
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; } |
This file contains 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 | |
# get script path | |
script_dir=$(dirname $(realpath $0)) | |
# script_dir=/home/jericho | |
# current month | |
# Ym=$(date +"%Y%m") | |
# DB PATH |
This file contains 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
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 |
This file contains 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
<?php | |
error_reporting(E_ALL); | |
function xrange($start, $end, $step = 1) { | |
for ($i = $start; $i < $end; $i += $step) { | |
yield $i; | |
} | |
} |
This file contains 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
curl -sS https://getcomposer.org/installer -o composer-setup.php | |
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer |
This file contains 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 <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; |
This file contains 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
@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> |
This file contains 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
@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 |
This file contains 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 { 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 }) |
This file contains 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 | |
# Git Account Switcher | |
# Example usage: sudo ./git-switcher.bash <git username here> | |
user=$1 | |
declare -i iuser=0 | |
declare -a users | |
declare -a emails | |
declare -a passwords | |
declare -a signkeys |
NewerOlder