Skip to content

Instantly share code, notes, and snippets.

View rishispeets's full-sized avatar

Rishi Speets rishispeets

View GitHub Profile
rishispeets / bug-report.txt
Created September 25, 2019 14:21
Bug Report #workflow
Bug Report Template
Bug ID:
Bug Name:
Submit Date:
Operating System:

Steps to reproduce

Write here Write here

Current behaviour (bug)

Write here

Expected behaviour (correct)

Write here

rishispeets / disable_nvidia_and_nouveau
Created May 13, 2018 17:53
Disable Nvidia and Nouveau drivers on 18.04 Bionic Beaver MX150
sudo apt-get install bbswitch-dkms
gksudo gedit /etc/modprobe.d/blacklist.conf
and add the following lines
# Blacklist the alternative nvidia module
blacklist nouveau

Keybase proof

I hereby claim:

  • I am spadesr on github.
  • I am spadesr ( on keybase.
  • I have a public key ASDNcVxTX6fmyECKcFVtcJetfjJ_QSjhQS7-MDeDHpeSego

To claim this, I am signing this object:

rishispeets / .bash_profile
Created August 19, 2017 14:42 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
# Description: This file holds all my BASH configurations and aliases
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
rishispeets / Calback error parameter handling
Created April 26, 2017 08:40
Node.js style error callback handling
var fs = require('fs')
fs.readFile('/Does/not/exist', handleFile)
function handleFile (error, file) {
if (error) return console.error('Uhoh, there was an error', error)
// otherwise, continue on and use `file` in your code
rishispeets / navigator geolocation user.js
Created April 25, 2017 13:23
dom/js navigator object get geolocation user
navigator.geolocation.getCurrentPosition(function(location) {
rishispeets / string object iterate.js
Created April 25, 2017 08:28
Function that loops through a string, creates a key for every letter and assigns letter occurrences in the string to the key value.
function returnObject(aString){
//object initializer
var obj = {};
//loop through letters of string and populate keys
for (i = 0; i < aString.length; i++) {
obj[aString[i]] = (obj[aString[i]] || 0) + 1;
//return obj to function
return obj;