Skip to content

Instantly share code, notes, and snippets.

View rishispeets's full-sized avatar
🎯
Focusing

Rishi Speets rishispeets

🎯
Focusing
View GitHub Profile
@rishispeets
rishispeets / bug-report.txt
Created September 25, 2019 14:21
Bug Report #workflow
Bug Report Template
====================
Bug ID:
Bug Name:
Summary:
Submit Date:
Reporter:
Platform:
Operating System:
Browser:

Steps to reproduce

Write here Write here

Current behaviour (bug)

Write here

Expected behaviour (correct)

Write here

@rishispeets
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
then
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 (https://keybase.io/spadesr) on keybase.
  • I have a public key ASDNcVxTX6fmyECKcFVtcJetfjJ_QSjhQS7-MDeDHpeSego

To claim this, I am signing this object:

@rishispeets
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
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
rishispeets / navigator geolocation user.js
Created April 25, 2017 13:23
dom/js navigator object get geolocation user
navigator.geolocation.getCurrentPosition(function(location) {
console.log(location.coords.latitude);
console.log(location.coords.longitude);
console.log(location.coords.accuracy);
});
@rishispeets
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;