Skip to content

Instantly share code, notes, and snippets.

@virgiliu
virgiliu / linkedinSpammers.js
Last active December 3, 2020 14:45 — forked from rigwild/linkedinSpammers.js
GreaseMonkey/TamperMonkey script to remove spam companies from LinkedIn job search page
// ==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([
@virgiliu
virgiliu / gumroad_bulk_download
Created November 1, 2020 14:13
Gumroad bulk download
// 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')" );
@virgiliu
virgiliu / django_management_profile.py
Created September 23, 2018 16:59 — forked from tclancy/django_management_profile.py
Profiling Django Management Command
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,
@virgiliu
virgiliu / git-reset-author.sh
Created May 23, 2018 17:11 — forked from bgromov/git-reset-author.sh
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
@virgiliu
virgiliu / DjangoTest.md
Created March 4, 2018 12:25 — forked from rudensm/TEST.md
Basic Django Skills Test

TASK

  • 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