Skip to content

Instantly share code, notes, and snippets.

View ImBIOS's full-sized avatar
Working on something useful - stay tuned!

Imamuzzaki Abu Salam ImBIOS

Working on something useful - stay tuned!
View GitHub Profile
@ImBIOS
ImBIOS / wait_for_internet.sh
Created October 30, 2024 02:04
This Bash script is designed to help you automatically execute commands once an internet connection is detected. Ideal for developers, sysadmins, and power users, this script repeatedly pings a specified server (default: Google) until a successful response is received, then runs any command you specify. Use it to automate tasks that depend on in…
#!/bin/bash
# Check if a command is passed
if [ -z "$1" ]; then
echo "Started internet watchdog!"
else
echo "Usage: $0; <command>"
exit 1
fi
@ImBIOS
ImBIOS / addFillToSVGs.sh
Last active July 15, 2024 06:48
Automatically Add fill="currentColor" to SVG Files. This shell script recursively scans through a directory and its subdirectories to find all SVG files and adds fill="currentColor" to all path elements that don't already have a fill attribute. This is particularly useful for ensuring that SVG icons inherit the current text color when used in we…
#!/bin/bash
# Ensure the script runs in the directory where SVG files are located
cd /path/to/your/svg/files
# Loop through all SVG files in the current directory
for file in *.svg; do
# Add fill="currentColor" to each SVG file using sed
sed -i 's/<svg /<svg fill="currentColor" /g' "$file"
done
@amenayach
amenayach / youtube-playlist-scraping.js
Last active May 1, 2022 00:51
A Javascript script to scrap Youtube playlist via browser console
let getSeconds = secondsText => {
let spl = secondsText.split(':');
return parseInt(spl[0]) * 60 + parseInt(spl[1]);
};
let getEmbedUrl = url => {
let vIndex = url.indexOf('?v=');
let lIndex = url.indexOf('&list=');
return 'https://www.youtube.com/embed/' + url.substring(vIndex + 3, lIndex);
};
google dork -> site:.co.uk inurl:"responsible disclosure"
https://registry.internetnz.nz/about/vulnerability-disclosure-policy/
http://www.123contactform.com/security-acknowledgements.htm
https://18f.gsa.gov/vulnerability-disclosure-policy/
https://support.1password.com/security-assessments/
https://www.23andme.com/security-report/
https://www.abnamro.com/en/footer/responsible-disclosure.html
https://www.accenture.com/us-en/company-accenture-responsible-disclosure
https://www.accredible.com/white_hat/
https://www.acquia.com/how-report-security-issue
@automationhacks
automationhacks / bug_template.md
Last active October 21, 2024 12:35
Bug template to help in writing clear bug reports

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Expected behavior

A clear and concise description of what you expected to happen.

Priority

What is the impact of this bug on the user, how critical is to fix? P0, P1 .. P4

responsible disclosure reward r=h:UK
site:*.*.nl intext:security report reward
inurl:responsible disclosure reward
inurl:responsible disclosure bounty
inurl:responsible disclosure swag
site:*.*.nl intext:responsible disclosure reward
responsible disclosure reward r=h:eu
  1. Open Automator.app
  2. Create new Quick Action
  3. Select Run AppleScript
  4. Add this:
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
	set inputVolume to 100
	display notification "Volume set to 100" with title "✅ Microphone is on"
@leodutra
leodutra / -setup-windows-wsl-devenv.md
Last active November 19, 2024 16:38
Install and Setup Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

Setup Windows Subsystem 2 for Linux

Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

To setup native Linux, see this gist

Preview

Requirements

@bradtraversy
bradtraversy / docker_wordpress.md
Last active November 18, 2024 19:25
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes