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
<html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<br> | |
<form id="form"> | |
<label id="lbl-name">Name : </label> | |
<input id="name" type="text" name="name"> |
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
#-*- coding: utf-8 -*- | |
__author__ = "Chirag Rathod (Srce Cde)" | |
__license__ = "MIT" | |
__email__ = "[email protected]" | |
__maintainer__ = "Chirag Rathod (Srce Cde)" | |
import json | |
with open("sample.json", "r") as f: | |
json_load = json.load(f) |
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 boto3 | |
def datachunk(para): | |
text_list = [] | |
while para: | |
text_list.append(str(para[:4700])) | |
para = para[4700:] | |
return text_list[:25] | |
def lambda_handler(event, context): |
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 boto3 | |
import urllib | |
def lambda_handler(event, context): | |
s3 = boto3.client("s3") | |
if event: | |
print("Event : ", event) | |
file_obj = event["Records"][0] | |
filename = str(file_obj['s3']['object']['key']) | |
filename = urllib.parse.unquote_plus(filename) |
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 threading | |
from queue import Queue | |
import socket | |
server = 'hackthissite.org' | |
ip = socket.gethostbyname(server) | |
def portscan(port): | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
try: |
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
package com.app.srcecde.search_example1; | |
import android.content.ContentValues; | |
import android.os.Bundle; | |
import android.os.StrictMode; | |
import android.support.design.widget.FloatingActionButton; | |
import android.support.design.widget.Snackbar; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.Toolbar; | |
import android.util.Log; |
NewerOlder