Skip to content

Instantly share code, notes, and snippets.

😂
I may be slow to respond.

Fadhilatur Rochman aldhinya

😂
I may be slow to respond.
Block or report user

Report or block aldhinya

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
View harga_total.txt
create or replace procedure hargatotal2(idpemesanan in integer)
IS
totalnya number;
jumlahnya number;
harganya number;
BEGIN
select a.jumlah into jumlahnya from detail_pemesanan a join produk b on a.id_produk = b.id_produk where a.id_pemesanan=idpemesanan;
select a.harga_satuan into harganya from produk a join detail_pemesanan b on a.id_produk = b.id_produk where b.id_pemesanan=idpemesanan;
totalnya :=jumlahnya*harganya;
update pemesanan set pemesanan.harga_total=totalnya where pemesanan.id_pemesanan=idpemesanan;
@aldhinya
aldhinya / nginx_fix_404
Created Jun 9, 2019
Fix 404 Not Found when access .html permalink on nginx
View nginx_fix_404
# add to /etc/nginx/sites-available/domain
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
View to_https.txt
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://aldhi.net%{REQUEST_URI} [L,NE,R=301]
View anu
# WELCOME TO SQUID 3.5.12
# ----------------------------
#
# This is the documentation for the Squid configuration file.
# This documentation can also be found online at:
# http://www.squid-cache.org/Doc/config/
#
# You may wish to look at the Squid home page and wiki for the
# FAQ and other documentation:
# http://www.squid-cache.org/
View vpn
VPN L2TP region London
======================
Server IP: 167.99.92.13
IPsec PSK: X4FycGUgVDcL9wiFLwCa
Username: vpnuser
Password: Uv8UhhjrBrq3xxtD
Server IP: 46.101.16.70
IPsec PSK: VpK7CJRfz4kALW6r7N28
View quick.cpp
#include <iostream.h>
#include <conio.h>
void quicksort( int arr[], int left, int right)
{
int i=left, j=right;
int tmp;
int pivot=arr[(left+right)/2];
View online
<?php
/**
* SquirrelMail Configuration File
* Created using the configure script, conf.pl
*/
global $version;
$config_version = '1.4.0';
$config_use_color = 2;
View double_stack.cpp
//HEADER
const int MAX = 5;
int top = -1;
int bottom = MAX;
struct mahasiswa {
int data[MAX];
}mhs;
View ended_queue.cpp
//HEADER
#define MAX 20
using namespace std;
struct Queue
{
int front, rear, data[MAX];
} Q;
You can’t perform that action at this time.