Content :
This cheatsheet is for the following video that shows how to Install and Run the PostgreSQL Database server on your Andriod Phone. Watch this video for a complete Demo/Solution: https://youtu.be/7edutr-ALdc
- Google PlayStore: https://play.google.com/store/apps/details?id=com.termux
- Fdroid PlayStore(Recommended): https://f-droid.org/en/packages/com.termux
- Github (latest builds): https://github.com/termux/termux-app/releases
Once termux is installed open it and use the shell for below commands
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
| #!/usr/bin/env python | |
| # secret-key | |
| # Generate an app secret key | |
| from base64 import b64encode | |
| from os import urandom | |
| random_bytes = urandom(64) | |
| token = b64encode(random_bytes).decode() |
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
| #!/usr/bin/env bash | |
| COMMAND="$1" | |
| shift | |
| function liz_storage() { | |
| echo "Storage - configure termux setup storage" | |
| termux-setup-storage | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Seed tool</title> | |
| <style> | |
| .seed-status { | |
| display: inline-block; | |
| padding; 2px; | |
| background: #ccc; | |
| } |
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
| import json | |
| import urllib2 | |
| import base64 | |
| baseURL = "https://domain.example:8080/geoserver/gwc/rest/seed/" | |
| descURL = "https://domain.example:8080/geoserver/gwc/rest/layers/" | |
| un = 'username' | |
| pw = 'biglongtrickypassword' | |
| def truncateLayer(layer): |
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
| import requests | |
| class GeoWebCacheService(object): | |
| """Class to communicate with the geowebcache api. | |
| Api doco here: http://geowebcache.org/docs/current/rest/seed.html | |
| """ | |
| _url = None | |
| _username = None | |
| _password = None |
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
| #!/usr/bin/env python | |
| from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
| import re | |
| import sqlite3 as sqlite | |
| # Hacky serving of MBtile data | |
| # Put filename to the MBTiles file below: this could be done with cmd line options | |
| # but this is a hack so there .... |
WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow my guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.
- Windows Subsystem for Android or WSA must be Installed.
Click here to view the guide that shows how to install Windows Subsystem for Android in any Edition of Windows 11 (including Windows 11 Home) non Inider or stable release.
- First install Windows Subsystem for Android. [Click here](https://gist.github.com/HimDek/eb8704e2da1d98240153165743
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
| // check version | |
| node -v || node --version | |
| // list installed versions of node (via nvm) | |
| nvm ls | |
| // install specific version of node | |
| nvm install 6.9.2 | |
| // set default version of node |
NewerOlder