Skip to content

Instantly share code, notes, and snippets.

"""
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
"""
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;
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;
'''
Project: curinga
Time: 27/02/2020 04:45
'''
import base64
import hashlib
from Crypto import Random
from Crypto.Cipher import AES
@x011
x011 / change_android_studio_pkg_name.py
Last active December 3, 2019 12:56
Change Android Studio Package Name
"""
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import base64
import datetime
import hashlib
import hmac
import simplejson as json
import requests
@x011
x011 / hangman_computer_jargons.json
Created April 4, 2019 20:10
hangman_computer_jargons.json
{"aac": "Advanced Audio Coding", "aadl": "Axiomatic Architecture Description Language", "aal": "ATM Adaptation Layer", "aap": "Association of American Publishers", "aard": "programming, tool Dutch for earth A tool to check memory use for C++ programs, written by Steve Reiss spr@cs.brown.edu who names his programs after living systems.", "aarp": "Apple Address Resolution Protocol", "aaui": "Apple Attachment Unit Interface", "abbrev": "jargon /*-breev'/, /*-brev'/ Common abbreviation for abbreviation.", "abc": "1. computer Atanasoff-Berry Computer.", "abduction": "logic The process of inference to the best explanation.", "abend": "jargon /o'bend/, /*-bend'/ ABnormal END. Abnormal termination of software; crash; lossage. Derives from an error message on the IBM 360; used jokingly by hackers but seriously mainly by code grinders. Usually capitalised, but may appear as abend. Hackers will try to persuade you that ABEND is called abend because it is what system operators do to the computer late on Friday wahen they
{"AAC":"Advanced Audio Coding", "AADL":"Axiomatic Architecture Description Language", "AAL":"ATM Adaptation Layer", "AAP":"Association of American Publishers", "aard":"programming, tool Dutch for earth A tool to check memory use for C++ programs, written by Steve Reiss spr@cs.brown.edu who names his programs after living systems.", "AARP":"Apple Address Resolution Protocol", "AAUI":"Apple Attachment Unit Interface", "abbrev":"jargon /*-breev'/, /*-brev'/ Common abbreviation for abbreviation.", "ABC":"1. computer Atanasoff-Berry Computer.", "abduction":"logic The process of inference to the best explanation.", "ABEND":"jargon /o'bend/, /*-bend'/ ABnormal END. Abnormal termination of software; crash; lossage. Derives from an error message on the IBM 360; used jokingly by hackers but seriously mainly by code grinders. Usually capitalised, but may appear as abend. Hackers will try to persuade you that ABEND is called abend because it is what system operators do to the computer late on Friday wahen they want to ca
@x011
x011 / python_hangman_game_computer_jargons.json
Created April 4, 2019 20:01
python_hangman_game_computer_jargons_dict.json
{"AAC":"Advanced Audio Coding", "AADL":"Axiomatic Architecture Description Language", "AAL":"ATM Adaptation Layer", "AAP":"Association of American Publishers", "aard":"programming, tool Dutch for earth A tool to check memory use for C++ programs, written by Steve Reiss spr@cs.brown.edu who names his programs after living systems.", "AARP":"Apple Address Resolution Protocol", "AAUI":"Apple Attachment Unit Interface", "abbrev":"jargon /*-breev'/, /*-brev'/ Common abbreviation for abbreviation.", "ABC":"1. computer Atanasoff-Berry Computer.", "abduction":"logic The process of inference to the best explanation.", "ABEND":"jargon /o'bend/, /*-bend'/ ABnormal END. Abnormal termination of software; crash; lossage. Derives from an error message on the IBM 360; used jokingly by hackers but seriously mainly by code grinders. Usually capitalised, but may appear as abend. Hackers will try to persuade you that ABEND is called abend because it is what system operators do to the computer late on Friday when the
@x011
x011 / pathcatcher.py
Last active June 30, 2023 22:37
The script is very handy, Simply select a file or directory in Windows Explorer and copy its path to the clipboard directly from the context menu.To install it, run a command shell as admin and call the script without an argument. After that it is installed and can be used from the context menu.
"""
PathCatcher is a Windows utility that allows one to right-click on
a folder or a file in Explorer and save its path to the clipboard.
If this module is run by itself, it installs PathCatcher to the registry.
After it is installed, when one clicks on a file or folder, "PathCatcher"
appears in the right-click menu.
This module also contains some useful code for accessing the Windows
clipboard and registry.