Skip to content

Instantly share code, notes, and snippets.

View kriskornel's full-sized avatar
👋

Kornelius Tjokorda Bagus kriskornel

👋
View GitHub Profile
@kriskornel
kriskornel / invoice.js
Created November 6, 2019 17:04 — forked from maxkostinevich/invoice.js
PDFMake.js - Invoice Markup
// Invoice markup
// Author: Max Kostinevich
// BETA (no styles)
// http://pdfmake.org/playground.html
// playground requires you to assign document definition to a variable called dd
// CodeSandbox Example: https://codesandbox.io/s/pdfmake-invoice-oj81y
var dd = {
@kriskornel
kriskornel / iterm2-solarized.md
Created July 2, 2019 23:01 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@kriskornel
kriskornel / step.txt
Last active September 24, 2018 18:41
Connect to Terminal when using Cpanel
source from video: https://www.youtube.com/watch?v=9Yx1gZKgb5Y
This video show you how to connect SSH with "PuTTY" of cPanel based server
//--Generating PPK File
Step-1: Login to your cPanel
Step-2: Click "SSH Access" on Security area.
Step-3: Click "Manage SSK Keys" Button
Step-4: Click on "Generate a New Key" Button
Step-5: Put "Key Name" & "keypass" as Password
@kriskornel
kriskornel / app.vue
Created June 30, 2018 03:17 — forked from dohomi/app.vue
Small file input element based on vuetify
<template>
<file-input v-model="filename" @formData="formData">
<v-btn @click.native="uploadFiles">
</template>
<script>
import fileInput from './file-input.vue'
export default{
components:{fileInput}
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@kriskornel
kriskornel / Fibonnaci.php
Last active May 19, 2018 04:34
Fibonnaci in PHP using yield
function getFibonacci()
{
$i = 0;
$k = 1; //first fibonacci value
// yield $k;
while(true)
{
$k = $i + $k;
$i = $k - $i;
yield $k;
@kriskornel
kriskornel / style-rwd.css
Created April 11, 2018 20:42
Styling Responsive Web Design
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}
@kriskornel
kriskornel / responsive.css
Created April 1, 2018 13:45 — forked from helielson/responsive.css
Boilerplate CSS Media Queries
* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}
@kriskornel
kriskornel / EnableDisableHyperV.md
Created February 4, 2018 22:53 — forked from Ashwinning/EnableDisableHyperV.md
Powershell scripts to enable disable Hyper-V.

Open Powershell as admin

To Enable

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All

To Disable

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
@kriskornel
kriskornel / hiper-v-windows.md
Created February 4, 2018 15:27
COMMAND LINE DISABLE/ ENABLE HIPER-V WINDOWS

In an elevated Command Prompt write this :

To disable:

bcdedit /set hypervisorlaunchtype off

To enable:

bcdedit /set hypervisorlaunchtype auto