# Install required dependencies
sudo apt-get install build-essential curl git python libglib2.0-dev
cd /tmp
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.3-apache | |
COPY --chmod=775 ioncube-loader-setup.sh /tmp/ioncube-loader-setup.sh | |
RUN set -x && bash -c /tmp/ioncube-loader-setup.sh |
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
#!/usr/bin/env bash | |
echo ">>> Setup logstash" | |
sudo apt install logstash | |
sudo systemctl enable logstash | |
sudo systemctl start logstash | |
cat <<EOF | sudo tee /etc/rsyslog.d/01-json-template.conf | |
template(name="json-template" |
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
#!/usr/bin/env bash | |
echo ">>> Installing Kibana" | |
# Check https://www.elastic.co/downloads/kibana for latest version | |
KIBANA_VERSION=7.9.0 | |
sudo mkdir -p /opt/kibana | |
sudo chmod -R 755 /opt/kibana | |
sudo chown -R vagrant:vagrant /opt/kibana |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.game { | |
background-color: #eee; | |
border-spacing: 0; | |
} | |
.game tr:nth-child(2) td { | |
border-top: 1px solid #000; |
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
package my.flutter.plugin | |
import io.flutter.plugin.common.MethodCall | |
import io.flutter.plugin.common.MethodChannel | |
import io.flutter.plugin.common.MethodChannel.MethodCallHandler | |
import io.flutter.plugin.common.MethodChannel.Result | |
import io.flutter.plugin.common.PluginRegistry.Registrar | |
import android.content.ContentValues.TAG | |
import android.util.Log | |
import java.lang.reflect.Method |
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 | |
# | |
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_Yosemite_16a238m_install_success_and_guide/ | |
# Adapted to work with the official image available into Mac App Store | |
# | |
# Enjoy! | |
hdiutil attach /Applications/Install\ macOS\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app | |
hdiutil create -o /tmp/Yosemite.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Yosemite.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build |
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 | |
apt update | |
upgradeable_count=$(($( apt list --upgradeable | wc -l) - 1)) | |
if [ $upgradeable_count -gt 0 ]; then | |
apt list --upgradeable | mailx -s "$upgradeable_count Updates available at $(hostname)" [email protected] | |
fi; |
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 | |
/** | |
* utf8_encode only once | |
* | |
* @param string $data The data | |
* @return string The converted string | |
*/ | |
function doUtf8($data) | |
{ |