- Install dependency
pacman -Syu
pacman -S git base-devel
- Uncomment
MAKEFLAGS="-j2"
pacman -Syu
pacman -S git base-devel
MAKEFLAGS="-j2"
sudo pacman -Ss openjdk
sudo pacman -Sy jdk17-openjdk
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:
Create Timestamp by Date Time
@CreationTimestamp
@Column(updatable = false, name = "create_time")
private LocalDateTime createAt;
@UpdateTimestamp
@Column(name = "update_time")
private LocalDateTime updateAt;
Build Springboot app to production using maven
mvn clean install -DskipTests
or run use profile prod
mvn spring-boot:run -Dspring-boot.run.profiles=prod
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 {
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