├── .github ├── gantt-logo.jpg ├── hero-image.png └── workflows │ └── publish.yml ├── .gitignore ├── .prettierignore ├── .prettierrc.json ├── README.md ├── builder
- can read on EmbeddedDashboard
- can export on Chart
- can export on Dashboard
- can csv on Superset
- can this form get on CsvToDatabaseView
- can this form post on CsvToDatabaseView (probably not required but I have it set)
This file contains 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
const dotenv = require("dotenv"); | |
let ENV_FILE_NAME = ""; | |
switch (process.env.NODE_ENV) { | |
case "production": | |
ENV_FILE_NAME = ".env.production"; | |
break; | |
case "staging": | |
ENV_FILE_NAME = ".env.staging"; | |
break; |
How to generate graphic model Django with PyGraphViz?
sudo apt-get install -y graphviz libgraphviz-dev pkg-config
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install pygraphviz
pip uninstall pyparsing
pip install -Iv https://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.7.tar.gz#md5=9be0fcdcc595199c646ab317c1d9a709
This file contains 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
#!/bin/bash | |
# Debug | |
set -o xtrace | |
GUEST_IP=192.168.122.221 | |
HOST_IP=192.168.122.1 | |
# Wipe the current usbfluxd, usbmuxd, and socat: | |
sudo killall usbfluxd |
This file contains 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
// show pdf in the editor | |
// pdf is uploaded using the video/media button | |
// then its tag is converted from video to pdf at beforeSetContent | |
tinymce.init({ | |
selector: 'textarea#Description', | |
plugins: 'print preview fullpage paste importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern noneditable help charmap quickbars emoticons ', | |
menubar: 'file edit view insert format tools table help', |
This file contains 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
import base64 | |
from django.core.files.base import ContentFile | |
from rest_framework import serializers | |
class Base64ImageField(serializers.ImageField): | |
def from_native(self, data): | |
if isinstance(data, basestring) and data.startswith('data:image'): | |
# base64 encoded image - decode |
Installing Huawei E3531 Surf Stick on Linux
May be a valuable insight for more modern surf sticks like Huawei E8231 and the likes ...
Linux is currently Ubuntu, Debian or Raspbian should be similar
This Huawei Surf stick has several USB mode. It appears first as CD-ROM-like device, so that Windows users can install their driver, then switches mode to appear as "something else". By defaut, this is a network card (virtually connected to a router),
This file contains 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
http://plainoldstan.blogspot.hk/2010/11/wix-installing-and-uninstalling-windows.html: | |
<?xml version="1.0" encoding="UTF-8"?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product Id="9c78f041-c29e-4d80-8d23-e4839e74038c" Name="StansApp" | |
Language="1033" Version="1.0.0.0" | |
Manufacturer="Standa" UpgradeCode="b1adfc21-927f-470a-ac87-a5019c84a253"> | |
<Package InstallerVersion="200" Compressed="yes" /> | |
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> | |
<Directory Id="TARGETDIR" Name="SourceDir"> |
NewerOlder