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 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 os | |
| a = 0 | |
| dir = input('dir: ') | |
| l = 10 | |
| C=str(input('camera: ')or"0") | |
| while a < l: | |
| a = 1 + a | |
| c = 'termux-camera-photo -c '+ C+" " + dir + str(a) + '.jpeg' | |
| print(c) |
-
Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.
-
Update system packages in Termux:
$ pkg update -y
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
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
| # https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection | |
| # requires pycryptodome lib (pip install pycryptodome) | |
| import sys | |
| import base64 | |
| import os | |
| import json | |
| from Crypto.Cipher import AES |
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
| { | |
| "inbounds": [ | |
| { | |
| "port": 1080, | |
| "listen": "127.0.0.1", | |
| "protocol": "socks", | |
| "settings": { | |
| "udp": false | |
| } | |
| } |
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/sh | |
| ### Modified from http://blog.csdn.net/favormm/article/details/6772097 | |
| set -xe | |
| DEVELOPER=`xcode-select -print-path` | |
| DEST=`pwd .`"/opencore-amr-iOS" | |
| ARCHS="i386 x86_64 armv7 armv7s arm64" | |
| LIBS="libopencore-amrnb.a libopencore-amrwb.a" | |
| # Note that AMR-NB is for narrow band http://en.wikipedia.org/wiki/Adaptive_Multi-Rate_audio_codec |
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
| ffmpeg -i inputfile.wav -ab 320k outputfile.mp3 |
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 | |
| # Size at the end is * 2048 where 2048 = 1 MB, so 1572864 = 768 MB | |
| #DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://1572864` | |
| DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://2097152` | |
| /usr/sbin/diskutil erasevolume HFS+ "RamDiskCache" $DISK | |
| CACHEDIR="/Volumes/RamDiskCache/$USER" |
NewerOlder
