This file contains hidden or 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
function cartWatcher(cb){ | |
function getCartParams(){ | |
let ctp,cc | |
try{ | |
c = window.cart.get.model.cart | |
ctp = parseFloat(c.totalAmountStr.replaceAll(/[^\d\.\,]/,'')) | |
cc = c.products[0].currency | |
}catch{} | |
return { | |
cartTotalPrice: ctp, |
This file contains hidden or 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
1033edge.com | |
11mail.com | |
123.com | |
123box.net | |
123india.com | |
123mail.cl | |
123qwe.co.uk | |
126.com | |
150ml.com | |
15meg4free.com |
This file contains hidden or 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
0-mail.com | |
0815.ru | |
0clickemail.com | |
0wnd.net | |
0wnd.org | |
10minutemail.com | |
20minutemail.com | |
2prong.com | |
30minutemail.com | |
3d-painting.com |
This file contains hidden or 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
# install | |
# - git | |
# - python 2.7, pip | |
# - docker # https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce | |
# - docker-compose # https://docs.docker.com/compose/install/#install-compose | |
# - awscli # https://aws.amazon.com/ru/cli/ | |
# - node, npm # https://github.com/nodesource/distributions/blob/master/README.md#debinstall | |
set -e |
This file contains hidden or 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
#!/bin/sh | |
if [ "$AWS" != "" ] ; then | |
if which curl 1>/dev/null; then | |
AWS_EC2_LOCAL_IPV4=`curl --connect-timeout=1 http://169.254.169.254/latest/meta-data/local-ipv4 2>/dev/null` | |
else | |
if which wget 1>/dev/null; then | |
AWS_EC2_LOCAL_IPV4=`wget -q -O - http://169.254.169.254/latest/meta-data/local-ipv4` | |
fi |
This file contains hidden or 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
import os | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") | |
import subprocess | |
import json | |
from gscapi.widgets.models import Widget | |
def main(): | |
qs = Widget.objects.all() |
This file contains hidden or 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
[uwsgi] | |
chdir=/opt/demo/api/ | |
virtualenv=/opt/demo/env/ | |
module=gscapi.wsgi:application | |
processes=2 | |
master=True | |
disable-logging=True | |
reload-on-as=512 |
This file contains hidden or 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
[program:gunicorn-graphite] | |
command=/usr/local/bin/gunicorn_django -u www-data -g www-data -b 127.0.0.1:8080 --log-file=/opt/graphite/storage/log/webapp/gunicorn.log /opt/graphite/webapp/graphite/settings.py | |
process_name=%(program_name)s | |
autostart=true | |
autorestart=true | |
stopsignal=QUIT | |
user=www-data | |
[program:carbon-cache] | |
command=python /opt/graphite/bin/carbon-cache.py --debug start |
This file contains hidden or 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
@register.simple_tag(takes_context=True) | |
def value_if_active(context, return_value, view_names): | |
""" {% value_if_active 'contacts' 'class="active" %} | |
{% value_if_active 'contacts contacts/about' 'class="active" %} | |
{% value_if_active 'contacts*' 'class="active" %} - glob syntax | |
""" | |
request = context['request'] | |
try: | |
view_name = resolve(request.path).view_name | |
for vn in view_names.split(): |