Skip to content

Instantly share code, notes, and snippets.

View alexpetrean80's full-sized avatar

Alex Petrean alexpetrean80

  • Snyk
View GitHub Profile
@alexpetrean80
alexpetrean80 / userChrome.css
Created June 30, 2024 09:32
Firefox userChrome.css
/* @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); */
#titlebar {
visibility: collapse !important;
}
#TabsToolbar .titlebar-buttonbox-container {
display: block;
position: absolute;
visibility: visible;
@alexpetrean80
alexpetrean80 / wait_for_file_in_docker.sh
Last active August 9, 2023 12:36
A script that waits for a file to exist in a docker container with a timeout
#!/usr/bin/bash
FILE_PATH=$1
CONTAINER=$2
TIMEOUT=$3
start_time=$(date +%s)
while true; do
elapsed_time=$(($(date +%s) - start_time))
if [ $elapsed_time -gt $TIMEOUT ]; then