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
from requests import Session | |
import mimetypes | |
from pathlib import Path | |
""" | |
Coded for https://stackoverflow.com/questions/66393210/how-can-i-send-api-request-through-python-for-mirrorace-org | |
""" | |
def get_mime(f): |
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 glob | |
all_dirs = glob.glob("/path/to/dir/with/subfolders/*/") # path to dir containing subdirs with musics | |
for mdir in all_dirs: | |
dir_name = mdir.split("/")[-2] | |
playlist_path = f'{mdir}{dir_name}.m3u' | |
print(playlist_path) | |
#continue |
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
# Made for: https://stackoverflow.com/questions/61366836/download-attachment-from-mail-using-python/ | |
import os | |
from imbox import Imbox # pip install imbox | |
import traceback | |
# enable less secure apps on your google account | |
# https://myaccount.google.com/lesssecureapps | |
host = "imap.gmail.com" |
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
''' | |
Project: curinga | |
Time: 2020/03/07 01:37 | |
''' | |
import win32api | |
import win32print | |
import traceback | |
from tkinter.filedialog import askopenfilename | |
from tkinter import * |
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
""" | |
If you have problems importing PyQt5, just comment: | |
# from PyQt5.QtWidgets import QApplication | |
# all def center(): ... | |
# center(rootWin) | |
It just centers the window on screen | |
""" |
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
package dk.meznik.jan.encrypttext; | |
import android.app.Activity; | |
import android.content.ClipData; | |
import android.content.ClipboardManager; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; |
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
package dk.meznik.jan.encrypttext.util; | |
import android.util.Base64; | |
import java.io.UnsupportedEncodingException; | |
import java.security.InvalidAlgorithmParameterException; | |
import java.security.InvalidKeyException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.SecureRandom; |
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
''' | |
Project: curinga | |
Time: 27/02/2020 04:45 | |
''' | |
import base64 | |
import hashlib | |
from Crypto import Random | |
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
""" | |
Notes: | |
1 - This script it for python3 | |
2 - Create a backup first | |
3 - Place on the root folder of the android project you want to change | |
4 - run `python change_android_studio_pkg_name.py` | |
5 - Type the old package name | |
6 - Type the new package name | |
7 - Clean and Rebuild on Android Studio | |
8 - SRC folder names won't be changed but app will work |
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 python3 | |
# -*- coding: utf-8 -*- | |
import base64 | |
import datetime | |
import hashlib | |
import hmac | |
import simplejson as json | |
import requests |