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 org.bouncycastle.asn1.ASN1Encodable; | |
| import org.bouncycastle.asn1.DERSequence; | |
| import org.bouncycastle.asn1.x500.X500Name; | |
| import org.bouncycastle.asn1.x509.BasicConstraints; | |
| import org.bouncycastle.asn1.x509.Extension; | |
| import org.bouncycastle.asn1.x509.GeneralName; | |
| import org.bouncycastle.asn1.x509.KeyUsage; | |
| import org.bouncycastle.cert.X509CertificateHolder; | |
| import org.bouncycastle.cert.X509v3CertificateBuilder; | |
| import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter; |
| #source [find interface/stlink-v2-1.cfg] | |
| source [find interface/stlink-v2.cfg] | |
| transport select hla_swd | |
| source [find target/stm32f1x.cfg] | |
| #reset_config srst_only | |
| reset_config none separate |
| # Set the name and the supported language of the project | |
| PROJECT(hello-world C) | |
| # Set the minimum version of cmake required to build this project | |
| CMAKE_MINIMUM_REQUIRED(VERSION 2.6) | |
| # Use the package PkgConfig to detect GTK+ headers/library files | |
| FIND_PACKAGE(PkgConfig REQUIRED) | |
| PKG_CHECK_MODULES(GTK3 REQUIRED gtk+-3.0) | |
| # Setup CMake to use GTK+, tell the compiler where to look for headers |
| // NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension | |
| { | |
| // Settings | |
| "passfail" : false, // Stop on first error. | |
| "maxerr" : 100, // Maximum error before stopping. | |
| // Predefined globals whom JSHint will ignore. | |
| "browser" : true, // Standard browser globals e.g. `window`, `document`. |
| LogFile=/tmp/zabbix_agentd.log | |
| Server=1.2.3.4 | |
| ServerActive=1.2.3.4 | |
| Hostname=Zabbix server | |
| # wifi interface discovery | |
| # exemple: {"data":[{"{#IF}":"wlan0", "{#MODE}":"ap", "{#SSID}":"Openwrt", "{#NET}":"lan", "{#DEV}":"radio0", "{#ENC}":"psk2+ccmp", "{#TYPE}":"mac80211", "{#HWMODE}":"11ng", "{#CHANNEL}":"11", "{#BSSID}":"xx:xx:xx:xx:xx:xx"}]} | |
| # | |
| UserParameter=wifi.ifdiscovery,lua -l uci -l iwinfo -e 'x = uci.cursor(nil, "/var/state");list = "{\"data\":[";x:foreach("wireless", "wifi-iface", function(s) list=list.."{\"{#IF}\":\""..s.ifname.."\", \"{#MODE}\":\""..s.mode.."\", \"{#SSID}\":\""..s.ssid.."\", \"{#NET}\":\""..s.network.."\", \"{#DEV}\":\""..s.device.."\", \"{#ENC}\":\""..(s.encryption or "?").."\", \"{#TYPE}\":\""..x:get("wireless",s.device,"type").."\", \"{#HWMODE}\":\""..(x:get("wireless",s.device,"hwmode") or "?").."\", \"{#CHANNEL}\":\""..x:get("wireless",s.device,"channel").."\", \"{#BSSID}\":\""..iwinfo[iwinfo.type(s.ifname)].bssid(s.ifname).."\"}," end); list=string.gsub(list,",$",""); print(li |
| import javafx.animation.FadeTransition; | |
| import javafx.application.Application; | |
| import javafx.beans.property.ReadOnlyObjectProperty; | |
| import javafx.collections.*; | |
| import javafx.concurrent.*; | |
| import javafx.geometry.*; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.effect.DropShadow; | |
| import javafx.scene.image.*; |
xhost + ${hostname} to allow connections to the macOS host *export HOSTNAME=`hostname`* environment:
| # this monit config goes in /etc/monit/conf.d | |
| check process puma_master | |
| with pidfile /data/myapp/current/tmp/puma.pid | |
| start program = "/etc/monit/scripts/puma start" | |
| stop program = "/etc/monit/scripts/puma stop" | |
| group myapp | |
| check process puma_worker_0 | |
| with pidfile /data/myapp/current/tmp/puma_worker_0.pid |
| <?php | |
| use yii\db\Migration; | |
| class m170105_004305_add_fts extends Migration | |
| { | |
| public function safeUp() | |
| { | |
| /* |