Skip to content

Instantly share code, notes, and snippets.

View n1k0's full-sized avatar
✏️
writing a github status

Nicolas Perriault n1k0

✏️
writing a github status
View GitHub Profile
@n1k0
n1k0 / shush-blocklist.txt
Last active December 3, 2020 14:39 — forked from adriantombu/shush-covid19.txt
A personal blocklist to be used with Shush! browser extension https://github.com/adriantombu/shush
patriote,
patriotes,
identitaire,
identitiares
@n1k0
n1k0 / fields.py
Created March 12, 2020 17:57 — forked from danni/fields.py
Multi Choice Django Array Field
from django import forms
from django.contrib.postgres.fields import ArrayField
class ChoiceArrayField(ArrayField):
"""
A field that allows us to store an array of choices.
Uses Django 1.9's postgres ArrayField
and a MultipleChoiceField for its formfield.
@n1k0
n1k0 / unblur.md
Last active December 19, 2023 13:50
Unblur bookmarlklet

Unblur bookmarklet

Too many websites rely on the CSS blur filter to cheaply obfuscate contents. Here's a bookmarklet to reset all active blur styles from the current page DOM.

(function() {
  for (const x of document.querySelectorAll("*")) {
    const s = getComputedStyle(x);
    for (const k in s) {
 if (k.includes("filter") && s.filter.includes("blur")) {
@n1k0
n1k0 / app.js
Created May 22, 2019 12:54
head hunter email generator
var villes = [
"Agen",
"Ajaccio",
"Albertville",
"Albi",
"Alençon",
"Alès",
"Amiens",
"Angers",
"Angoulême",
[alias]
caca = commit -a -C HEAD --amend
changelog = "!f() { r=${1:-`git describe --tags --abbrev=0`..HEAD}; echo Changelog for $r; git log --reverse --no-merges --format='* %s' $r; }; f"
changes = diff --name-status
ci = commit
cia = commit --amend
ciaa = commit -a --amend
co = checkout
cp = cherry-pick
dic = diff --cached
[alias]
caca = commit -a -C HEAD --amend
changelog = "!f() { r=${1:-`git describe --tags --abbrev=0`..HEAD}; echo Changelog for $r; git log --reverse --no-merges --format='* %s' $r; }; f"
changes = diff --name-status
ci = commit
cia = commit --amend
ciaa = commit -a --amend
co = checkout
cp = cherry-pick
dic = diff --cached
@n1k0
n1k0 / copy-to-clipboard.html
Last active July 9, 2018 08:22
Copy to clipboard for Chrome and Firefox
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>copy to clipboard for chrome and firefox</title>
</head>
<body>
<button>copy</button>
<script>
function toClipoard(text) {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am n1k0 on github.
  • I am n1k0 (https://keybase.io/n1k0) on keybase.
  • I have a public key ASBAtEJcRmxSj6XhdF7cyySIwHNXU--pLHpr6bkdytaQtAo

To claim this, I am signing this object:

@n1k0
n1k0 / Main.elm
Created December 14, 2016 17:57
Default Elm app
module Main exposing (..)
import Html exposing (..)
main : Program Never Model Msg
main =
Html.program
{ init = createModel
, view = view