set a base directory (just to make things easier)
$ basedir="$(pwd)"
set up Emscripten https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html
$ cd "$basedir"
$ git clone https://github.com/juj/emsdk.git
/** | |
* Check emoji from string | |
* | |
* @return bool if existed emoji in string | |
*/ | |
function checkEmoji($str) | |
{ | |
$regexEmoticons = '/[\x{1F600}-\x{1F64F}]/u'; | |
preg_match($regexEmoticons, $str, $matches_emo); | |
if (!empty($matches_emo[0])) { |
var touchstartX = 0; | |
var touchstartY = 0; | |
var touchendX = 0; | |
var touchendY = 0; | |
var gesuredZone = document.getElementById('gesuredZone'); | |
gesuredZone.addEventListener('touchstart', function(event) { | |
touchstartX = event.changedTouches[0].pageX; | |
touchstartY = event.changedTouches[0].pageY; |
# Fail2Ban configuration file | |
# | |
# NOTE | |
# You should set up in the jail.conf file, the maxretry and findtime carefully in order to avoid false positives. | |
# | |
# Author: http://www.go2linux.org | |
# Modified by: samnicholls.net | |
# * Mon 6 Jun 2016 - Updated failregex to capture HOST group correctly | |
[Definition] |
;End GCode | |
M104 S0 ;extruder heater off | |
M140 S0 ;heated bed heater off (if you have it) | |
G91 ;relative positioning | |
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure | |
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more | |
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way | |
M84 ;steppers off |
donations: | |
paypal: | |
text: Donate # Button text | |
id: 7334HG9754 # PayPal button ID |
set a base directory (just to make things easier)
$ basedir="$(pwd)"
set up Emscripten https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html
$ cd "$basedir"
$ git clone https://github.com/juj/emsdk.git
sudo nano /etc/fail2ban/filter.d/nextcloud.conf
[Definition]
failregex=^{"reqId":".*","remoteAddr":".*","app":"core","message":"Login failed: '.*' \(Remote IP: '<HOST>'\)","level":2,"time":".*"}$
^{"reqId":".*","level":2,"time":".*","remoteAddr":".*","app":"core".*","message":"Login failed: '.*' \(Remote IP: '<HOST>'\)".*}$
^.*\"remoteAddr\":\"<HOST>\".*Trusted domain error.*$
#!/bin/bash | |
echo 'update brew' | |
brew update | |
echo 'upgrade brew' | |
brew upgrade |
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |