Skip to content

Instantly share code, notes, and snippets.

View iamcaleberic's full-sized avatar
🤖
I'm not a teapot

Eric Caleb iamcaleberic

🤖
I'm not a teapot
View GitHub Profile
@iamcaleberic
iamcaleberic / gist:7cd6c7c748b7eb5220b99443f12f71ed
Last active September 7, 2016 10:09
Ruby openssl patch to fix __rvm_make_j4 or failed compile error
curl https://github.com/ruby/ruby/commit/801e1fe46d83c856844ba18ae4751478c59af0d1.diff > openssl.patch
rvm install --patch ./openssl.patch ["ruby version you want to install"]
@iamcaleberic
iamcaleberic / install.sh
Last active December 10, 2016 13:56
Installing node v6+ & npm using node source
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && sudo apt-get install -y nodejs
@iamcaleberic
iamcaleberic / NodeEnv.md
Last active April 18, 2017 09:27
Setting up a Node.js Environment Production

Method 1

  • Download node archive from https://nodejs.org
    • wget https://nodejs.org/dist/v6.10.1/node-v6.10.1-linux-x64.tar.xz
  • Extract tarball
    • mkdir node
    • tar xvf node-v*.tar.?z --strip-components=1 -C ./node
  • Configure prefix & symlinks for npm
    • mkdir node/etc
    • echo 'prefix=/usr/local' > node/etc/npmrc
  • Moving binaries to installation loaction
@iamcaleberic
iamcaleberic / arch-install.md
Last active November 3, 2017 18:53
Installing Arch Linux with UEFI support

Requirements

  • Not recommended for absolute beginners
  • Sufficient disk space
  • RAM atleast 500 MB
  • Arch linux bootbale media

Pre-Install

  • create bootable usb or cd

Post Boot

@iamcaleberic
iamcaleberic / drive.md
Last active April 11, 2017 15:13
Recovering corrupted disks drive with chkdsk
  • Use original boot media(DVD, USB) Its important you have this
  • Restart the computer with the original installation media (that’s either the DVD or the USB flash drive)

  • Click Repair your computer

  • At the Choose an option screen, click Troubleshoot

  • Click Advanced options

  • Click Command Prompt

  • Type this command:

chkdsk C: /f /x /r

@iamcaleberic
iamcaleberic / AUR.md
Last active April 27, 2017 10:33
Installing packages from Arch User Repsitory(AUR)

Installing packages from AUR

  • Search for the package here

  • Acquire build files

    There are two methods:

  • Clone the git repository that is labeled as the "Git Clone URL" in

@iamcaleberic
iamcaleberic / bazel.md
Last active May 12, 2017 09:46
Building bazel on Arch
  • Ensure that you have OpenJDK 8 installed on your system.

    • You can check this by running

            which javac 
      
  • if output is which: no javac Install OpenJDK 8 by running the command

@iamcaleberic
iamcaleberic / arrayfire.md
Last active May 13, 2017 13:22
This is a bit of a hack when your default gcc is greater than 6.0.0 and you are compiling arrayfire from source on Arch

So when building arrayfire on Arch you kind of run into the error below if the default gcc version is more than 6.0.0

Make Error: NVCC does not support GCC version 6.0 or greater.

So here is a hack that might help you fix that particular snag.

  • Make sure you intall an alternate version of gcc that is < 6 but > 4.3 in this case gcc-5

  • Make sure you are in the arrayfire directory

  • STEAM_RUNTIME_PREFER_HOST_LIBRARIES=0 STEAM_RUNTIME=1 steam-runtime
Alien Isolation
  • Set startup options to