Skip to content

Instantly share code, notes, and snippets.

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

Yusuf Badurohman yusufbadurohman

🏠
Working from home
View GitHub Profile
@yusufbadurohman
yusufbadurohman / ssh-key-windows
Created December 31, 2018 03:56
How to setup SSH key on Windows Operating System
View ssh-key-windows
λ 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:
@yusufbadurohman
yusufbadurohman / ng build
Created November 17, 2017 08:43
Build angular app on a hostname within a folder
View ng build
ng build --prod --base-href "http://localhost/folder/" -d "/folder"
@yusufbadurohman
yusufbadurohman / minmax.js
Last active December 31, 2015 00:19
Function to find maximum and minimum value on JavaScript Array.
View minmax.js
// 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;
@yusufbadurohman
yusufbadurohman / 0_reuse_code.js
Created November 8, 2013 10:24
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console