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 | |
# SPDX-License-Identifier: MIT | |
# Copyright (C) 2024 Roman Bolshakov. | |
# All rights reserved. | |
# | |
# The script was tested on Samsung PM173x with FW EPK9CB5Q and EPK9GB5Q. | |
# | |
# It's recommended to use at least VQ=3 VI=3 with PM173x for decent | |
# single-threaded I/O performance. | |
# |
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
/* | |
* This shows somewhat special behaviour when getnameinfo on macOS converts | |
* an IPv6 to a kind of IPv4-translated address. | |
* | |
* It turns IPv6 address "::ffff" into "::0.0.255.255" | |
*/ | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <stdio.h> |
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 unittest | |
from multiprocessing import Process | |
import time | |
import os | |
import fcntl | |
def count_leaks(process_count): | |
def p_start(i): |
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
# vim: set fileencoding=utf-8 : | |
# related: https://bitbucket.org/hpk42/pytest/issue/453/assertion-rewriting-fails-with-object | |
#pip install beautifulsoup4 | |
from bs4 import BeautifulSoup | |
def test_unicode(): | |
soup = BeautifulSoup('<b class="boldest">Б - Бага</b>') | |
assert isinstance(soup.b, unicode) |
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
#initial permutation | |
set IP { | |
58 50 42 34 26 18 10 2 | |
60 52 44 36 28 20 12 4 | |
62 54 46 38 30 22 14 6 | |
64 56 48 40 32 24 16 8 | |
57 49 41 33 25 17 9 1 | |
59 51 43 35 27 19 11 3 | |
61 53 45 37 29 21 13 5 | |
63 55 47 39 31 23 15 7 |