git clone git@github.com:USERNAME-KAMU/REPOSITORY-HASIL-FORK.git
cd REPOSITORY-HASIL-FORK
git remote add upstream https://github.com/USERNAME-PEMILIK-ASLI/REPOSITORY-ASLI.git
git fetch upstream
import java.util.Scanner; | |
public class SegitigaBintang { | |
public static void main(String[] args) { | |
System.out.print("Mau berapa bintang? "); | |
Scanner scanner = new Scanner(System.in); | |
int bintang = scanner.nextInt(); | |
// int bintang = 5; |
abstract class Makhluk { | |
abstract void berjalan(); | |
void tidur() { | |
System.out.println("Kucing sedang tidur"); | |
} | |
} | |
interface Hewan { | |
void makan(); | |
} |
import org.json.JSONArray; | |
import org.json.JSONObject; | |
import org.json.JSONTokener; | |
import java.net.URL; | |
import java.net.HttpURLConnection; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
public class HTTPRequest { | |
public static void main(String[] args) { |
import java.lang.Runnable; | |
import java.net.URL; | |
import java.net.HttpURLConnection; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
class DataCollector implements Runnable { | |
StringBuffer result; |
git clone git@github.com:USERNAME-KAMU/REPOSITORY-HASIL-FORK.git
cd REPOSITORY-HASIL-FORK
git remote add upstream https://github.com/USERNAME-PEMILIK-ASLI/REPOSITORY-ASLI.git
git fetch upstream
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Toko Online</title> | |
</head> | |
<body> | |
<div id="katalog"></div> |
sudo npm i -g $(npm outdated -g --depth=0 --parseable | cut -d: -f2 | awk -F'\n' ' { printf "%s ", $1 } ') |
#!/bin/bash | |
# connect to screen using HDMI | |
xrandr --output HDMI-1 --mode 1360x768 --auto --above eDP-1 | |
# disconnect | |
xrandr --output HDMI-1 --off |
#!/usr/bin/openrc-run | |
# MONGOHOME="/usr/local/mongodb" | |
CONFIGFILE="/etc/mongodb.conf" | |
DBPATH=`awk -F= '/^dbpath[ ]*=/{print $2}' "$CONFIGFILE" |sed -e 's/^[ ]*//'` | |
COMMAND="mongod" | |
OPT="--config $CONFIGFILE" | |
mongod=$COMMAND | |
PIDPATH="/var/run/mongodb/mongodb.pid" |