Skip to content

Instantly share code, notes, and snippets.

View pauricthelodger's full-sized avatar

Padraic Harley pauricthelodger

View GitHub Profile
# Run this like fab -R www deploy
from fabric.api import *
REPO_URL = '[email protected]:username/repo.git'
PROJECT_DIR = '$HOME/projects/projectname'
PROJECT_NAME = 'projectname'
SERVER_NAME = 'projectname.servername' # I use gunicorn, so i have projectname.gunicorn
env.roledefs['www'] = ['www1.example.com']
@pauricthelodger
pauricthelodger / xps13.md
Created July 29, 2018 22:05 — forked from Samffy/xps13.md
Dell XPS 13 9360 : Ubuntu Wifi disconnection

I encounter wifi disonnection problem on a Dell XPS 13 9360. Here is the solution I used to fix this bad behavior.

Which wifi card version is installed ?

lspci | grep -i net

3a:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

@pauricthelodger
pauricthelodger / sometimes.py
Created April 28, 2025 23:11 — forked from judy2k/sometimes.py
A descriptor that wraps a method that can be called on a class or an instance.
from functools import wraps
class SometimesClassmethod:
def __init__(self, wrapped_function):
self._wrapped = wrapped_function
def __get__(self, instance, owner=None):
if instance is None:
return self._class_call(owner)