Skip to content

Instantly share code, notes, and snippets.

View ybrdev's full-sized avatar
🏠
Working from home

YBR Dev ybrdev

🏠
Working from home
View GitHub Profile
@ybrdev
ybrdev / ssh-key-windows
Created December 31, 2018 03:56
How to setup SSH key on Windows Operating System
λ ssh-keygen -t rsa -C "yusuf.badurohman@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\EXPLOIT/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\EXPLOIT/.ssh/id_rsa.
Your public key has been saved in C:\Users\EXPLOIT/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:Zwa5JUfYGq9puyw9/X2THYRsgCJR4dGkaXa8GkgVi80 yusuf.badurohman@gmail.com
The key's randomart image is:
@ybrdev
ybrdev / ng build
Created November 17, 2017 08:43
Build angular app on a hostname within a folder
ng build --prod --base-href "http://localhost/folder/" -d "/folder"
@ybrdev
ybrdev / minmax.js
Last active December 31, 2015 00:19
Function to find maximum and minimum value on JavaScript Array.
// Get maximum value from array
function findMax(array) {
var max = 0;
var a = array.length;
for (counter=0; counter<a; counter++) {
if (array[counter] > max) {
max = array[counter];
}
}
return max;
@ybrdev
ybrdev / 0_reuse_code.js
Created November 8, 2013 10:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console