- make new virutalenv with python3
- install django and create sample project (with name "sample")
- create git repo inside project's root folder
- pull this repo to github.com
- to configure django project use https://github.com/jazzband/django-configurations/
- create abstract super class "CoreModel" for models with fields:
- enabled: bool
- created: datetime: "auto now" when create
- updated: datetime: "auto now" when update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LinkedIn Spammer Remover | |
// @version 1 | |
// @match https://www.linkedin.com/jobs/* | |
// @grant none | |
// ==/UserScript== | |
// Original author: https://gist.github.com/rigwild/219c20d910da72901e20bc10a6f0411a | |
const blacklist = new Set([ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this in the content download page and it will trigger download for everything | |
var sleep = (milliseconds) => { | |
return new Promise(resolve => setTimeout(resolve, milliseconds)) | |
} | |
var waitTime = 1500; //ms | |
var x = $( "button:contains('Download')" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cProfile import Profile | |
from optparse import make_option | |
from django.core.management.base import BaseCommand | |
class Command(BaseCommand): | |
option_list = BaseCommand.option_list + ( | |
make_option('--profile', | |
default=False, |