This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
customer=$1 | |
if [ -z "$customer" ]; then | |
echo "Error: No customer name provided. Please provide a customer name as the first argument." >&2 | |
exit 1 | |
fi | |
# Set your AWS credentials here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** @see https://www.linkedin.com/posts/ashleyjcallen_these-are-some-not-all-of-the-first-pest-activity-7191803157692190720-HAPK **/ | |
test('strict types are used everywhere') | |
->expect('App') | |
->toUseStrictTypes(); | |
test('globals') | |
->expect(['dd', 'ddd', 'die', 'dump', 'ray', 'sleep']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Color codes | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
BLUE='\033[0;34m' | |
NC='\033[0m' # No Color | |
# Header in green | |
echo -e "${GREEN}IMAGE\t\t\t\t\t\t\tSTATUS${NC}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ps ax|grep sleep | |
output: | |
954190 ? Ss 0:00 sleep infinity | |
1036329 ? S 0:00 sleep 5 | |
1036386 ? S 0:00 sleep 2 | |
1036397 pts/4 S+ 0:00 grep --color=always sleep <---- you don´t want to see this | |
3610265 ? S 0:00 sleep 1d | |
3868324 ? S 0:00 sleep 86400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
@if($searchResult->count()>1) | |
<div | |
x-data="{ scrollTop: parseInt(localStorage.getItem('scrollTop')) || window.scrollY }" | |
x-init="scrollTop = parseInt(localStorage.getItem('scrollTop')) || window.scrollY" | |
class="bg-skin-fill text-big-button px-5 py-5 fixed top-0 flex flex-row justify-between mx-auto" | |
x-on:scroll.window="scrollTop = window.scrollY; localStorage.setItem('scrollTop', String(scrollTop))" | |
x-bind:class="{'hidden': scrollTop <= 600}" x-cloak | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
auto_https off | |
debug | |
} | |
:80 { | |
root * /app/public | |
encode zstd gzip | |
file_server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--n-column-width-xl: 1200px !important; | |
--color-semantic-base: #111827 !important; | |
} | |
@media (min-width: 3000px) { | |
.app-layout__pageWidth-3F8hH > div:first-of-type { | |
width: 2000px !important; | |
} | |
.app-layout__maxWidth-21X-0 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm --init -it \ | |
--net host --privileged --cap-add SYS_ADMIN \ | |
-v ${HOME}/Tinkerwell-3.5.0.AppImage:/tinkerwell \ | |
-v ${HOME}/PhpstormProjects/:/apps/:rw \ | |
--device /dev/fuse \ | |
-v $SSH_AUTH_SOCK:/ssh-auth.sock \ | |
-e SSH_AUTH_SOCK=/ssh-auth.sock \ | |
-v $HOME/.ssh:/home/docker/.ssh \ | |
-w /home/docker/.config/ \ | |
-v ${HOME}/.tinkerwell:/home/docker/.config:rw \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:8.1.9RC1-cli-buster | |
RUN apt-get update && apt-get -y install fuse3 libfuse2 libfuse-dev kmod libnss3 libatk1.0-0 libatk-bridge2.0-0 libcpuset1 libcpuset-dev libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev libasound2 | |
RUN apt-cache search libcpus | |
ENV GTK_IM_MODULE=xim \ | |
QT_IM_MODULE=fcitx \ | |
XMODIFIERS=@im=fcitx \ | |
DefalutIMModule=fcitx \ | |
DBUS_SESSION_BUS_ADDRESS="autolaunch:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILES="" | |
for entry in /crontab/* | |
do | |
FILES+="$entry " | |
done | |
echo "update crontab" | |
cat $FILES |crontab |
NewerOlder