Skip to content

Instantly share code, notes, and snippets.

View ibakirov's full-sized avatar
:atom:
@_@

Ilyas Bakirov (aka eRIC) ibakirov

:atom:
@_@
  • IBX
  • Kazakhstan
View GitHub Profile
server {
listen 127.0.0.1:80;
ssi on;
gzip on;
gzip_comp_level 7;
gzip_types application/x-javascript application/javascript text/css;
server_name test.ru www.test.ru;
charset off;
#disable_symlinks if_not_owner from=$root_path;
@ibakirov
ibakirov / 10.2 Code Repo Bug Report
Last active November 22, 2021 04:20
SoloLearn: Coding for Marketers
# 10.2 Code Repo Bug Report
Example code should be fixed as:
<img src="https://sololearnassets.azureedge.net/home-why-code-1.svg"><br>
@ibakirov
ibakirov / signing-gpg-keys.md
Created July 24, 2021 17:24 — forked from F21/signing-gpg-keys.md
Signing someone's GPG key

This is a quick guide of the commands we use to sign someone's GPG key in a virtual key signing party.

Note: The steps cover only the technical aspects of signing someone's key. Before signing someone's key, you must verify their identity. This is usually done by showing government-issued ID and confirming the key's fingerprint

The commands will work for both GPG and GPG2.

I use Julian's key for the examples. His key id is 2AD3FAE3. You should substitute with the appropriate key id when running the commands.

Signing the key

  1. List the keys currently in your keyring: gpg --list-keys.
@ibakirov
ibakirov / useHexo.md
Created October 17, 2020 15:49 — forked from btfak/useHexo.md
How to use Hexo and deploy to GitHub Pages
@ibakirov
ibakirov / Makefile
Created April 8, 2019 15:05 — forked from llj098/Makefile
a sample tcp server runs in kernel
obj-m += tcp_svr_sample.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea
@ibakirov
ibakirov / generate_html_directory_index.py
Created February 11, 2019 10:05
Generate HTML directory index
#!/usr/bin/env python
import argparse
import fnmatch
import os
import sys
# Recursively generate index.html files for
# all subdirectories in a directory tree
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/splash boolean false
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i console-setup/variantcode string
# network
d-i netcfg/get_nameservers string
d-i netcfg/get_ipaddress string
d-i netcfg/get_netmask string 255.255.255.0