Skip to content

Instantly share code, notes, and snippets.

View oschannel's full-sized avatar
🎥

OsChannel.com oschannel

🎥
View GitHub Profile
@oschannel
oschannel / CHEATSHEET.md
Last active May 20, 2024 14:29
Running PostgreSQL server on Android Phone without rooting

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

Install Termux:

Once termux is installed open it and use the shell for below commands

  • Install PostgreSQL:

@oschannel
oschannel / termux_repository_edit.md
Created December 4, 2021 21:37
Solved: Termux Repository Under Maintenance or Down

This gist is an answer to the question asked on one of my youtube vids: https://youtu.be/kaCkPTX3p2E

Hadebe Thabang Qtn) So the sources list entry how do you put them on termux?

The termux-change-repo command will automatically edit the entries in sources.list and sources.list.d/* files if you follow the steps from the video tuorial. This 'termux-change-repo' command comes from the termux-tools package, which according to my exp comes pre-installed.

You can check if its available using command dpkg -l | grep termux-tools.

@oschannel
oschannel / Python_Palindrome.py
Created July 22, 2021 09:34
Python Palindrome Program for Beginners.
#!/usr/bin/env python3
"""This code is from Youtube Video:
Python Palindrome Program for Beginners | By OsChannel
Watch on Youtube: https://youtu.be/jUFnTxXITDw
"""
def is_palindrome(text):
text = str(text)
if text == text[::-1]:
print("{} is a Palindrome".format(text))
@oschannel
oschannel / pyenv_basics_cheatsheet.md
Last active April 17, 2022 09:16
PYENV BASICS CHEATSHEET | by OsChannel.com

Watch a video tutorial about below on OsChannel.com: https://youtu.be/WVISFQpstJE

PyEnv Basics Cheatsheet Contains:

  • Installation of PyEnv.
  • Installation of Multiple Python versions including a macOS Fix.
  • Setting Different Python versions for your Projects using multiple ways.
  • Swiching between Python Versions using PyEnv.

To Install pyenv: