Skip to content

Instantly share code, notes, and snippets.

View aldhinya's full-sized avatar
😂
I may be slow to respond.

Fadhilatur Rochman aldhinya

😂
I may be slow to respond.
View GitHub Profile
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package knapsack;
import java.util.*;
import java.io.*;
import java.lang.*;

UBUNTU

Freeze

  • Restart = Alt+PrintScreen+R+S+E+I+U+B
  • Shutdown = Alt+PrintScreen+R+S+E+I+U+O

NOMODESET

  • sudo nano /etc/default/grub
input.addKeyListener(new KeyListener(){
String loading = " . . . ";
String kata = "";
@Override
public void keyTyped(KeyEvent e) {
// char c = e.getKeyChar();
// kata = kata.concat(String.valueOf(c));
// if(a.isSelected()){
// Inggris translate = new Inggris();
// output.setText(translate.getMean(kata));
#
# Sample configuration file for ISC dhcpd for Debian
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
#
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
@aldhinya
aldhinya / mail
Last active April 23, 2019 11:16
# Virtual Host configuration for example.com
#
# You can move that to a different file under sites-available/ and symlink that
# to sites-enabled/ to enable it.
#
server {
listen 80;
server_name mail.jarkom.com;
//HEADER
#define MAX 20
using namespace std;
struct Queue
{
int front, rear, data[MAX];
} Q;
//HEADER
const int MAX = 5;
int top = -1;
int bottom = MAX;
struct mahasiswa {
int data[MAX];
}mhs;
<?php
/**
* SquirrelMail Configuration File
* Created using the configure script, conf.pl
*/
global $version;
$config_version = '1.4.0';
$config_use_color = 2;
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 / queue
Created September 19, 2019 09:27
:for e from 5 to 254 do={/queue simple add name="USER-$e" target="192.168.4.$e" max-limit=5M/5M}