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/Recently (well a couple of hours ago 😆) I installed Ubuntu 22.04 on my WSL2 but I misspelled my username and I had to ( wanted to is more accurate 😆) change to my preferred username. I got all my insights from here and here.
wsl -d ubuntu-22.04 -u root usermod -l <new-username> <old-username>
wsl -d ubuntu-22.04 -u root groupmod -n <new-groupname> <old-groupname>
wsl -d ubuntu-22.04 -u root usermod -d /home/<new-home-directory> -m <new-username>I got excited this worked the first time and I wanted to write about it 😄
| 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 |