Skip to content

Instantly share code, notes, and snippets.

View gema-arta's full-sized avatar
:octocat:
Octocating

gema-arta gema-arta

:octocat:
Octocating
View GitHub Profile

Гайд заполнения анкеты на загранпаспорт РФ 10 лет (биометрический) в Ереване/Гюмри в 2022 году

При помощи этих подсказок уже осуществлялись подачи на загранпаспорт в Гюмри и Ереване - все прошло успешно, работники консульства не задавали никаких вопросов.

Для подачи на загран алгоритм такой:

  • Ловим слот и записываемся в Ереван/Гюмри. Слоты появляются в начале каждого месяца (примерно 31-1ое число) для записи на следующий (в Гюмри более случайно, бывает и в середине месяца). Кроме того иногда люди отказываются от своих записей и они тоже становятся доступны.
  • За 2 рабочих дня звоним в консульство (после записи в слот придет письмо с телефоном) и подтверждаем визит.
@gema-arta
gema-arta / gist:3399c2028d9471582e23d2836597b482
Created June 12, 2023 10:40 — forked from robinsmidsrod/gist:d2bdb98110e56f1a0f55adcbd593c371
USB-over-IP for sharing webcam over local network
# server - make a device available remotely
apt install linux-tools-common linux-tools-generic hwdata
modprobe usbip-core
modprobe usbip-host
usbipd -D # (runs in background)
usbip list -l
usbip bind -b <busid>
# client - attach to remote device
apt install linux-tools-common linux-tools-generic-hwe-18.04 hwdata
@gema-arta
gema-arta / dhcpd.conf
Created June 12, 2023 10:24 — forked from robinsmidsrod/dhcpd.conf
Trying to chainload iPXE with full feature set from a lesser featured one, whilst still being able to boot non-supported cards with UNDI
ddns-update-style none;
deny bootp; #default
authoritative;
include "/etc/dhcp/ipxe-option-space.conf";
# GREEN (private network)
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.100 10.1.1.199;
option subnet-mask 255.255.255.0;
@gema-arta
gema-arta / qemu-networking.md
Created June 7, 2023 19:40 — forked from extremecoders-re/qemu-networking.md
Setting up Qemu with a tap interface

Setting up Qemu with a tap interface

There are two parts to networking within QEMU:

  • The virtual network device that is provided to the guest (e.g. a PCI network card).
  • The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).

Example: User mode network

@gema-arta
gema-arta / linux-vms-on-apple-m1-with-networking.md
Created June 7, 2023 19:12 — forked from max-i-mil/linux-vms-on-apple-m1-with-networking.md
Short summary to run Linux VMs on an Apple M1 host using QEMU, libvirt and HVF with a working network setup

Linux Virtual Machines with Private Network on an Apple M1 Device

Background

The aim was to be able to:

  1. Run multiple Linux VMs on an Apple M1/ARM device
  2. Use Apple's HVF for native performance speeds
  3. Configure VMs to allow network access to each other
  4. Configure VMs to allow access to the internet
  5. Not rely on custom modifications of software
@gema-arta
gema-arta / mk_ansible_distro.sh
Created May 31, 2023 17:43 — forked from alces/mk_ansible_distro.sh
Make portable Ansible distribution which can be installed on another host with the same Python version simply by un-tarring it in the same directory. Virtualenv is used during build stage, but isn't required on the target machine. Originally, written as Vagrant provision script but probably can be used outside Vagrant.
#!/bin/bash
ANSIBLE_ROOT=${ANSIBLE_ROOT:-/opt/ansible}
DISTR_ROOT=${DISTR_ROOT:-/vagrant}
yum install -y python-setuptools python-devel libffi-devel openssl-devel
easy_install virtualenv
virtualenv "$ANSIBLE_ROOT"
. "$ANSIBLE_ROOT/bin/activate"
# PY_LIBS can contain a space-separated list of Python libraries your playbooks require to run (e.g., "dnspython shade")
@gema-arta
gema-arta / getaddrinfo.c
Created May 26, 2023 19:04
func test tool
/*
* Replacement for a missing getaddrinfo.
* 🦎
* # musl-clang -march=native -Os -o gaif.os getaddrinfo.c -static -v
* # gcc -o gcdgaif getaddrinfo.c -v
*/
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
@gema-arta
gema-arta / .bashrc
Created January 27, 2023 13:40 — forked from lurepheonix/.bashrc
Debian server sample configuration
# add to end of file
export PATH=/usr/lib/cargo/bin:$PATH
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
alias cat='batcat --style=plain'
alias l='exa'
alias la='exa -a'
@gema-arta
gema-arta / mikrotik-pxe.md
Created January 26, 2023 15:20 — forked from PatrickLang/mikrotik-pxe.md
Boot from Mikrotik router and install Windows

Using a Mikrotik router to boot and install Windows

Lately I've been using Mikrotik routers because they're cheap, powerful, and fast. Most of them have either a USB or MicroSD slot, so you can add enough space to store network boot images right on the router.

I got most of the tips needed from these two articles, and combined them into this step by step guide: