This file contains 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
#NoTrayIcon | |
#SingleInstance Force | |
SendMode "Input" | |
^Space:: WinSetAlwaysOnTop -1, WinExist("A") | |
^+c:: winExplorerGetSelectionPaths() | |
^!t:: launchCmd() | |
winExplorerGetSelectionPaths() { | |
if(WinActive("ahk_class CabinetWClass")) { |
This file contains 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 java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.net.Socket; | |
import java.security.cert.Certificate; | |
import javax.net.ServerSocketFactory; | |
import javax.net.ssl.SSLPeerUnverifiedException; | |
import javax.net.ssl.SSLServerSocket; |
This file contains 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
download and install android studio | |
download sdk-tools-windows.zip | |
extract to dir c:/android/sdk, no spaces in path | |
from sdk dir in cmd, run | |
.\tools\bin\sdkmanager.bat --proxy=http --proxy_host=<proxy_host> --proxy_port=<proxy_port> --verbose --list | |
note down packes to be installed | |
run the commnd to install the packages | |
.\tools\bin\sdkmanager.bat --sdk_root=. --proxy=http --proxy_host=<proxy_host> --proxy_port=<proxy_port> --verbose --install tools "build-tools;28.0.3" docs emulator "platforms;android-28" "sources;android-28" "system-images;android-28;default;x86_64" |
This file contains 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
def rawPomUrl ="<raw pom Url" | |
def pom = new URL(rawPomUrl).getText() | |
def xmlRootNode = new XmlParser().parseText(pom) | |
def jsonText = '''{ | |
"disable_edit_json": true, | |
"disable_properties": true, | |
"no_additional_properties": true, | |
"disable_collapse": true, | |
"disable_array_add": true, |
This file contains 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
#NoTrayIcon | |
#SingleInstance force | |
#IfWinActive ahk_class CabinetWClass | |
^+c:: Explorer_GetSelection() | |
Explorer_GetSelection(hwnd="") { | |
hwnd := hwnd ? hwnd : WinExist("A") | |
WinGetClass class, ahk_id %hwnd% | |
if (class="CabinetWClass" or class="ExploreWClass" or class="Progman") |
This file contains 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
@echo off | |
setlocal enableextensions enabledelayedexpansion | |
SETLOCAL | |
set ctime=%time: =0% | |
set inoffice=y | |
if "%ctime%" lss "09:00:00,00" ( set "inoffice=" ) | |
if "%ctime%" geq "18:00:00,00" ( set "inoffice=" ) | |
for /F "skip=2 tokens=2-4 delims=," %%A in ('WMIC Path Win32_LocalTime Get DayOfWeek /Format:csv') do set daynumber=%%A | |
if /I %daynumber% EQU 6 set notofficeday=y |