Skip to content

Instantly share code, notes, and snippets.

View Matin-B's full-sized avatar
👨‍💻
Working ...

Matin Baloochestani Matin-B

👨‍💻
Working ...
View GitHub Profile
==> Install app
adb install Myapp.apk
adb -d install Myapp.apk //-d (directs command to the connected USB device.)
adb -e install Myapp.apk //-e (directs command to the running emulator.)
adb -s install Myapp.apk //-s<serial number>
adb -p install Myapp.apk //-p <product name or path>
----------------------------------------------------------------------------------------------------------
==> Uninstall app
[
{
"value": 1,
"first": "bar",
"second": "bar",
"third": "bar"
},
{
"value": 2,
"first": "grape",
@marcorichetta
marcorichetta / postgresql-manjaro.md
Last active April 30, 2024 11:12
Install PostgreSQL on Manjaro and set it up for Django
@Poolitzer
Poolitzer / bot.py
Created October 21, 2019 18:03
An example of how to download bigger files via telethon, coming from ptb
import asyncio
from telegram.ext import Updater, MessageHandler, Filters
from telethon.utils import resolve_bot_file_id, get_input_location
from telethon import TelegramClient
import logging
logging.basicConfig()
@keithweaver
keithweaver / create-folder.py
Created March 10, 2017 03:42
Create a folder with Python
import os
def createFolder(directory):
try:
if not os.path.exists(directory):
os.makedirs(directory)
except OSError:
print ('Error: Creating directory. ' + directory)
@timnew
timnew / JSONView Dark Theme.css
Created March 15, 2013 03:16
This is a dark theme for JSONView chrome extension
body {
white-space: pre;
font-family: consolas;
color: white;
background: black;
}
.property {
color: orange;
font-weight: bold;