Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Ensure the script is run as root or with sudo
if [ "$(id -u)" != "0" ]; then
echo "Please run this script as root (sudo)."
exit 1
fi
read -sp "Enter the desired Redis password: " REDIS_PASS
echo
#!/bin/bash
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Function to print colored messages
print_message() {
{
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "88afde21e58448104568b5b2d12a89cf65d9b2abb55492a8c004ceef2395c4dd"
},
"nodes": [
{
"parameters": {
"options": {}
},
{
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "88afde21e58448104568b5b2d12a89cf65d9b2abb55492a8c004ceef2395c4dd"
},
"nodes": [
{
"parameters": {
"fields": {
"values": [
@drhema
drhema / proxy.js
Last active October 23, 2023 19:44
google proxy nodejs
const express = require('express');
const { createProxyMiddleware } = require('http-proxy-middleware');
const url = require('url');
const app = express();
app.use('/', (req, res, next) => {
const targetUrl = req.query.url;
if (!targetUrl) {