NSSM cheatsheat
Create a new service
nssm.exe install SERVICE_NAME "C:\path\to\exe\or\bat\file.ext" "argument1 argument2"
""" | |
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 |
{"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 |
{"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 |
""" | |
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. |
''' | |
Author: The famous unknown | |
Date: 20181127 | |
Description: Small python3 script to dump all running processes and properties to a json object. | |
OS: Windows | |
Python Version: Python3 | |
Uses: wmi.WMI().Win32_Process() # https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-process | |
''' | |
import json, wmi |
nssm.exe install SERVICE_NAME "C:\path\to\exe\or\bat\file.ext" "argument1 argument2"
import win32gui, win32con | |
from time import sleep | |
SC_MONITORPOWER = 0xF170 | |
win32gui.SendMessage(win32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND, SC_MONITORPOWER, 2) # Off | |
sleep(2) | |
win32gui.SendMessage(win32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND, SC_MONITORPOWER, -1) # On |
<?php | |
/** | |
* User: x | |
* Project: stack | |
* Time: 13-Nov-18 03:16 | |
*/ | |
/* set a default timezone? */ | |
date_default_timezone_set("America/New_York"); | |
$fromDateTime = new DateTime('2018-11-13 03:00:00'); # Y-m-d H:i:s | |
$toDateTime = new DateTime('2018-11-13 19:59:00'); |