Skip to content

Instantly share code, notes, and snippets.

View kiwnix's full-sized avatar

Eduardo Garcia Cebollero kiwnix

View GitHub Profile
@kiwnix
kiwnix / keybase.md
Last active November 2, 2017 01:25

Keybase proof

I hereby claim:

  • I am kiwnix on github.
  • I am kiwnix (https://keybase.io/kiwnix) on keybase.
  • I have a public key ASB0Jb7EfN56g3aFVYRzmAh_55zgYZVDiwxeHeNzRrc9yAo

To claim this, I am signing this object:

@kiwnix
kiwnix / admin.py
Created March 10, 2017 20:25 — forked from mariocesar/admin.py
Django admin decorator to create a confirmation form action, like the default delete action works
from .models import Post, Category
from .decorators import action_form
class PostCategoryForm(forms.Form):
title = 'Update category for the selected posts'
category = forms.ModelChoiceField(queryset=Category.objects.all())
@admin.register(Post)
#!/bin/sh
# Para smartproxy server ( https://addons.mozilla.org/es/firefox/addon/smartproxy/ )
echo "[SmartProxy Servers]"
curl -LsS https://api.mullvad.net/public/relays/wireguard/v1/ | jq -r ".countries[] | (.code + \" - \" + .name + \" \" + ( .cities[] | (.name + \";\" + (.relays[].hostname / \"-\")[0] + \"-wg.socks5.mullvad.net\" ) ) ) + \":1080\" " | awk '{split($0,a,";"); print a[2] " [SOCKS5] " "["a[1]"]"}' | sed s/","/" -"/g