Skip to content

Instantly share code, notes, and snippets.

View naufdotal's full-sized avatar

Ariq Naufal naufdotal

View GitHub Profile
@naufdotal
naufdotal / bandwidth-ks9.txt
Created February 20, 2020 17:45
Bandwidth Benchmark 100 Mbps Kimsufi KS9
-------------------------------------------
Running bandwidth benchmark...
-------------------------------------------
----------------------------------------------
Download from Cachefly (http://cachefly.cachefly.net/100mb.test)
Download Cachefly: 11.2MB/s
-------------------------------------------
@naufdotal
naufdotal / ping-ks9.txt
Created February 20, 2020 17:47
PING Kimsufi 100mbps KS9
-------------------------------------------
Running ping tests...
-------------------------------------------
----------------------------------------------
Pings (cachefly.cachefly.net):
PING cachefly.cachefly.net (205.234.175.175) 56(84) bytes of data.
64 bytes from vip1.G-anycast1.cachefly.net (205.234.175.175): icmp_seq=1 ttl=59 time=6.14 ms
64 bytes from vip1.G-anycast1.cachefly.net (205.234.175.175): icmp_seq=2 ttl=59 time=6.14 ms
@naufdotal
naufdotal / ghost.conf
Created July 28, 2020 22:54
nginx config ghost redirect www to non-www and HTTP to HTTPS
server {
listen 443 http2;
server_name namadomain.com www.namadomain.com;
set $my_var 0;
if ($host = 'www.namadomain.com') {
set $my_var 1;
}
if ($my_var = 1) {
rewrite ^/(.*)$ https://namadomain.com$request_uri permanent;
@naufdotal
naufdotal / custom-tags.hbs
Created February 18, 2023 17:46
Custom Tags Page ghost blog
{{!< default}}
<header class="post-header {{#if feature_image}} has-cover {{/if}}">
<div class="inner">
<h1 class="post-title">{{{title}}}</h1>
{{#if feature_image}}
<div class="post-cover cover">
<img
srcset="{{img_url feature_image size="s"}} 320w,
{{img_url feature_image size="m"}} 640w,
@naufdotal
naufdotal / compose.yaml
Created March 13, 2023 10:54
Protect Wordpress Login in Docker container with Fail2Ban
#taken from https://github.com/docker/awesome-compose/tree/master/wordpress-mysql
services:
db:
# We use a mariadb image which supports both amd64 & arm64 architecture
image: mariadb:10.6.4-focal
# If you really want to use MySQL, uncomment the following line
#image: mysql:8.0.27
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- db_data:/var/lib/mysql