request_definition
pola parameter pengecekan otorisasi.policy_definition
pola otorisasi yang terdaftar.role_definition
pola role atau group yang terdaftar.policy_effect
kondisi untuk menentukan diizinkan atau tidak.matchers
kondisi yang digunakan untuk memenuhi kondisi pada policy effect.
-
Installed Python 3.* above (my recomendations 3.7), you can download here
-
Text editor or IDE, everything you like it. an example vim, micro, nano, visual studio code, pycharm, Netbeans etc. (maybe i use jupyter notebook XD)
-
a cup of coffe and enjoy :D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TYPE jeniskelamin AS ENUM('l', 'p'); | |
CREATE TABLE users ( | |
username VARCHAR(255) NOT NULL, | |
password VARCHAR(255) NOT NULL, | |
jk jeniskelamin NOT NULL | |
) PARTITION BY LIST(jk); | |
CREATE TABLE users_l PARTITION OF users FOR VALUES IN('l'); | |
CREATE TABLE users_p PARTITION OF users FOR VALUES IN('p'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# connect to screen using HDMI | |
xrandr --output HDMI-1 --mode 1360x768 --auto --above eDP-1 | |
# disconnect | |
xrandr --output HDMI-1 --off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm i -g $(npm outdated -g --depth=0 --parseable | cut -d: -f2 | awk -F'\n' ' { printf "%s ", $1 } ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
NewerOlder