Skip to content

Instantly share code, notes, and snippets.

View ser0ja's full-sized avatar

Sergei K ser0ja

View GitHub Profile
@ser0ja
ser0ja / ANSI.md
Created May 25, 2022 15:08 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@ser0ja
ser0ja / EcmaStandart Перевод 11.9.3.txt
Created February 4, 2020 10:38 — forked from egrashinagi/EcmaStandart Перевод 11.9.3.txt
EcmaStandart Перевод 11.9.3 The Abstract Equality Comparison Algorithm
Алгоритм сравнения
Сравнение x==y , где x и y значения представляют true or false. Эти значения выполнены следующим образом:
1. Если Тип X такой же как тип Y, тогда:
a. Если Тип X undefined возвращает true.
b. Если Тип X Null возвращает true.
c. Если Тип X number тогда
i. если X NaN возвращает false.
ii. если Y NaN возвращает false.
iii.Если X такой же как Number и значение Y возвращает true.
iv. Если X +0 и Y -0 возвращает true.
@ser0ja
ser0ja / install-arch-linux-rpi-zero-w.sh
Created January 25, 2020 11:14 — forked from larsch/install-arch-linux-rpi-zero-w.sh
Install Arch Linux ARM for Raspberry Pi Zero W on SD Card (with commands to configure WiFi before first boot).
#!/bin/sh -exu
dev=$1
cd $(mktemp -d)
function umountboot {
umount boot || true
umount root || true
}
# RPi1/Zero (armv6h):
1. Make Home Directory for SShH keys.
c://users/UserName/.SSH (for Windows 7)
2. Generate SSH key by command:
ssh-keygen -t rsa -C "user@mail.ru"
# Creates a new ssh key, using the provided email as a label
Generating public/private rsa key pair.
It's created a pair of keys - private and public in home dir .SSH
C:\Users\SuvorovAG\.ssh\id_rsa
@ser0ja
ser0ja / srp6a.php
Created February 18, 2018 17:24 — forked from paresy/srp6a.php
SRP6a PHP
<?php
//Docs: http://srp.stanford.edu/design.html
//Test Vector: https://github.com/wolfSSL/wolfssl/issues/18#issuecomment-83941582
//Copyright: Michael Maroszek
//Hint: The old version used BCMath with was 100 times slower!
//Modulus
$N = "FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 29024E08 8A67CC74
@ser0ja
ser0ja / .htaccess
Created June 22, 2017 10:19 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
require('GlobalStrings')
-- generated from s_bonusStatStringTags
local bonusStats = {
[0] = "ITEM_MOD_MANA_SHORT",
[1] = "ITEM_MOD_HEALTH_SHORT",
[3] = "ITEM_MOD_AGILITY_SHORT",
[4] = "ITEM_MOD_STRENGTH_SHORT",
[5] = "ITEM_MOD_INTELLECT_SHORT",
[6] = "ITEM_MOD_SPIRIT_SHORT",