View translit.js
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
function toSeoUrl(string, lang = 'en') { | |
var delimiter = '-', | |
keyword = '', | |
abc = { | |
'ß': 'ss', | |
'à': 'a', | |
'á': 'a', | |
'â': 'a', | |
'ã': 'a', | |
'ä': 'a', |
View ecdsa-gen.sh
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
#!/bin/bash | |
# sha256ECDSA + HTTP/2 supported Windows Server 2012+ | |
# see https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.1#http2-support | |
echo Generate CA key: | |
openssl ecparam -name prime256v1 -genkey -out ca.key | |
echo Generate CA certificate: | |
openssl req -new -x509 -days 365 -key ca.key -out ca.crt -subj "/C=US/ST=CA/L=Cupertino/O=YourCompany/OU=YourApp/CN=MyRootCA" |
View HttpClientHelper.cs
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
using System; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Net.Http; | |
using System.Text; | |
namespace MyXamarinNativeApp.Shared.Helpers | |
{ | |
public class HttpClientHelper | |
{ |
View fasm64SimpleWindow.asm
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
format PE64 GUI 5.0 | |
entry WinMain | |
include 'includes\win64a.inc' | |
section '.text' code readable writeable executable | |
_title TCHAR 'Iczelion Tutorial #3:The Simplest Window in FASM',0 ;name of our window | |
wc WNDCLASSEX sizeof.WNDCLASSEX,0,WindowProc,0,0,400000h,0,10003h,COLOR_WINDOW,NULL,_title,NULL | |
proc WinMain | |
local msg:MSG |
View masm64SimpleWindow.asm
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
include includes\win64a.inc | |
.code | |
WinMain proc | |
local msg:MSG | |
xor ebx,ebx ;rbx = 0 | |
mov esi,IMAGE_BASE ; дескриптор нашей программы | |
mov eax,10027h ; дескриптор иконки | |
mov edi,offset ClassName; Имя нашего класса окна | |
; заполнение структуры wc и регистрация класса | |
push rax ;hIconSm дескриптор малой иконки |