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
# Copyright (c) 2013 The Bitcoin Core developers & Chozabu | |
# Distributed under the MIT software license, see the accompanying | |
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
#network interface on which to limit traffic | |
IF="wlp3s0" | |
#limit of the network interface in question | |
LINKCEIL="1gbit" | |
#limit outbound in/out on selected port to this rate | |
LIMIT="1kbit" |
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
# Copyright (c) 2013 The Bitcoin Core developers & Chozabu | |
# Distributed under the MIT software license, see the accompanying | |
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
#network interface on which to limit traffic | |
IF="wlp3s0" | |
#limit of the network interface in question | |
LINKCEIL="1gbit" | |
#limit outbound in/out on selected port to this rate | |
LIMIT="1kbit" |
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 djstripe.contrib.rest_framework.views import SubscriptionRestView | |
class CustomSubscriptionRestView(SubscriptionRestView): | |
''' | |
This route expects data in this format \n | |
{ | |
"stripe_token": "token-from-stripe.js", |
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
"""time_subquerys.py: A quick task to compare subquerys on represent with.""" | |
__author__ = "Alex 'Chozabu' P-B" | |
__copyright__ = "Copyright 2016, IAgree" | |
from django.core.management.base import BaseCommand, CommandError | |
from represent_app import models | |
import time |
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
"""time_subquerys.py: A quick task to compare subquerys on represent with.""" | |
__author__ = "Alex 'Chozabu' P-B" | |
__copyright__ = "Copyright 2016, IAgree" | |
from django.core.management.base import BaseCommand, CommandError | |
from represent_app import models | |
import time |
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
"""time_subquerys.py: A quick task to compare subquerys on represent with.""" | |
__author__ = "Alex 'Chozabu' P-B" | |
__copyright__ = "Copyright 2016, IAgree" | |
from django.core.management.base import BaseCommand, CommandError | |
from represent_app import models | |
import time |
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
#!/usr/bin/env python2 | |
"""picofix.py: reboot the a router when it fails to contact a distant node.""" | |
__author__ = "Alex 'Chozabu' P-B" | |
import pyping | |
from time import sleep | |
from datetime import datetime |
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
"""views_push.py: Views for push notifications, to register a device that would like to get push notifications.""" | |
__author__ = "Alex 'Chozabu' P-B" | |
__copyright__ = "Copyright 2016, IAgree" | |
from push_notifications.api import rest_framework | |
from dj_represent import settings | |
from rest_framework.response import Response |
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
# /basic_api/?table=Post&sortby=-liquid_sum&startat=39 | |
def db_query(request): | |
if len(request.POST) == 0: | |
r_get = request.GET | |
else: | |
r_get = request.POST | |
# table whitelist? | |
rdata = {"Post": Post, "Tag": Tag, "Topic": Topic, "User": User} |
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
#copyright luke stanley & alex P-B | |
#AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html | |
import hashlib | |
#from dictionary import lessFrequentButStillAutoSuggestableWords | |
#https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists/PG/2005/08/60001-70000 | |
""" | |
var script = document.createElement('script'); | |
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
lessFrequentButStillAutoSuggestableWords = []; |
NewerOlder