Skip to content

Instantly share code, notes, and snippets.

View mashanz's full-sized avatar
😗
the code is uwu

Papan Berjalan mashanz

😗
the code is uwu
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCocWDGqUYQuW32JXNYwiX3RDWjQW4LxXUYKsvmc7Odd89Ewp8tdgv5Liz5gl2x04iM1s60l0ExBAkp+SlRcmUliMeNbrTGAy74GhNomQPf+/62JY2i762IhvahphJNYu1FgCotlv0FXB+HWoEWdX99geQ6b1S8mvpcPqdPKR+s9OIIq8WOsNWjlnSl+mngO4aT5swFVlFoJ0RbpB6D6yxLB3BRiyvsjdOKQeKAmkLU0pFyZNUZTV5LTDqsjvCtd2dYd3utRgQuvdLzOZwJxv3mjLDVepyQ2boZEP2OpLeEcoKL9QvC0YoDmy2weH+R3rc8w509dkr3eIPvScqe3hfGCd/6/+t9/iS2YECaVzI/026kGnj0Wuh5y0OyWDvU7nYfm8TGRGD45TUo4RitoCQQGI5yZrpCltgLrWwPpucq/jUlAw7DKGhBnOc20DlYml9YLrUaZsjV64yVzzxFiVBm0EARfwOewyUj38BB/dEtt5JCH6LiaFzZMus7SPhNMUE= [email protected]
@mashanz
mashanz / fhci.py
Created March 26, 2024 01:31
Scraping Script untuk get all data Rekruitment FHCI
import requests
import pandas as pd
BASE_URL = "https://rekrutmenbersama2024.fhcibumn.id/job"
req = requests.Session().get(f"{BASE_URL}")
load_record = requests.get(f'{BASE_URL}/loadRecord/').json().get("data").get("result")
length = len(load_record)
data = []
for key, vacancy in enumerate(load_record):
print(f"{vacancy.get("vacancy_id")} - {key}/{length}")
try:
@mashanz
mashanz / gist:b0e911f4137be416c8ff59f170874511
Created May 31, 2023 05:08
SvelteKit Project Initiation using MongoDB and Docker
@mashanz
mashanz / +page.svelte
Created November 28, 2022 08:26
Set Milestone (writen in SvelteKit)
<script>
let milestone_num = 0;
let amount = 0;
$: dates = [];
$: percentage = `${100 / milestone_num} %`;
$: amount_split = amount / milestone_num;
function current_date(i, the_dates) {
if (the_dates[i - 1]) {
return new Date(
CREATE TABLE IF NOT EXISTS pt_users (
id serial PRIMARY KEY,
email VARCHAR ( 255 ) UNIQUE NOT NULL,
password VARCHAR ( 255 ) NOT NULL,
created_on TIMESTAMP NOT NULL,
role VARCHAR (50) NOT NULL
)
@mashanz
mashanz / tiket.py
Last active November 9, 2021 08:40
TICKET SCRIPT
# INI CUMA NGE PRINT BIASA, GA ADA YANG ANEH DARI PERINTAH PRINT
print(" PENJUALAN TIKET TRAVEL ")
print(' "[Syeh Ariansah_12210841_12.1c.30]" ')
print("========================================")
# INI IMPORT PAKCAGE/LIBRARY/BAWAAN PYTHON,
# DENGAN KATA LAIN KITA PAKE SAJA KODINGAN/FITUR YANG SUDAH ADA
# LEBIH JELAS NYA KAMU BISA BACA DOKUMENTASI PYTHON JSON DI SINI
# https://www.w3schools.com/python/python_json.asp
import json
#!/bin/bash
# Discussion, issues and change requests at:
# https://github.com/nodesource/distributions
#
# Script to install the NodeSource Node.js 14.x repo onto a
# Debian or Ubuntu system.
#
# Run as root or insert `sudo -E` before `bash`:
#

Install ssh server

sudo apt-get update -y
sudo apt-get install openssh-server

Add this in the end of file /etc/ssh/ssh_config

TCPKeepAlive yes
ClientAliveInterval 3600

Karnel List

python -m jupyter kernelspec list

Karnel Create

python -m ipykernel install --user --name MY_CONDA_ENVIRONMENT