Skip to content

Instantly share code, notes, and snippets.

View nimdasx's full-sized avatar
🤧
I may be slow to respond.

nimdasx

🤧
I may be slow to respond.
View GitHub Profile
@nimdasx
nimdasx / notif-discord.sh
Created May 30, 2024 16:01
notif-discord.sh
#masukkan ini ke dalam file .ssh/rc
~/notif-discord.sh "user $(whoami) login ke server $(hostname) pada ${date}"
#buat file notif-discord.sh dengan isi
discord_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
discord_channel=11111111111111111111
discord_pesan=$1
curl \
-i \
-H "Accept: application/json" \
@nimdasx
nimdasx / mysql-backup.sh
Last active May 30, 2024 15:21
mysql-backup.sh
prefix=$(hostname)
host=0.0.0.0
user=root
pass=xxx
port=3306
databases="xxx yyy"
lokasi="./"
for database in $databases
do
@nimdasx
nimdasx / mysql-restore.sh
Created May 30, 2024 13:36
mysql-restore.sh
read -p "nama file : " nama_file
read -p "nama db : " nama_db
host=0.0.0.0
user=root
pass=xxx
port=3306
echo "
CREATE DATABASE ${nama_db}
@nimdasx
nimdasx / mysql-backup-per-table.sh
Created May 29, 2024 15:24
mysql-backup-per-table.sh
host=localhost
user=qqq
pass=xxx
databases="aaa bbb ccc"
lokasi_utama="/home/qqq/www-mysql-backup-per-file/"
for database in $databases
do
tanggal=$(date +"%Y-%m-%d_%H-%M-%S")
@nimdasx
nimdasx / prepare-publish-app-to-playstore.md
Last active February 5, 2024 13:32
prepare publish app to playstore

Prepare to Publish App to Playstore

What You Get , and dont forget to .gitignore

  • /android/key.properties
  • /android/upload-keystore.jks

Ganti Logo

edit pubspec.yaml

dev_dependencies:
@nimdasx
nimdasx / odoo17ubuntu22amd64.md
Last active December 14, 2023 10:40
odoo 17 ubuntu 22 amd64
mkdir ~/odoo17 

cd ~/odoo17  
mkdir postgres14  
cd postgres14  
vim docker-compose.yml  
services:
@nimdasx
nimdasx / odoo16communityubuntu22amd64.md
Last active November 8, 2023 22:27
odoo 16 community ubuntu 22 amd64
mkdir ~/odoo16community 

cd ~/odoo16community  
mkdir postgres16  
cd postgres16  
vim docker-compose.yml  
services:
@nimdasx
nimdasx / menghitung-daging-qurban-sapi.php
Last active June 28, 2023 06:02
Menghitung Daging Qurban Sapi
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Menghitung Daging Qurban Sapi</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
</head>
<body>
@nimdasx
nimdasx / vueondocker.md
Last active June 16, 2023 08:46
Vue on Docker

Vue on Docker Mac / Linux

init dan install

docker run -it --rm -v "$PWD":/app -w /app node:lts-alpine npm init vue@latest
cd <your-project-name>
docker run -it --rm -v "$PWD":/app -w /app node:lts-alpine npm install

run

@nimdasx
nimdasx / nodedocker.md
Last active June 16, 2023 07:18
node docker

nodejs on docker

di windows cmd

docker run -it --rm -v "%cd%":/app -w /app node:lts-alpine blablbalbla.js

di windows powershell

docker run -it --rm -v $pwd\:/usr/src/app -w /usr/src/app node:lts-alpine blablbalbla.js