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 / 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
@TopekoX
TopekoX / Perintah Dasar PostgreSQL.md
Last active June 2, 2022 05:45
Dasar-dasar perintah PostgresSQL

Perintah Dasar PostgreSQL

Login to CLI Postgre

Help

$ psql --help

Perintah Dasar Docker

Cek Versi

docker version

Docker Images

@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>