Skip to content

Instantly share code, notes, and snippets.

View aleksul's full-sized avatar
🕊️

Aleksandr Sulimov aleksul

🕊️
View GitHub Profile
@aleksul
aleksul / repid_logo.svg
Created August 31, 2022 19:58
Repid Logo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aleksul
aleksul / pre-commit.sh
Created July 1, 2022 08:12
Git pre-commit hook to verify your email in public/work repository
#!/bin/bash
# Place it in ~/.githooks/pre-commit & configure your emails and domains
# Then run:
# git config --global core.hooksPath ~/.githooks
public_email="your_personal_email@example.com"
public_domain="github.com"
work_email="your_work_email@example.com"
work_domain="your.work.domain"
@aleksul
aleksul / script.sh
Created December 13, 2021 13:48
Proxmox create Ubuntu 20.04 template
# download ubuntu-cloud image
# NOTE: ubuntu-server won't properly work with cloud-init for some reason
wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
# NOTE: no need for sudo because we already login as root
# install image customization tool
apt update -y && apt install libguestfs-tools -y
# install qemu-guest-agent inside of image
@aleksul
aleksul / Dockerfile
Last active October 29, 2021 14:01
Godot v3.3.4 Android export Dockerfile
FROM ubuntu:focal
ENV GODOT_VERSION "3.3.4"
ENV COMMANDLINETOOLS_VERSION "7583922_latest"
ENV ANDROID_API "29"
ENV BUILD_TOOLS "30.0.3"
ENV CMAKE_VERSION "3.10.2.4988404"
ENV NDK_VERSION "21.4.7075529"
ARG DEBIAN_FRONTEND=noninteractive
curl -X PUT http://127.0.0.1:4646/v1/system/gc
nomad system reconcile summaries
@aleksul
aleksul / proxy.py
Created July 19, 2021 16:57
Python ProxyGrabber using proxybroker v0.3.2
#!/usr/bin/python3.6
import asyncio
import aiohttp
from concurrent import futures
from time import perf_counter
from os import path, stat, remove
from proxybroker import Broker
import logging
@aleksul
aleksul / hello_wiegand.ino
Created July 17, 2021 12:14
Yet Another Wiegand Library minimum code
#include <Wiegand.h>
// NOT a standart wiegand library
// Yet another wiegand library v2.0.0 by Paulo Costa
// https://github.com/paulo-raca/YetAnotherArduinoWiegandLibrary
#define PIN_D0 2
#define PIN_D1 3
Wiegand wg;
bool card_read_flag = false;