Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer tooling: handle images, encoding, hashing, linting, formatting, ... #11

Open
14 tasks
Laoujin opened this issue Feb 26, 2018 · 7 comments
Open
14 tasks
Assignees
Labels

Comments

@Laoujin
Copy link
Member

Laoujin commented Feb 26, 2018

@Laoujin
Copy link
Member Author

Laoujin commented Mar 24, 2018

figure out file encoding + change file encoding

@Laoujin Laoujin added the epic label Apr 22, 2018
@Laoujin Laoujin changed the title All kinds of developer tooling Developer tooling: handle images, encoding, hashing, linting, formatting, ... Apr 22, 2018
@Laoujin
Copy link
Member Author

Laoujin commented Apr 22, 2018

GetLocation(findip)
{
IPsearch := "http://ip-address-lookup-v4.com/lookup.php?host=ip-address-lookup-v4.com&ip=" . findip . "&x=31&y=29"
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", IPsearch)
whr.Send()
  sleep 100
version := whr.ResponseText
RegExMatch(version, "Near: <span class=""blueish"">(.*)</span>", Location) 
Return Location1
}

tracert, my ip adresses, dns lookup, ping, ...

Run, cmd /K "ping www.google.com"

@Laoujin
Copy link
Member Author

Laoujin commented Apr 22, 2018

https://github.com/RaptorX/AHK-ToolKit/blob/master/lib/hash.ahk

Hash(ByRef sData, SID=4) { ; SID = 3: MD5, 4: SHA1
    ; Lazlo: http://www.autohotkey.com/forum/viewtopic.php?p=113252#113252
    
    DllCall("advapi32\CryptAcquireContextW", UIntP,hProv, UInt,0, UInt,0, UInt,1, UInt,0xF0000000)
    DllCall("advapi32\CryptCreateHash", UInt,hProv, UInt,0x8000|0|SID, UInt,0, UInt,0, UIntP, hHash)
    DllCall("advapi32\CryptHashData", UInt,hHash, UInt,&sData, UInt,nLen := strlen(sData), UInt,0)
    DllCall("advapi32\CryptGetHashParam", UInt,hHash, UInt,2, UInt,0, UIntP,nSize, UInt,0)
    VarSetCapacity(HashVal, nSize, 0)
    DllCall("advapi32\CryptGetHashParam", UInt,hHash, UInt,2, UInt,&HashVal, UIntP,nSize, UInt,0)
    DllCall("advapi32\CryptDestroyHash", UInt,hHash)
    DllCall("advapi32\CryptReleaseContext", UInt,hProv, UInt,0)

    IFormat := A_FormatInteger
    SetFormat Integer, H
    Loop %nSize%
      sHash .= SubStr(*(&HashVal+A_Index-1)+0x100,-1)
    SetFormat Integer, %IFormat%
    Return sHash
}

@Laoujin
Copy link
Member Author

Laoujin commented Apr 22, 2018

@Laoujin Laoujin self-assigned this Apr 23, 2018
@Laoujin
Copy link
Member Author

Laoujin commented Aug 16, 2018

JSON

JSON to/from JS Object

If array is small and of primitives, put on one line instead
Same with small objects
Check array with small/large objects
{ "name": "true", "yaye": [0, 1, 2, 3] }

@Laoujin
Copy link
Member Author

Laoujin commented Dec 28, 2018

Zip / Unblock
Select zip in window explorer
Unzip with file dialog
Unblock the files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant