This is a small write up about how to migrate your pritunl install between servers. It's not especially detailed because I'm lazy and your migration story will most likely be different. All this can be avoided by using a remote/hosted mongo instance(compose.io, mongolab, etc.) and simply pointing your pritunl instance at that. If you want more details ask, and I'll do my best to answer and update this write-up accordingly. Also, feel free to criticize my grammar and spelling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <ruleset name="Sane Laravel ruleset" | |
| xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 | |
| http://pmd.sf.net/ruleset_xml_schema.xsd" | |
| xsi:noNamespaceSchemaLocation=" | |
| http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
| <description> | |
| This enables everything and sets some exceptions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cloud-config | |
| groups: | |
| - docker | |
| users: | |
| - default | |
| - name: ubuntu | |
| groups: | |
| - docker |
Edit: running native php on windows sucks!
- It is extremly low performant (PHP is designed for UNIX systems and depends on UNIX native libraries)
- What works for you on Windows, chances that critical things will break in Linux servers
- Windows now has WSL2 and it is awesome!
- Docker also :-)
Beginners, use latest stable version, for example 8.0.10 at the writing of this gist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH inactive_connections AS ( | |
| SELECT | |
| pid, | |
| rank() over (partition by client_addr order by backend_start ASC) as rank | |
| FROM | |
| pg_stat_activity | |
| WHERE | |
| -- Exclude the thread owned connection (ie no auto-kill) | |
| pid <> pg_backend_pid( ) | |
| AND |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # add this to ~/.profile or correct profile file used by your shell | |
| export RBENV_ROOT="/home/madalin/.rbenv" | |
| if [ -d "${RBENV_ROOT}" ] ; then | |
| PATH="${RBENV_ROOT}/bin:$PATH" | |
| eval "$(rbenv init -)" | |
| fi | |
| export PHPENV_ROOT="/home/madalin/.phpenv" | |
| if [ -d "${PHPENV_ROOT}" ] ; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unlet! skip_defaults_vim | |
| source $VIMRUNTIME/defaults.vim | |
| python3 from powerline.vim import setup as powerline_setup | |
| python3 powerline_setup() | |
| python3 del powerline_setup | |
| set laststatus=2 " Always display the statusline in all windows | |
| set showtabline=2 " Always display the tabline, even if there is only one tab | |
| set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --fg: #f0f0f0; | |
| --bg: #222; | |
| --border: #525252; | |
| --well: #303030; | |
| } | |
| body { | |
| color: var(--fg) !important; | |
| background-color: var(--bg) !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| APP_NAME=Laravel | |
| APP_ENV=local | |
| APP_KEY=base64:nFiB+9iH3czw93BGTUvW0Ua4j+pQFIn+sUq6IJJzHWI= | |
| APP_DEBUG=true | |
| APP_URL=http://localhost:8000 | |
| SANCTUM_STATEFUL_DOMAINS=localhost:3000 | |
| SPA_URL=http://localhost:3000 | |
| SESSION_DOMAIN=localhost |