I hereby claim:
- I am giancarlos on github.
- I am giancarlos (https://keybase.io/giancarlos) on keybase.
- I have a public key ASBFpYiJyMNH9oURUymXZFDWoGKp-AEr1e1XXSU2K9JSygo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import functools | |
import collections | |
import cherrypy | |
class SelectedMethod: | |
""" | |
Descriptor allowing a series of handler methods to satisfy | |
a variety of behaviors based on the request method. |
import functools | |
import collections | |
import cherrypy | |
__metaclass__ = type # enable new-style classes by default | |
class SelectedMethod: | |
""" |
package main | |
import "fmt" | |
func main() { | |
fmt.Printf("Hello, Go!") | |
} |
Adopted from here https://topaxi.codes/use-npm-without-root-or-sudo-rights/
I'm saving this as a gist and modifying it to ensure that if the original blog post disappears it lives on somewhere.
Added some notes for Ubuntu 18.04 and similar.
Today we're going to setup our npm installation to be used without root or sudo rights.
By default, if you install packages globally with npm, npm tries to install them into a system directory (i.e. /usr/local/lib/node_modules). With the next steps, we're going to use your home directory for those files.