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 | |
echo Removing Selenium Grid Hub and Node services... | |
echo Current date and time: %DATE% %TIME% | |
REM Set variables | |
set NSSM_PATH=C:\nssm\nssm.exe | |
REM Check if NSSM exists | |
if not exist "%NSSM_PATH%" ( | |
echo ERROR: NSSM not found at %NSSM_PATH%. Please update NSSM_PATH or install NSSM. |
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
kind create cluster --config=./kind.yaml |
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
tunnel: xxxxx | |
credentials-file: /root/.cloudflared/xxxxx.json | |
url: https://127.0.0.1:16443 | |
no-tls-verify: true | |
#micro kubernetes api server port: 16443 normally it is 6443 | |
# we need to disable "certificate-authority-data" in .kube/config. | |
# when we use the kubectl port-forward we will get this error message "error: error upgrading connection: Upgrade request required" |
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
#!/usr/bin/python | |
import RPi.GPIO as GPIO | |
from time import sleep | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setwarnings(False) | |
GPIO.setup(17, GPIO.OUT) # It does Auto set LOW and Turn Relay ON | |
print(GPIO.input(17)) | |
sleep(5) | |
GPIO.output(17, GPIO.HIGH) # Off Relay | |
print(GPIO.input(17)) |
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
package menu | |
type Menu struct { | |
gorm.Model | |
Name string `json:"Name" validate:"required,min=3,max=15" conform:"trim"` | |
//Desc string | |
URL string `json:"URL" conform:"trim"` //validate:"required" | |
Blank bool `json:"Blank"` | |
Root bool `json:"Root"` |
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/sh | |
# chmod +x /etc/init.d/frps | |
# update-rc.d frps defaults | |
# update-rc.d frps enable | |
### BEGIN INIT INFO | |
# Provides: frps | |
# Required-Start: $local_fs $network | |
# Required-Stop: $local_fs | |
# Default-Start: 2 3 4 5 |
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
FROM php:7-zts | |
RUN apt-get update | |
RUN apt-get install git libssl-dev libpq-dev libcurl4-openssl-dev -y | |
# Install mysqli+opcache+pdo | |
RUN docker-php-ext-install mysqli pdo pdo_mysql pdo_pgsql opcache curl | |
RUN docker-php-ext-enable mysqli pdo pdo_mysql pdo_pgsql opcache curl | |
# Install Redis | |
RUN pecl install redis | |
RUN docker-php-ext-enable redis | |
# Install mongodb |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
// Person object | |
type Person struct { | |
FirstName, LastName string // Küçük harf olursa json kütüphanesi erişemeyecek. |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
// Person object | |
type Person struct { | |
FirstName, LastName string // Küçük harf olursa json kütüphanesi erişemeyecek. |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
// Person object | |
type Person struct { | |
FirstName, LastName string // Küçük harf olursa json kütüphanesi erişemeyecek. |
NewerOlder