Skip to content

Instantly share code, notes, and snippets.

View richrdkng's full-sized avatar

Richard King richrdkng

View GitHub Profile
@richrdkng
richrdkng / gist:eee63d1bd5d913bf3a91a65c5ad46ba8
Last active May 2, 2018 15:54
Fix Dual Boot Of Ubuntu & Windows 10
After Windows 10 updates according to this SO post:
https://askubuntu.com/questions/767709/dual-boot-windows-10-and-ubuntu-16-04-on-uefi
1.: Run cmd as admin
2.: Paste and run: bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
@richrdkng
richrdkng / doc.sh
Last active May 30, 2016 09:30
GitHub Project's Wiki Repository As Documentation Submodule Helper Script Template
#!/usr/bin/env bash
# |---------------------------------------------------------------------------------------------------------------------
# |
# | GitHub Project's Wiki Repository As Documentation Submodule Helper Script Template
# |
# | - Before you start using this gist and/or make **any** changes to it, in order to understand the means,
# | when using GitHub's repository wiki as a git submodule serving as the project's documentation in
# | the project's /doc folder, **read thoroughly and understand the following article**:
# |
@richrdkng
richrdkng / vagrantfile
Created May 24, 2016 18:00
Vagrant VM configuration for jsdoc2md/dmd
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provision :shell, :path => "vagrant/provision.sh"
config.vm.provision "shell", inline: <<-SHELL
# enter permanent su
@richrdkng
richrdkng / self-for-es6-class.js
Last active August 4, 2016 11:29
ES6 self - Using "self" in ES6 classes in a consistent way. An important and useful feature similar to PHP's self:: current class accessor.
/*
|----------------------------------------------------------------------------------------------------------------------
| ES6 self template
|
| Similar to PHP's self:: current class accessor
|----------------------------------------------------------------------------------------------------------------------
*/
const self = class Class {
constructor() {}