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
  1. Install dependency
pacman -Syu
pacman -S git base-devel
  1. Uncomment MAKEFLAGS="-j2"
  • Search package
sudo pacman -Ss openjdk
  • Install with version
sudo pacman -Sy jdk17-openjdk
@TopekoX
TopekoX / connect_wifi_arch.md
Created February 20, 2025 01:14
Connect wifi with iwctl

Connect to Wifi

$ iwctl

Show device list available

device list
@TopekoX
TopekoX / copy_file_scp.md
Created February 4, 2025 16:42
Copy file to server use scp
options Description
-i identity file: Selects the file from which the identity (private key) for public key authentication is read. This option is directly passed to ssh.
-P port: Specifies the port to connect on the remote host.
-p Preserves modification times, access times, and modes from the original file.
-q Disables the progress meter.
-r Recursively copy entire directories.
-s Name of program to use for the encrypted connection. The program must understand ssh(1) options.

More command info:

@TopekoX
TopekoX / create_time_stamp_date_entity.md
Last active January 19, 2025 02:01
Create Timestamp Hibernate Annotation

Create Timestamp by Date Time

@CreationTimestamp
@Column(updatable = false, name = "create_time")
private LocalDateTime createAt;
	
@UpdateTimestamp
@Column(name = "update_time")
private LocalDateTime updateAt;
@TopekoX
TopekoX / angular-build.md
Last active January 27, 2025 01:38
Angular build and run locally

Using ng

  • Build Angular
ng build

or using profile

ng build --configuration=production
@TopekoX
TopekoX / build-springboot-production.md
Last active January 27, 2025 01:39
Springboot build to production

Build Springboot app to production using maven

  • Build skip test
mvn clean install -DskipTests

or run use profile prod

mvn spring-boot:run -Dspring-boot.run.profiles=prod
@TopekoX
TopekoX / Spring Security without the WebSecurityConfigurerAdapter.md
Last active January 8, 2025 15:51
Spring Security Deprecated the WebSecurityConfigurerAdapter

In my case im using @EnableMethodSecurity(prePostEnabled = true) for prepost filter on controller in SecurityConfig.java

@Configuration
@EnableMethodSecurity(prePostEnabled = true)
public class SecurityConfig {

   @Bean
 SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
@TopekoX
TopekoX / app.js
Created June 14, 2022 10:38
Google Firebase Account Service generate Token Server with Node.js
var { google } = require('googleapis')
var SCOPES = ["https://www.googleapis.com/auth/firebase.messaging"]
var http = require('http')
function getAccessToken() {
return new Promise(function (resolve, reject) {
const key = require('./service-account.json');
const jwtClient = new google.auth.JWT(
key.client_email,

Create User

CREATE USER jonathan;

Check List User

\du