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
apt autoremove --purge | |
apt clean | |
find /var/lib/apt/lists/ -maxdepth 1 -type f -print0 | xargs -0 rm |
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 debian:latest as dapt | |
RUN apt update | |
FROM dapt as dockerclient | |
RUN apt install docker.io -y | |
FROM dapt as vscode | |
RUN apt install curl net-tools bash-completion -y && \ | |
curl -fsSL https://code-server.dev/install.sh | sh ;\ | |
apt autoremove --purge -y;\ |
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
http { | |
server { | |
listen 80; | |
listen [::]:80 | |
server_name example.com; | |
location / { | |
proxy_pass https://127.0.0.1; | |
proxy_ssl_server_name on; | |
proxy_ssl_name example.local; |
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 | |
# Update time and date from cloudflare with curl and date commands. | |
# It is easy to use ntp is not installed servers. | |
# You can execute for one time update or execute with service arg to update every 600 second. | |
function updateDate { | |
date -s"@$(curl ahmetozer.org/cdn-cgi/tracert -s | grep ts= | cut -d"=" -f2 | cut -d"." -f1)" | |
if [ "$?" == "0" ] | |
then | |
updated="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
package main | |
import ( | |
"io" | |
"log" | |
"net" | |
"os" | |
) | |
func forward(conn net.Conn) { |
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 | |
set -e | |
if [[ $EUID -ne 0 ]]; then | |
echo "$0 must be run as root" | |
exit 1 | |
fi | |
dnf install -y libselinux-utils # setenforce | |
setenforce 0 |
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 ( | |
"fmt" | |
"strings" | |
) | |
func getINI(iniText string, key string) string { | |
keyLoc := strings.Index(iniText, key) |
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
{ | |
"origins" : [ | |
"ahmetozer.org", | |
"apicors.ahmetozer.org" | |
], | |
"hosts" : [ | |
"hub.docker.com" | |
] | |
} |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> | |
<table> | |
<thead> | |
<tr> | |
<th scope="col">Name</th> | |
<th scope="col">Description</th> | |
<th scope="col">Last Update</th> | |
<th scope="col">Pull Count</th> | |
</tr> |
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 | |
date | |
date -s"@$(curl ahmetozer.org/cdn-cgi/tracert -s | grep ts= | cut -d"=" -f2 | cut -d"." -f1)" | |
date |