Skip to content

Instantly share code, notes, and snippets.

View arifsuhan's full-sized avatar

Arif Suhan arifsuhan

View GitHub Profile
@arifsuhan
arifsuhan / compare.groovy
Last active June 14, 2024 07:40
Json compare, Assertion
import groovy.json.JsonSlurper
import groovy.json.JsonOutput
import org.apache.jmeter.assertions.AssertionResult
import org.apache.jmeter.samplers.SampleResult
def expectedJsonFilePath = vars.get('filePath')
log.info(expectedJsonFilePath)
@arifsuhan
arifsuhan / requirements.txt
Last active November 16, 2022 08:01
VLC Playlist for Network Streaming
beautifulsoup4==4.11.1
requests==2.28.1
@arifsuhan
arifsuhan / 1. Springboot.md
Last active August 29, 2022 15:55
Create Docker Image and run Kubernates using Springboot

Step 1: Create project using spring.io

curl https://start.spring.io/starter.tgz -d type=gradle-project \
-d language=java \
-d bootVersion=2.6.5 \
-d baseDir=helloG \
-d groupId=com.example.hello \
-d artifactId=helloG \
-d description=Demo%20project%20for%20Spring%20Boot \
-d packageName=com.example.hello.helloG \
import cv2
import numpy as np
from tqdm import tqdm
def gen(filename, length):
width = 720
height = 360
fps = 30
frame_n = length * fps
@arifsuhan
arifsuhan / localstack_101.md
Last active July 10, 2022 20:30
Localstack 101

1. Localstack

Install Localstack

pip install localstack

Start Localstack

localstack start
@arifsuhan
arifsuhan / main.py
Last active July 25, 2022 08:17
moviepy compilation
file_name = "a.mp4"
hello = video_master(file_name)
hello.view()
temp = hello.trim(0,11.5,True)
n = 1000
hello.clip_compilations(n)
n = 5
@arifsuhan
arifsuhan / alpine_gui.sh
Last active August 21, 2022 08:05
alpine virtualbox
sudo -
apk add vim
vim /etc/apk/repository
apk update
setup-xorg-base xfce4 xfce4-terminal dbus-x11
apk add xf86-input-synaptics
rc-service dbus start
rc-update add dbus
rc-update add udev
@arifsuhan
arifsuhan / 1. parse_soup.py
Last active September 20, 2022 14:38
Newspaper parser using beautiful soup
import re, json
import requests, sys
from bs4 import BeautifulSoup
from urllib.parse import urlparse
class Parse_Soup:
def __init__(self, url):
@arifsuhan
arifsuhan / main.py
Created October 3, 2022 05:43
Create your own browser | Python | PyQt5 | QtWebEngine
import sys
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import *
class CustomWindow(QMainWindow):
def __init__(self):
super(CustomWindow, self).__init__()
self.browser = QWebEngineView()
@arifsuhan
arifsuhan / Guidelines.md
Created January 6, 2023 17:41
View Img, Gif, Video in Colab
file1="https://wallpaperaccess.com/full/1371433.jpg"
file2="https://i.giphy.com/media/KztT2c4u8mYYUiMKdJ/giphy.gif"
file3="https://i.giphy.com/media/UVk5yzljef0kGiayL1/giphy.mp4"

VMedia(file1).img()
VMedia(file2).gif()
VMedia(file3).video()