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 / db.properties
Last active November 5, 2017 11:26
Configuration for Hibernate 5 integration Spring MVC
# DB properties
db.driver=com.mysql.cj.jdbc.Driver # org.postgresql.Driver
db.url=jdbc:mysql://localhost:3306/demospring # jdbc:postgresql://localhost:5432/springdemo
db.username=root
db.password=xxxxxx
# Hibernate properties
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect # org.hibernate.dialect.PostgreSQLDialect
hibernate.show_sql= true
hibernate.format_sql= true
@TopekoX
TopekoX / spring-boot.properties
Created November 28, 2017 04:27
Spring boot properties JPA & Thymeleaf
#spring.jpa.hibernate.ddl-auto=create
spring.datasource.url=jdbc:mysql://localhost:3306/latihan
spring.datasource.username=root
spring.datasource.password=xxxxxx
spring.jackson.serialization.indent_output=true
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
#Thymeleaf
@TopekoX
TopekoX / web.php
Created February 18, 2018 07:16
Custom Auth Laravel Route
// Authentication Routes...
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login');
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes...
Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
Route::post('register', 'Auth\RegisterController@register');
// Password Reset Routes...
@TopekoX
TopekoX / install_depedency_after_pull.md
Last active March 5, 2018 03:34
Laravel after pull
  • Download composer https://getcomposer.org/download/
  • Pull Laravel/php project from git provider.
  • Rename .env.example file to '.env' inside your project root and fill the database information. (windows wont let you do it, so you have to open your console cd your project root directory and run mv .env.example .env )
  • Open the console and cd your project root directory
  • Run composer install or php composer.phar install
  • Run php artisan key:generate
  • Run php artisan migrate
  • Run php artisan db:seed to run seeders, if any.
  • Run php artisan serve
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll]
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell]
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open]
"MuiVerb"="@photoviewer.dll,-3043"
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command]
@TopekoX
TopekoX / spec.md
Last active December 26, 2020 03:28
Spec PC

Gaming PC

  • CPU: AMD Rayzen 5 3600x
  • RAM: 16GB
  • VGA: Nvidia RTX 2060
  • SSD: 250GB
  • HDD: 1TB
  • PSU: 700w
  • CPU Fan: Cooler Master ML249R RGB

Gear

Start server Docusaurus

  • npm start Starts the development server.

  • npm run build Bundles your website into static files for production.

  • npm run serve Serves the built website locally.

  • npm run deploy Publishes the website to GitHub pages.

Download

Download Open JDK on https://jdk.java.net/. Example jdk version is using 17, then extarct jdk archive, and move to directory where you want, recommended jdk location move at /Library/Java/JavaVirtualMachines/.

Setting Path

Edit file .bashrc or .profile or .zshrc at your home place, and register bin jdk on path, add this code at bottom:

export PATH="/Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home/bin:$PATH"
@TopekoX
TopekoX / Steam-on-fedora.md
Created March 26, 2022 13:50 — forked from mattbell87/Steam-on-fedora.md
How to install Steam on Fedora

Installing Steam on Fedora

These instructions are currently for Fedora 30. I'll update them over the releases if anything changes.

Open Software

Press the Win/Super key, type software and press Enter.

Enable the Third party and Steam repositories

@TopekoX
TopekoX / MyLoggerConfig.java
Created April 3, 2022 05:38 — forked from darbyluv2code/MyLoggerConfig.java
Spring Logging for Spring 5.1 - XML 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 org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class MyLoggerConfig {