Skip to content

Instantly share code, notes, and snippets.

View leganz's full-sized avatar
💻
Code, Code, Code...

Manuel Pirker-Ihl leganz

💻
Code, Code, Code...
View GitHub Profile
#!/bin/bash
UPTIMEROBOT_TOKEN="uptimerobot-token-here"
OHDEAR_TOKEN="ohdear-token-here"
OHDEAR_TEAM_ID=123456789
OFFSET=0
LIMIT=50
TOTAL=1000000
@Gitsack
Gitsack / WSL2->X410
Last active January 4, 2021 17:09
Start Linux GUI apps from WSL2 to X410
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:
@ohnotnow
ohnotnow / example.php
Created December 8, 2017 09:17
Rendering the contents of a laravel mail notification in a test
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()));
});
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'
@galan
galan / import-letsencrypt-java.sh
Last active August 17, 2023 17:12
Imports the letsencrypt certificates into the java keystore
#!/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