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
version: '2' | |
services: | |
console: | |
build: . | |
environment: | |
- HISTFILE=/root/.bash_history/.bash_history | |
volumes: | |
- ./consoledata:/console | |
- ./root/.bash_history:/root/.bash_history | |
- ./root/.aws:/root/.aws |
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
# vim:set ft=dockerfile: | |
FROM ubuntu:latest | |
RUN apt update && \ | |
apt install -y unzip curl vim-tiny bash-completion groff-base | |
WORKDIR /tmp | |
# AWS CLI |
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 re | |
import json | |
import glob | |
import os | |
import pathlib | |
# translation.translate('ABC') | |
PATTERN_TS_1 = re.compile(r"""translation.translate\(['"]([^'"]+)['"]\)""") | |
# {{ 'ABC' | translate:lang }} |
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
/* | |
* Camera Android Fix | |
* | |
* Shows a workaround for bug https://jira.appcelerator.org/browse/TIMOB-12848 | |
* Android: Using the camera on certain devices causes the app to crash | |
* | |
* | |
*/ | |
// Function to manage the taken picture |