All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
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
#!/usr/bin/python3 | |
import json | |
import argparse | |
import os | |
import re | |
import shlex | |
import shutil | |
import subprocess | |
import tempfile | |
import textwrap |
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
""" You may want some translatable fields in your project becomes untranslatable | |
Here is how to produce code | |
Note: to be executed with odoo shell | |
""" | |
print('\n'.join( | |
["\n\nclass %s(models.Model):\n\t_inherit = '%s'\n\t%s = fields.%s(translate=False)" % ( | |
x.model.replace('.', ' ').title().replace(' ', ''), x.model, x['name'], x.ttype.capitalize()) |
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: | |
cron: | |
scale: 1 | |
start_on_create: true | |
health_check: | |
healthy_threshold: 2 | |
response_timeout: 2000 | |
port: 8069 | |
unhealthy_threshold: 60 |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
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 | |
# before you can use this, you need to run (as root): | |
# git clone https://github.com/tt/stack-images.git /root/stack-images | |
# git clone https://github.com/gliderlabs/herokuish.git /root/herokuish | |
# First, we need to get our base ubuntu images up to date | |
docker pull ubuntu-debootstrap:14.04 | |
docker pull ubuntu:trusty # for postgresql |
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/sh | |
sudo mount -t ramfs none /mnt/ | |
sudo mkdir /mnt/pgdata/ | |
sudo chown postgres:postgres /mnt/pgdata/ | |
sudo service postgresql start | |
psql -d postgres -c "CREATE TABLESPACE ramfs LOCATION '/mnt/pgdata'" | |
psql -d postgres -c "CREATE DATABASE testdb TABLESPACE ramfs" |
NewerOlder