Skip to content

Danang Setya Pramana - Working Memory

This is my working memory when i forgot some command and some code for my work

Danang Setya Pramana - Working Memory

This is my working memory when i forgot some command and some code for my work

  • Home
cli linux

linux gpg-check key failed update

danang setya pramana January 12, 2026 0 Comments

# 1. Clean DNF cache sudo dnf clean all # 2. Update the AlmaLinux release package (installs new keys) sudo dnf upgrade almalinux-release -y # 3. Import the latest AlmaLinux…

postgreSql

Backup & Restore Postgre SQL Database

danang setya pramana January 10, 2026 0 Comments

pg_dump and pg_restore are command-line utilities for backing up and restoring PostgreSQL databases. The tar format is one of the non-plain text archive formats that pg_dump can produce and which pg_restore is designed to handle. Backing Up with pg_dump (TAR format) …

postgreSql

change all tables owner to specified user

danang setya pramana January 7, 2026 0 Comments

first use select to show all tables from old owner SELECT tablename, schemaname,tableowner FROM pg_tables WHERE schemaname = 'public' AND tableowner = 'oldowner'; and make script for looping alter table…

postgreSql

To drop all primary key constraints in the public schema of a PostgreSQL database

danang setya pramana January 7, 2026 0 Comments

DO $$ DECLARE r RECORD; BEGIN -- Select all primary key constraints in the 'public' schema FOR r IN ( SELECT table_name, constraint_name FROM information_schema.table_constraints WHERE constraint_type = 'PRIMARY KEY'…

postgreSql

strict change column type table postgre from string to int

danang setya pramana December 29, 2025 0 Comments

ALTER TABLE table_name ALTER COLUMN column_name TYPE BIGINT USING (column_name::bigint);

drizzle postgreSql

drizzle init for postgres nextjs

danang setya pramana December 29, 2025 0 Comments

sebelumnya buat .env dan isi connection string untuk postgre POSTGRE_URL="postgresql://postgres:userpassword@localhost:5432/dbname" buat drizzle config import { defineConfig } from "drizzle-kit"; export default defineConfig({ schema: "./src/lib/db/postgresql/schema.ts", out: "./src/lib/drizzle/postgresql", dialect: "postgresql", dbCredentials: {…

postgreSql

migrate database from mysql to postgre using docker pg_loader

danang setya pramana December 29, 2025 0 Comments

karena saya menggunakan jendela saat ini , terpaksa saya menggunakan pg_loader dari docker , pertama ambil packagenya dulu dari remote milik dimitri docker pull ghcr.io/dimitri/pgloader:latest pertama pastikan kalian punya akses…

postgreSql

postgre query grant & alter

danang setya pramana December 22, 2025 0 Comments

mengubah privileges user untuk semua tables GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO user; ubah nama field di dalam table ALTER nama_table RENAME COLUMN nama_lama TO nama_baru;…

prisma

How to use npx prisma db seed

danang setya pramana December 15, 2025 0 Comments

Before running the command, ensure you have configured your project to support seeding:  Define the seed script location In your package.json file, you must specify the command to run your seed script. This…

postgreSql

grant new user to database postgre

danang setya pramana December 15, 2025 0 Comments

GRANT CONNECT ON DATABASE mydatabase TO myuser; GRANT USAGE ON SCHEMA public TO myuser; GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO myuser;

Posts pagination

1 2 3 … 8

« Previous Page — Next Page »

Recent Posts

  • clone git specifig branch
  • install pm2 on global linux environtment
  • install nvm in RHEL linux
  • add sudoer existing user
  • install composer on RHEL server linux

Recent Comments

No comments to show.

Archives

  • February 2026
  • January 2026
  • December 2025
  • February 2025
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • February 2024
  • November 2023
  • July 2023
  • June 2023

Categories

  • cli
  • cli
  • Codeigniter 4
  • docker
  • Dockerfile
  • drizzle
  • Flutter
  • git
  • git branch
  • git clone
  • git push
  • git rm
  • golang
  • IOS
  • Iseng-iseng
  • linux
  • Mongodb
  • Mysql
  • Next Auth
  • Next JS
  • nginx
  • PHP
  • Phpunit
  • pm2
  • postgreSql
  • prisma
  • private repo
  • python
  • React
  • React Native
  • restore
  • rm
  • screen
  • UI
  • windows

You Missed

Iseng-iseng

clone git specifig branch

Iseng-iseng

install pm2 on global linux environtment

cli linux

install nvm in RHEL linux

Iseng-iseng

add sudoer existing user

Danang Setya Pramana – Working Memory

This is my working memory when i forgot some command and some code for my work

Copyright © All rights reserved | Blogus by Themeansar.