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
| # --------------------------------------------------------------------------- | |
| # Script: export_tables.ps1 | |
| # Description: Exports last 100 records to CSV with 100-char cell truncation | |
| # Generated for: db_nmsapps_core (Manila Time/GMT+0800) | |
| # --------------------------------------------------------------------------- | |
| # Database Configuration | |
| $Server = "localhost" | |
| $Port = "3366" | |
| $Database = "db_name" |
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
| async function collectAll() { | |
| let scroller = document.querySelector('#channels'); | |
| let seen = new Set(); | |
| // Scroll to top | |
| scroller.scrollTop = 0; | |
| await new Promise(r => setTimeout(r, 1000)); | |
| // Scroll down until end | |
| let lastScrollTop = -1; |
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
| @echo off | |
| setlocal enabledelayedexpansion | |
| :: Define the API to get the current public IP address | |
| set "api_url=https://api.ipify.org" | |
| :: Define the sleep duration in seconds | |
| set "sleep_duration=1" | |
| :: Get the current public IP address |
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
| <?php | |
| namespace App\Helpers; | |
| class Vite | |
| { | |
| /** | |
| * ensure below matches base: '/dist/' in vite.config.js otherwise HMR will not work | |
| * found in https://github.com/vitejs/vite/issues/7839#issuecomment-1350538408 | |
| */ | |
| const SUB_DIRECTORY = "dist"; |
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
| RequestHeader set X-Forwarded-For %{REMOTE_ADDR}s | |
| RemoteIPHeader X-Forwarded-For |
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
| # mysql 3307 | |
| frontend mysql3307-in | |
| bind *:3307 name port3307 | |
| mode tcp | |
| default_backend mysql3307-in_mes | |
| timeout client 1h | |
| backend mysql3307-in_mes | |
| mode tcp | |
| option forwardfor |
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/sh /path/to/script/rreplica-watcher.sh 2>/dev/null >/dev/null | |
| 0 2 * * * /bin/sh /path/to/script/rreplica-collate.sh 2>/dev/null >/dev/null |
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
| requests.post('https://jsonplaceholder.typicode.com/posts', | |
| headers={"content-type":"application/json"}, | |
| json={ | |
| "keyyy-nervate" :"valll-retroactive" , | |
| "keyyy-polypody" :"valll-ladakin" , | |
| "keyyy-unremonstrant" :"valll-unmetropolitan" , | |
| "keyyy-exoticism" :"valll-monarchy" , | |
| } | |
| ) |
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
| ### HTTP REQUESTER ### | |
| POST http://localhost/test/index.php | |
| Content-type: application/x-www-form-urlencoded | |
| POST_BODY: | |
| k1=v1&k2=v2 | |
| POST http://localhost/test/index.php | |
| Content-type: application/json | |
| Host: google.com | |
| Cookie: SOMECOOKIE |
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
| RewriteEngine On | |
| RewriteCond %{HTTPS} off | |
| # RewriteCond %{HTTP:X-Forwarded-Proto} !https # commenting this out because: cloudflare -> haproxyLoadbalancer -> php70server | |
| RewriteCond %{HTTP:CF-Visitor} !https | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
NewerOlder