UDP Trash Hack for WireGuard on AsusWRT Merlin
Проверяем, что включен пункт меню Enable JFFS custom scripts and configs
- Кладём файл
wgclient-start
в/jffs/scripts/
- Делаем скрипт запускаемым
Проверяем, что включен пункт меню Enable JFFS custom scripts and configs
wgclient-start
в /jffs/scripts/
use Phalcon\Session\AdapterInterface; | |
use Phalcon\Cache\Backend\Redis as RedisCache; | |
use Phalcon\Cache\Frontend\None as FrontendNone; | |
class Redis implements \SessionHandlerInterface, AdapterInterface | |
{ | |
const SESSION_ACTIVE = 2; | |
const SESSION_NONE = 1; |
//@flow | |
const { | |
readdirSync, | |
outputFileSync, | |
pathExistsSync, | |
//$todo | |
readFileSync, | |
} = require('fs-extra') |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.
Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.
Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup
#!/bin/bash | |
# modx-upgrade.sh | |
# --------------- | |
# A shell script to help automate the upgrade of a MODX Revolution installation | |
# This script is for traditional installations only - not advanced | |
# | |
# Instructions: | |
# 1. Update the config section with your own site specific details | |
# 2. Upload this file to your server, preferably outside of web root |