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)
totalnya number;
jumlahnya number;
harganya number;
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 / 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 ^{REQUEST_URI} [L,NE,R=301]
View anu
# ----------------------------
# This is the documentation for the Squid configuration file.
# This documentation can also be found online at:
# You may wish to look at the Squid home page and wiki for the
# FAQ and other documentation:
View vpn
VPN L2TP region London
Server IP:
IPsec PSK: X4FycGUgVDcL9wiFLwCa
Username: vpnuser
Password: Uv8UhhjrBrq3xxtD
Server IP:
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
* SquirrelMail Configuration File
* Created using the configure script,
global $version;
$config_version = '1.4.0';
$config_use_color = 2;
View double_stack.cpp
const int MAX = 5;
int top = -1;
int bottom = MAX;
struct mahasiswa {
int data[MAX];
View ended_queue.cpp
#define MAX 20
using namespace std;
struct Queue
int front, rear, data[MAX];
} Q;
You can’t perform that action at this time.