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
server { | |
listen 80; | |
server_name git.contoh.com; | |
include snippets/letsencrypt.conf; | |
return 301 https://git.contoh.com$request_uri; | |
} | |
server { | |
listen 443 ssl http2; |
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
[Unit] | |
Description=Gitea (Git with a cup of tea) | |
After=syslog.target | |
After=network.target | |
### | |
# Don't forget to add the database service requirements | |
### | |
# | |
#Requires=mysql.service | |
#Requires=mariadb.service |
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
/* SCSS Code */ | |
@mixin padding($name, $num, $unit) { | |
@if $name == "bottom" or $name == "b" { | |
.pb-#{$num} { | |
padding-bottom: $num + $unit; | |
} | |
} | |
@if $name == "top" or $name == "t" { | |
.pt-#{$num} { | |
padding-top: $num + $unit; |
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 | |
read -rp "Masukkan nama domain: " DOMAIN | |
CHKDOMAIN=$(dig ns "${DOMAIN}" +short | grep -o cloudflare | head -1) | |
if [ ! "${CHKDOMAIN}" = "cloudflare" ]; then | |
echo "Tidak menggunakan NS Cloudflare" | |
else | |
echo "Menggunakan NS Cloudflare" | |
fi |
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 | |
FILE="cortana.sh" | |
printf "\n" | |
echo "-------------------------------------" | |
echo " CORTANA v0.1" | |
echo " https://erol.my.id/cortana.sh" | |
echo "-------------------------------------" | |
printf "\n" | |
echo "Hello, what do you want to do today?" |
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
Show hidden characters
{ | |
"Insert Bootstrap 4 HTML5 snippets": { | |
"scope": "html,php", | |
"prefix": "erto-html5", | |
"body": [ | |
"<!doctype html>", | |
"<html lang=\"en\">", | |
" <head>", | |
" <title>Title</title>", | |
" $BLOCK_COMMENT_START Required meta tags $BLOCK_COMMENT_END", |
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 | |
ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -rn | head -25 |
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
# Filter fail2ban untuk unsuccesfull MSSQL authentication | |
[INCLUDES] | |
before = common.conf | |
[Definition] | |
_daemon = mssqld | |
failregex = Login failed for user .* \[CLIENT: <HOST>\] | |
ignoreregex = |
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
5.188.210.4 | |
5.188.210.6 | |
5.188.210.8 | |
5.188.210.9 | |
23.95.86.47 | |
46.166.143.100 | |
70.169.150.122 | |
84.201.18.197 | |
84.54.58.113 | |
104.223.30.152 |
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
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2018 | |
######################################################################## | |
# ---------------------------------------------------------------------- | |
# Rewrite from HTTP to HTTPS - if you want to use it, comment it out | |
# ---------------------------------------------------------------------- |