Skip to content

Instantly share code, notes, and snippets.

View TopekoX's full-sized avatar
🐧
Making Love with Code...

Ucup TopekoX TopekoX

🐧
Making Love with Code...
View GitHub Profile
@TopekoX
TopekoX / Perintah Dasar PostgreSQL.md
Last active March 24, 2025 04:17
Dasar-dasar perintah PostgresSQL

Perintah Dasar PostgreSQL

Login to CLI Postgre

Help

$ psql --help
@TopekoX
TopekoX / Angular-cli.md
Created May 28, 2022 15:20 — forked from cortesben/Angular-cli.md
Bash commands and Angular CLI commands

#Angular-cli oh shit!

https://cli.angular.io/reference.pdf

Commands Description
ng help returns all commands with flags they can take as a param
ng new [project-name] create a brand new angular project with live server BANG!
ng init grabs name from folder that already exist
@TopekoX
TopekoX / OpenSSL_Setup.md
Created May 27, 2022 15:36
OpenSSL Setup - Generate key and self-signed certificate

OpenSSL Setup - Generate key and self-signed certificate

This document includes instructions for OpenSSL setup. It also includes steps for generating key and self-signed certificate.

There are different steps for each operating system. Choose the steps for your environment.


@TopekoX
TopekoX / Keytool-Generate-key-and-self-signed-certificate.md
Created May 26, 2022 17:59
Keytool - Generate key and self-signed certificate

Keytool - Generate key and self-signed certificate

This document includes instructions for generating a key and self-signed certificate using Keytool.

☑️ NOTE: Keytool is already installed with the Java Development Kit. No additional installed is required.

Generate Key and Self-Signed Certificate

  1. Open a terminal/command-prompt window.
@TopekoX
TopekoX / git_push_new_branch.md
Created May 3, 2022 05:21
Git push to other/new branch
github@branch/c/remote/push  (new-branch)
git clone https://github.com/learn-git-fast/git-branch-examples.git
cd git*
git checkout -b new-branch

github@branch/c/remote/push (new-branch)
git branch -a
touch devolution.jpg
git add .

create project

ng new myapp

create new component

ng generate component components/product-list

Add in build>plugins>... in pom.xml

<plugin>
  <groupId>org.codehaus.cargo</groupId>
  <artifactId>cargo-maven3-plugin</artifactId>
  <version>1.9.10</version>
  <configuration>
    <container>
      <containerId>tomcat9x</containerId>
 
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- JDBC Database connection settings -->
<property name="connection.driver_class">com.mysql.cj.jdbc.Driver</property>
@TopekoX
TopekoX / command_line.md
Created April 4, 2022 08:46
Compress JPEG or PNG Images in Linux Commandline

Install jpegoptim in Linux

To install jpegoptim on your Linux systems, run the following command from your terminal.

On Debian and it’s Derivatives

# apt-get install jpegoptim

or

@TopekoX
TopekoX / MyLoggerConfig.java
Created April 3, 2022 13:18 — forked from darbyluv2code/MyLoggerConfig.java
Spring Logging for Spring 5.1 - All Java Configuration
package com.luv2code.springdemo;
import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;