View config.yml
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" |
View relay.py
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)) |
View tree.go
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"` |
View frps
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 |
View Dockerfile
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 |
View v5.go
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. |
View v4.go
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. |
View v3.go
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. |
View v2.go
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. |
View v1.go
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