Skip to content

Instantly share code, notes, and snippets.

x011

Block or report user

Report or block x011

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@x011
x011 / change_android_studio_pkg_name.py
Last active Dec 3, 2019
Change Android Studio Package Name
View change_android_studio_pkg_name.py
"""
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
View aws_reko.py
#!/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 Apr 4, 2019
hangman_computer_jargons.json
View 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
View gist:effe69784e28acb6e2b94b1bb7696fbd
{"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 Apr 4, 2019
python_hangman_game_computer_jargons_dict.json
View python_hangman_game_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 when the
@x011
x011 / pathcatcher.py
Last active Nov 28, 2018
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.
View pathcatcher.py
"""
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.
@x011
x011 / windows10_processes_to_json.py
Last active Nov 28, 2018
Small python3 script to dump all running processes and properties to a json object
View windows10_processes_to_json.py
'''
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
@x011
x011 / README.md
Created Nov 27, 2018 — forked from magnetikonline/README.md
NSSM - the Non-Sucking Service Manager cheatsheet.
View README.md
@x011
x011 / python_windows_monitor_on_off.py
Last active Nov 22, 2018
Pyhon script to turn the monitor On/Off on windows systems.
View python_windows_monitor_on_off.py
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
View 53272556_parse_txt.php
<?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');
You can’t perform that action at this time.