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 /
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.
naufdotal / gist:400197ee54dbf9df079c84b6851877f7
Created Aug 24, 2016 — forked from evansolomon/gist:2274120
nginx WordPress multisite config
View gist:400197ee54dbf9df079c84b6851877f7
server {
listen 80 default_server;
server_name *;
root /srv/www/;
access_log /srv/www/;
error_log /srv/www/;
location / {
index index.php;
naufdotal /
Last active Dec 7, 2016 — forked from tollmanz/
Compile nginx with modules
./configure --prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/ \
--lock-path=/var/run/nginx.lock \
--http-client-body-temp-path=/var/cache/nginx/client_temp \
--http-proxy-temp-path=/var/cache/nginx/proxy_temp \
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
View djangomalang.conf
<VirtualHost *:8080>
DocumentRoot /var/www/html/django/djangomalang/
Errorlog /var/log/apache2/
CustomLog /var/log/apache2/ combined
WSGIScriptAlias / /var/www/html/django/djangomalang/djangomalang/
Alias /static/ /var/www/html/django/djangomalang/static/
Alias /media/ /var/www/html/django/djangomalang/media/
View random.php
$links = array (
You can’t perform that action at this time.