I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
| import com.sun.javafx.application.PlatformImpl; | |
| import java.awt.BorderLayout; | |
| import java.awt.Dimension; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import javafx.application.Platform; | |
| import javafx.collections.ObservableList; | |
| import javafx.embed.swing.JFXPanel; | |
| import javafx.scene.Group; | |
| import javafx.scene.Node; |
| import javafx.application.Application; | |
| import javafx.beans.value.ChangeListener; | |
| import javafx.beans.value.ObservableValue; | |
| import javafx.scene.Scene; | |
| import javafx.scene.web.WebEngine; | |
| import javafx.scene.web.WebView; | |
| import javafx.stage.Stage; | |
| import org.w3c.dom.Document; | |
| /** |
| <?php | |
| ignore_user_abort(true); | |
| function syscall ($cmd, $cwd) { | |
| $descriptorspec = array( | |
| 1 => array('pipe', 'w'), // stdout is a pipe that the child will write to | |
| 2 => array('pipe', 'w') // stderr |
| #!/bin/bash | |
| aptitude -y install expect | |
| // Not required in actual script | |
| MYSQL_ROOT_PASSWORD=abcd1234 | |
| SECURE_MYSQL=$(expect -c " | |
| set timeout 10 |
| <?php | |
| /** | |
| * MySQL layer for DBO | |
| * | |
| * PHP 5 | |
| * | |
| * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
| * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | |
| * | |
| * Licensed under The MIT License |
| #!/bin/bash | |
| # Function to check if the PHP version is valid | |
| checkPHPVersion() { | |
| # The current PHP Version of the machine | |
| PHPVersion=$(php -v|grep --only-matching --perl-regexp "5\.\\d+\.\\d+"); | |
| # Truncate the string abit so we can do a binary comparison | |
| currentVersion=${PHPVersion::0-2}; | |
| # The version to validate against | |
| minimumRequiredVersion=$1; |
From Stack Overflow.
# Fetch the submodule commits into the main repository
git remote add submodule_origin git://url/to/submodule/origin
git fetch submodule_origin
# Start a fake merge (won't change any files, won't commit anything)
git merge -s ours --no-commit submodule_origin/master| #!/bin/bash | |
| sudo apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg2 \ | |
| software-properties-common | |
| curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - |
| #!/usr/bin/env bash | |
| set -u | |
| WIN_VOLUME= | |
| DRIVE_NAME= | |
| echo " | |
| _.-;;-._ | |
| '-..-'| || | | |
| '-..-'|_.-;;-._| | |
| '-..-'| || | | |
| jgs '-..-'|_.-''-._|" |