Skip to content

Instantly share code, notes, and snippets.


Rishi Speets rishispeets

View GitHub Profile
rishispeets / bug-report.txt
Created Sep 25, 2019
Bug Report #workflow
View bug-report.txt
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
Disable Nvidia and Nouveau drivers on 18.04 Bionic Beaver MX150
View disable_nvidia_and_nouveau
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 Aug 19, 2017 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
View .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 Apr 26, 2017
Node.js style error callback handling
View Calback error parameter 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 Apr 25, 2017
dom/js navigator object get geolocation user
View navigator geolocation user.js
navigator.geolocation.getCurrentPosition(function(location) {
rishispeets / string object iterate.js
Created Apr 25, 2017
Function that loops through a string, creates a key for every letter and assigns letter occurrences in the string to the key value.
View string object iterate.js
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;