- Ark - https://apps.kde.org/ark/
- ouch -
This file contains 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/bash | |
set -euo pipefail | |
printf "Package name? " | |
read -r PACKAGE_NAME | |
if [[ -z "$PACKAGE_NAME" ]]; then | |
echo "Error: package name should not be empty" | |
exit 1 | |
fi |
This file contains 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
const WebSocket = require("ws"); | |
const ws = new WebSocket("wss://xapi.netovas.app/auth/inspect/ws"); | |
ws.on("error", console.error); | |
ws.on("open", () => { | |
ws.send( | |
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDY2MjE0MjAsImlkIjoxNzAzMDY5NDU4NTcyLCJyb2xlIjoicGFydG5lciJ9.m3h_XqTI-aGZPS4obnoKVfivDXy0cnVIQnoqQlqZNVA", | |
); |
This file contains 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
server { | |
server_name api.gananwo.click; | |
location / { | |
proxy_pass http://localhost:8080; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; | |
} |
This file contains 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/env bash | |
yad \ | |
--info --text 'Selamat Pagi !' --title 'Yuuko Alert' \ | |
--image './yuuko_selamat_pagi_greeting-75.png' --button="OK:0" \ | |
--width 200 --height 150 --text-align 'center' --buttons-layout 'center' \ | |
--center |
This file contains 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
[Unit] | |
Description=Service description | |
[Service] | |
Type=simple | |
User=admin | |
WorkingDirectory=/home/admin/project-name | |
ExecStart=/usr/bin/node /home/admin/project-name/dist/index.js | |
Restart=on-failure |
This file contains 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
const arr = ['Saya', 'ingin', 'belajar', 'bersama'] | |
arr.forEach((element, index) => { | |
console.log(`Item : ${element} Index ke ${index}`) | |
}) |
This file contains 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
for (let baris = 1; baris <= 5; baris++) { | |
let selisih = 4; | |
for (let kolom = 1, x = baris; kolom <= 5; kolom++) { | |
if (kolom <= baris) { | |
process.stdout.write(x + " "); | |
x += selisih; | |
selisih--; | |
} | |
} | |
console.log(); |
This file contains 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
let j = 10; | |
for (let i = 0; i < 9; i++) { | |
process.stdout.write(j + ' '); | |
if (i % 2 == 0) j += 4; | |
else j++; | |
} |
This file contains 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
# CREATED BY TAUFIK HIDAYAT | |
# BANDUNG, 13 SEPTEMBER 2021 | |
from tabulate import tabulate # import module untuk membuat tabel | |
data = [] # inisialisasi list data | |
jmlMhs = int(input('Masukkan jumlah mahasiswa: ')) # input jumlah mahasiswa | |
for i in range(jmlMhs): | |
nama = input('\nMasukkan nama: ') # input nama |