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
| # activate the virtualenv | |
| source /home/superset/.virtualenvs/superset/bin/activate | |
| fabmanager reset-password --app superset --username admin --password enteryournewpassword |
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
| #!/bin/bash | |
| echo "Starting Docker installation on Deepin Linux..." | |
| # Define a mapping from Deepin version to Debian version | |
| map_deepin_to_debian() { | |
| if [ "$1" -lt 20 ]; then | |
| echo "stretch" | |
| elif [ "$1" -ge 20 ]; then | |
| echo "buster" |
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
| ''' | |
| These are 5 different methods that attempt to retrieve the Quicktime property metadata "Media DateEncoded" from an 'mp4' file. | |
| ''' | |
| import os | |
| import re | |
| import struct | |
| import subprocess as sub | |
| from datetime import datetime | |
| from hachoir.parser import createParser |
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
| package main | |
| import ( | |
| "fmt" | |
| "github.com/nicksnyder/go-i18n/v2/i18n" | |
| "golang.org/x/text/language" | |
| "strings" | |
| ) | |
| func main() { |
OlderNewer