Skip to content

Instantly share code, notes, and snippets.

Ram Bharose Rana rb16

Block or report user

Report or block rb16

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rb16
rb16 / GoLang setup
Last active Jun 26, 2018
GOlang Setup Environment Linux and OS X
View GoLang setup
#Set these variables in .bash_profile (OS X) file
export GOPATH=$HOME/workspace
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
View MAC stdc++.h Lib
bits/stdc++ is a GNU GCC extension, whereas OS X uses the clang compiler. However, you can still make it work by manually creating the header file.
Inside the directory /usr/local/include/bits (create bits), make a file called stdc++.h paste the below content
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@rb16
rb16 / grub.md
Last active Jun 25, 2016
How to Repair, Restore, or Reinstall Grub 2 with a Ubuntu Live CD or USB
View grub.md
sudo mount /dev/sdXY /mnt
[It is usually a EXT4 Partition. Replace the XY with the drive letter, and partition number, for example]
sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys
[Now we jump into that using chroot.]
You can’t perform that action at this time.