Skip to content

Instantly share code, notes, and snippets.

Ariq Naufal naufdotal

Block or report user

Report or block naufdotal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
naufdotal / ping-ks9.txt
Created Feb 20, 2020
PING Kimsufi 100mbps KS9
View ping-ks9.txt
Running ping tests...
Pings (
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=59 time=6.14 ms
64 bytes from ( icmp_seq=2 ttl=59 time=6.14 ms
naufdotal / bandwidth-ks9.txt
Created Feb 20, 2020
Bandwidth Benchmark 100 Mbps Kimsufi KS9
View bandwidth-ks9.txt
Running bandwidth benchmark...
Download from Cachefly (
Download Cachefly: 11.2MB/s
View 3d-fold-out-reveal.markdown

3D Fold out reveal

Click to reveal more info. Info folds out beneath the card, while the rest of the grid recedes.

A Pen by Andrew Canham on CodePen.


View cors-for-the-wordpress-rest-api.php
function my_customize_rest_cors() {
remove_filter( 'rest_pre_serve_request', 'rest_send_cors_headers' );
add_filter( 'rest_pre_serve_request', function( $value ) {
header( 'Access-Control-Allow-Origin: *' );
header( 'Access-Control-Allow-Methods: GET' );
header( 'Access-Control-Allow-Credentials: true' );
header( 'Access-Control-Expose-Headers: Link', false );
naufdotal /
Created Nov 20, 2018 — forked from gregf/
Private networking on ovh with proxmox

On your proxmox server edit /etc/interfaces and add a vmbr1 interface like so

auto lo
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
View gist:8112ec060204cef6ef44351aa5fa0f96
<p style="width: 70%;margin: auto;margin-top: 5%;font-size:larger;text-align:center">
Download a file from any URL</p>
<form method="post" style="width: 70%;margin: auto;margin-top: 10%;">
<input name="url" size="50" placeholder="Source URL" style="width: 100%;height: 10%;font-size: 1.5em;padding:10px" required>
<input name="submit" type="submit" value="Download" style="width: 30%;height: 10%;margin: 5% auto; display: block;">
<p style="width: 70%;margin: auto;margin-top: 10%;font-size:larger;text-align:center">
To <?php echo getcwd(); ?></p>
<p style="width: 70%;margin: auto;font-size: smaller;text-align: center;position: fixed;bottom: 0;background: #fff;">
Powered by: <a href="" target="_blank" style="color:#f60;text-decoration:none;">Karthik</a></p>
naufdotal / interfaces
Last active Feb 6, 2018
networking kimsufi 1 ip NAT (/etc/network/)
View interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
# If you want to manage part of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!
naufdotal / Startup Command
Last active Feb 13, 2018
NGINX service file - startup
View Startup Command
update-rc.d nginx defaults for Ubuntu 14.04
systemctl enable nginx.service for Centos 7
naufdotal / ghost
Created Nov 29, 2016
View ghost
#! /bin/sh
# Provides: ghost
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Ghost Blogging Platform
# Description: Ghost: Just a blogging platform
naufdotal / ghost-nginx.conf
Created Nov 29, 2016
Ghost Configuration on nginx (proxy pass)
View ghost-nginx.conf
server {
listen 443 ssl http2; ## listen for ipv4; this line is default and implied
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://***.***.***.115:1337;
#rewrite sysmblo jadi https://www.
You can’t perform that action at this time.