Dump existing data:
python3 manage.py dumpdata > datadump.json
Change settings.py to Postgres backend.
Make sure you can connect on MySQL. Then:
<script> | |
var mui = function() | |
{ | |
var fired = false; | |
var kickTrigger = function() | |
{ | |
if(fired === true){return false;} | |
//console.log("miniumal-user-interaction"); | |
dataLayer.push({'minimal-user-interaction': true}); |
<?php | |
namespace App\Http\Livewire\Forum; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\DB; | |
use Livewire\WithPagination; | |
use Livewire\Component; | |
use App\Message; | |
use App\User; | |
class Chat extends Component |
# Find the latest version on https://github.com/creationix/nvm#install-script | |
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
# Add in your ~/.zshrc the following: | |
export NVM_DIR=~/.nvm | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | |
$ source ~/.zshrc |
<?php namespace App\Clients\Middleware; | |
use GuzzleHttp\Psr7\Response; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ResponseInterface; | |
use GuzzleHttp\Promise\PromiseInterface; | |
use GuzzleHttp\Promise\FulfilledPromise; | |
use Illuminate\Contracts\Cache\Repository; | |
/** |
#!/bin/bash | |
# from https://chromium.woolyss.com/ | |
# and https://gist.github.com/addyosmani/5336747 | |
# and https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md | |
sudo apt-get update | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:canonical-chromium-builds/stage | |
sudo apt-get update | |
sudo apt-get install chromium-browser | |
chromium-browser --headless --no-sandbox http://example.org/ |
Accounting | |
Airlines/Aviation | |
Alternative Dispute Resolution | |
Alternative Medicine | |
Animation | |
Apparel & Fashion | |
Architecture & Planning | |
Arts & Crafts | |
Automotive | |
Aviation & Aerospace |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import pprint | |
import subprocess | |
def get_processes(): | |
""" | |
Parse the output of `ps aux` into a list of dictionaries representing the parsed |
## {{{ http://code.activestate.com/recipes/578019/ (r15) | |
#!/usr/bin/env python | |
""" | |
Bytes-to-human / human-to-bytes converter. | |
Based on: http://goo.gl/kTQMs | |
Working with Python 2.x and 3.x. | |
Author: Giampaolo Rodola' <g.rodola [AT] gmail [DOT] com> | |
License: MIT |
/** | |
* Minified version | |
* 1.14KB (377 bytes gzipped) | |
* | |
* (function(){var documentIsReady=false;function documentReadyHandler(fn){if(!documentIsReady){documentIsReady=true;if(document.addEventListener)document.removeEventListener("DOMContentLoaded",function(){documentReadyHandler(fn)},false);else if(document.attachEvent)if(document.readyState=="complete")document.detachEvent("onreadystatechange",function(){documentReadyHandler(fn)});fn()}}function documentReady(fn){if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){documentReadyHandler(fn)},false);window.addEventListener("load",function(){documentReadyHandler(fn)},false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){documentReadyHandler(fn)});window.attachEvent("onload",function(){documentReadyHandler(fn)});var toplevel=false;try{toplevel=window.frameElement==null}catch(e){}if(document.documentElement.doScroll&&toplevel)doScrollCheck(function(){documentReadyHandler(fn)})}}function doSc |