This file contains hidden or 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 | |
UPTIMEROBOT_TOKEN="uptimerobot-token-here" | |
OHDEAR_TOKEN="ohdear-token-here" | |
OHDEAR_TEAM_ID=123456789 | |
OFFSET=0 | |
LIMIT=50 | |
TOTAL=1000000 |
This file contains hidden or 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
Using this technique, linux apps (WSL2) can be piped to X410 Windows X-Server. | |
Windows: | |
- VBS script to execute/run a powershell without viewing a shell window. | |
- PS1 script to | |
1) start X410 server if not already running | |
2) get screen width of monitor | |
3) execute linux script with optional possibility to pass parameter for hidpi settings | |
Linux: |
This file contains hidden or 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
Notification::assertSentTo($user, MyNotification::class, function ($notification) use ($user) { | |
$markdown = app(\Illuminate\Mail\Markdown::class); | |
$mail = $notification->toMail($user); | |
dd($markdown->render($mail->markdown, $mail->data())); | |
}); |
This file contains hidden or 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
pipeline { | |
agent any | |
stages { | |
stage('Prepare') { | |
steps { | |
sh 'composer install' | |
sh 'rm -rf build/api' | |
sh 'rm -rf build/coverage' | |
sh 'rm -rf build/logs' |
This file contains hidden or 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 -e | |
# JAVA_HOME can be passed as argument if not set | |
if [ ! -d $JAVA_HOME ]; then | |
JAVA_HOME=${1} | |
fi | |
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts | |
if [ ! -f "$KEYSTORE" ]; then | |
echo "Keystore not found in '$KEYSTORE'" | |
exit 1 |