Skip to content

Instantly share code, notes, and snippets.

View naufdotal's full-sized avatar

Ariq Naufal naufdotal

View GitHub Profile
@SunDi3yansyah
SunDi3yansyah / pwl.php
Created October 12, 2015 17:06
Tugas Pemrograman Web Lanjut {M. Rudyanto Arief, MT}
<?php
$nilai_angka = 85;
$mata_kuliah = 'Pemrograman Web Lanjut';
if ($nilai_angka > 80) {
$nilai_huruf = 'A';
$ket = 'Lulus';
} elseif ($nilai_angka > 60) {
$nilai_huruf = 'B';
$ket = 'Lulus';
} elseif ($nilai_angka > 50) {
@nickleefly
nickleefly / forever.md
Last active December 13, 2016 10:26
forever your node app

Install Forever:

npm install forever -g

now your can run forever

forever --help
forever start app.js
@naufdotal
naufdotal / interfaces
Last active February 6, 2018 16:20
networking kimsufi 1 ip NAT (/etc/network/)
# 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!
@rm77
rm77 / client.py
Last active October 8, 2018 14:46
simple tcp client server, pemrograman jaringan 2017 2018
import socket
import sys
# Inisialisasi Create a TCP/IP socket
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#Koneksi
server_address = ('www.detik.com', 80)
print >>sys.stderr, 'connecting to %s port %s' % server_address
@yancyn
yancyn / jekyll-ubuntu.md
Last active July 13, 2019 06:17
Setup Jekyll on Ubuntu 16.04

Pre-requisition*

$ sudo apt-get update
$ sudo apt-get upgrade

*if fail see Upgrade Ubuntu 16.04 Live Stick

Ubuntu 16.04

$ sudo apt-get install ruby ruby-dev make gcc
@ianmustafa
ianmustafa / readme.md
Last active September 26, 2020 00:44
Konfigurasi Sublime Text 3 Favorit. Dikumpulkan dengan penuh ❤︎ oleh Ian Mustafa.

Konfigurasi Sublime Text 3 Favorit

Dikumpulkan dengan penuh ❤︎︎ oleh Ian Mustafa.

Konfigurasi

Bisa diakses melalui Ctrl+Shift+P (atau +Shift+P di Mac).

{
@purwandi
purwandi / 01-Nginx-Naxsi-Core.md
Last active January 4, 2021 12:10
Install nginx, naxsi core and naxsi ui

Install Some Dependencies

apt-get install build-essential bzip2 libpcre3-dev libssl-dev mysql-server daemon libgeoip-dev

Installing Nginx with Naxsi Core

Download Nginx, Naxsi Core dan Naxsi UI. Saya berasumsi tempat download berada di /home/compile

@evansolomon
evansolomon / gist:2274120
Created April 1, 2012 09:36
nginx WordPress multisite config
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;
@floyd0987
floyd0987 / index.html
Created April 22, 2018 16:58
react filter by category
<div id="root"></div>
@Globegitter
Globegitter / nginx-latest.sh
Last active May 7, 2022 18:19
Install the latest nginx from source for Ubuntu 14.04
# Automatically instal the latest nginx
wget -O - http://nginx.org/keys/nginx_signing.key | sudo apt-key add -
#Make a backup copy of your current sources.list file
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
#Now copy the following repositories to the end of ` /etc/apt/sources.list`
echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://nginx.org/packages/mainline/ubuntu/ trusty nginx" | sudo tee -a /etc/apt/sources.list