Skip to content

Instantly share code, notes, and snippets.

View viperadnan-git's full-sized avatar
:shipit:
cooking

Adnan Ahmad viperadnan-git

:shipit:
cooking
View GitHub Profile
@viperadnan-git
viperadnan-git / .gitlab-ci.yml
Created July 12, 2025 15:19
GitLab Docker Image Publish CI
build:
image: docker:latest
stage: build
services:
- docker:dind
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
LATEST_TAG: $CI_REGISTRY_IMAGE:latest
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
@viperadnan-git
viperadnan-git / crypt.html
Created June 21, 2025 19:56
Encrypt/Decrypt Class for Web and Python
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript Crypt Class</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
@viperadnan-git
viperadnan-git / docker-install-ubuntu.sh
Created August 30, 2024 09:53
Install Docker on Ubuntu
# https://docs.docker.com/engine/install/ubuntu/
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
@viperadnan-git
viperadnan-git / README.md
Last active September 5, 2022 12:16
Delete Junk Email from GMail in Bulk

Delete Junk Emails from you Gmail Account easily with python.

Generate Mail App Password
Configure What to delete
  • Default it will delete all email which contains Custom String in subject. Change it in line 5.
  • To delete all email from a specific sender, replace line 10 with typ, data = box.search(None, 'from', '[email protected]')
  • To delete all unread email, replace line 10 with typ, data = box.search(None, 'UnSeen') or set value of query to UnSeen`