Rancher 2.0 etcd disaster recovery

This doc shows how to restore to a single node etcd cluster after a 3, 5 or 7 node cluster has lost quorum. Ideally with these sorts of failures you want to try your...


Fix: Ubuntu touchpad stops working on wakeup

Create a file in /lib/systemd/system-sleep sudo vim /lib/systemd/system-sleep/ Create a script which will reinstall the psmouse kernel module on wake #!/bin/sh case $1/$2 in pre/*) echo “Going to $2…” # Place your pre suspend...


Ubuntu 18.04 Tools and Apps

This serves to be an ever-changing personal list of what to install if I ever redo my Ubuntu machine. Currently I am running Ubuntu 18.04 so can only guarantee compatibility with that version. Uncommon Comfortable...

How to create an observable in Ionic v2 0

How to create an observable in Ionic v2

Observable.create(observer => { this.http.get(url, {headers}).subscribe(res => { this.response = res;; observer.complete(); }, err => { console.log(err); observer.error(err); observer.complete(); }); });

How to fix django cors issue 0

How to fix django cors issue

create a file and type class CORSMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): response = self.get_response(request) response[‘Access-Control-Allow-Origin’] = “*” return response In add MIDDLEWARE = [ … ‘product.middleware.CORSMiddleware’, ]