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
naufdotal / readme.md
Created Nov 20, 2018 — forked from gregf/readme.md
Private networking on ovh with proxmox
View readme.md

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
        address  167.114.101.88
        netmask  255.255.255.0
View gist:8112ec060204cef6ef44351aa5fa0f96
<html>
<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="https://karthikbhat.net/portfolio" target="_blank" style="color:#f60;text-decoration:none;">Karthik</a></p>
@naufdotal
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
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
naufdotal / ghost
Created Nov 29, 2016
/etc/init.d/ghost
View ghost
#! /bin/sh
### BEGIN INIT INFO
# 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
### END INIT INFO
@naufdotal
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
server_name www.sysmblo.com sysmblo.com;
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
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 domain.com *.domain.com;
root /srv/www/domain.com/public;
access_log /srv/www/domain.com/log/access.log;
error_log /srv/www/domain.com/log/error.log;
location / {
index index.php;
@naufdotal
naufdotal / compile-nginx.sh
Last active Dec 7, 2016 — forked from tollmanz/compile-nginx.sh
Compile nginx with modules
View compile-nginx.sh
./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/nginx.pid \
--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>
ServerAdmin ariqnz@gmail.com
ServerName malangbanget.com
DocumentRoot /var/www/html/django/djangomalang/
Errorlog /var/log/apache2/malangbanget.com-error.log
CustomLog /var/log/apache2/malangbanget.com-access.log combined
WSGIScriptAlias / /var/www/html/django/djangomalang/djangomalang/wsgi.py
Alias /static/ /var/www/html/django/djangomalang/static/
Alias /media/ /var/www/html/django/djangomalang/media/
View random.php
<?php
$links = array (
"http://www.nyomot.info/alasan-anda-wajib-pindah-windows-10/",
"http://www.nyomot.info/gambar-keindahan-flora-dan-fauna-madagaskar/",
"http://www.nyomot.info/periklanan-di-dunia-internet-akan-dikenakan-tarif-pajak/",
"http://www.nyomot.info/rahasia-cepat-diterima-google-adsense/",
"http://www.nyomot.info/5-macam-karakter-teman-sekolah-yang-paling-dikenal/",
"http://www.nyomot.info/tips-mengawali-hari-dengan-mood-baik-2/",
"http://www.nyomot.info/semakin-mudah-belanja-di-google-dengan-munculnya-tombol-beli/",
"http://www.nyomot.info/my-talking-tom-terbaru-v2-3-1-apk/",
You can’t perform that action at this time.