This file contains hidden or 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
[Interface] | |
PrivateKey = ... | |
Address = ... | |
DNS = ... | |
FwMark = 2901 | |
Table = 2901 | |
PostUp = ip -4 rule add pri 2999 lookup default || true | |
PostUp = ip -4 rule add pri 2010 to 10.0.0.0/8 goto 2999 || true | |
PostUp = ip -4 rule add pri 2010 to 172.16.0.0/12 goto 2999 || true |
This file contains hidden or 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 | |
set -e | |
boot_vmlinuz_path='/boot/vmlinuz-linux' | |
boot_initramfs_path='/boot/initramfs-linux.img' | |
new_boot_vmlinuz_path="$boot_vmlinuz_path.new" | |
new_boot_initramfs_path="$boot_initramfs_path.new" | |
bak_boot_vmlinuz_path="$boot_vmlinuz_path.bak" | |
bak_boot_initramfs_path="$boot_initramfs_path.bak" |
This file contains hidden or 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
[Unit] | |
Description=br-lan init script | |
After=network.target | |
Before=network-online.target | |
[Service] | |
Type=oneshot | |
ExecStart=/etc/br-lan-init.sh start | |
ExecStop=/etc/br-lan-init.sh stop | |
RemainAfterExit=yes |
This file contains hidden or 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
#!/usr/bin/bash | |
kernel_flash_name='plm-notebook' | |
boot_path='/boot' | |
kernel_vmlinuz_file='vmlinuz-linux' | |
kernel_img_files=('intel-ucode.img' 'amd-ucode.img' 'initramfs-linux.img') | |
kernel_cmdline="\\kernels\\$kernel_flash_name\\$kernel_vmlinuz_file.efi initrd=\\kernels\\$kernel_flash_name\\intel-ucode.img initrd=\\kernels\\$kernel_flash_name\\amd-ucode.img initrd=\\kernels\\$kernel_flash_name\\initramfs-linux.img root=UUID=6581314d-6709-416e-9c61-166211b7163e rw rootflags=subvol=arch1-root rd.luks.name=e85a4aea-f191-431c-b6f8-93ba70d95d73=root loglevel=3 quiet" | |
flash_path='/dev/disk/by-id/usb-SanDisk__Cruzer_Fit_4C530000240815113164-0:0' | |
flash_part_path="$flash_path-part1" | |
run_path="/run/$kernel_flash_name.kernel-flash" |
This file contains hidden or 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
// gcc -Wall -Wextra -o hrenov-kompilator hrenov-kompilator.c | |
// or: gcc -Wall -Wextra -O3 -o hrenov-kompilator hrenov-kompilator.c | |
// or: clang -Wall -Wextra -o hrenov-kompilator hrenov-kompilator.c | |
// or: clang -Wall -Wextra -O3 -o hrenov-kompilator hrenov-kompilator.c | |
#include <stdlib.h> | |
#include <stdio.h> | |
int | |
main (int argc __attribute__ ((unused)), |
This file contains hidden or 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
// to compile: | |
// gcc -Wall -Wextra -O3 -funsafe-math-optimizations -o bubble-lab bubble-lab.c | |
// or | |
// gcc -Wall -Wextra -O3 -funsafe-math-optimizations -DCANNOT_RANDOM -o bubble-lab bubble-lab.c | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#ifndef CANNOT_RANDOM |
This file contains hidden or 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
#!/usr/bin/python | |
# -*- mode: python; coding: utf-8 -*- | |
import sys | |
import os, os.path | |
import json | |
def main(): | |
# the path to cloned directory https://github.com/hyperboria/peers | |
peer_dir_path = sys.argv[1] |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- mode: python; coding: utf-8 -*- | |
assert str is not bytes | |
import sys | |
import os, os.path | |
import csv | |
import itertools | |
import random |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- mode: python; coding: utf-8 -*- | |
assert str is not bytes | |
import my_example_1_wsgi as _my_example_1_wsgi | |
import my_example_2_wsgi as _my_example_2_wsgi | |
import my_example_3_wsgi as _my_example_3_wsgi | |
_application_by_host_dict = { |
This file contains hidden or 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
#!/usr/bin/bash | |
# | |
# it is file -- /etc/ppp/ipv6-down.d/99-custom-internet.sh | |
# | |
if [ -z "$IFNAME" ] || [ "$LINKNAME" != "domru" ] | |
then | |
true | |
exit |
NewerOlder