Skip to content

Instantly share code, notes, and snippets.

View a2nt's full-sized avatar

Tony Air a2nt

View GitHub Profile
detectors:
armnn:
type: rknn
core_mask: 0b111 # 0b111 3 cores
model:
# name of yolov8 model or path to your own .rknn model file
# possible values are:
# - default-yolov8n
# - default-yolov8s
@a2nt
a2nt / gist:a818d45753d9dd466b378a5944b7a759
Created January 13, 2023 20:22
Linux Debian install Russian Trusted CA
#!/bin/sh
wget https://gu-st.ru/content/lending/russian_trusted_root_ca_pem.crt
wget https://gu-st.ru/content/lending/russian_trusted_sub_ca_pem.crt
mkdir /usr/local/share/ca-certificates/russian_trusted
cp russian_trusted_root_ca_pem.crt russian_trusted_sub_ca_pem.crt /usr/local/share/ca-certificates/russian_trusted
update-ca-certificates -v
@a2nt
a2nt / gist:a4878e5fa85859f80b0cd1dfb561cc75
Last active May 2, 2022 06:47
EASY Debian Linux UEFI setup
#!/bin/sh
############## EASY Debian Linux UEFI setup ##############
#
# Moves latest kernel dracut EFI to Linux.efi
# To ease BIOS setup
#
# NOTE: By default EFI partition is mounted at /boot/efi
#
### INSTALL
@a2nt
a2nt / import.sh
Last active April 15, 2022 18:00
BASH: Move github repositories to gitea
#!/bin/bash
GITHUB_USERNAME=''
GITHUB_TOKEN=''
GITHUB_ORGANISATION=''
GITEA_USERNAME=''
GITEA_TOKEN=''
GITEA_DOMAIN='domain.com'
GITEA_REPO_OWNER=''
0.0.0.0 api.surfeasy.com
0.0.0.0 opera-proxy.net
0.0.0.0 api.sec-tunnel.com
0.0.0.0 sitecheck2.opera.com
0.0.0.0 opera-mini.net
0.0.0.0 exchange.opera.com
0.0.0.0 features.opera-api.com
@a2nt
a2nt / gist:868dc1c455537e2db51865d95447ef2a
Created November 13, 2020 00:07
Sort uniq file and sync local music library with mobile phone using synching
#!/bin/sh
# Store duplicate file clean up script at /home/tony/bin/dff.py (ref: https://gist.github.com/a2nt/a47451bbe6814336003dcbeefccd5fe7)
# Setup synching to receive new files from mobile to /home/tony/Music/Receive at your local PC
# Setup synching at PC and Mobile to sync/receive files with /home/tony/Music/Synced
# Create folder /home/tony/Music/Synced/Latest to store and sync 30 latest files
# Store your music library at /home/tony/Music/Library
# Store your favorite Music at /home/tony/Music/Synced
# Add this script to crontab
@a2nt
a2nt / dff.py
Created November 13, 2020 00:02
Delete non-uniq files
#!/usr/bin/python3
import time
import stat
import os
import hashlib
import math
import argparse
import sys
version = "0.8.1"
@a2nt
a2nt / hosts
Last active January 18, 2021 16:29
RU Telemetry hosts block
127.0.0.1 watch.telemetry.mos.ru
127.0.0.1 telemetry.mos.ru
127.0.0.1 api.identix.one
127.0.0.1 identix.one
127.0.0.1 id.megafon.ru
127.0.0.1 welcome.megafonnw.ru
127.0.0.1 wap.megafon.ru
127.0.0.1 szfwp.megafon.ru
127.0.0.1 zg.megafon.ru
@a2nt
a2nt / gist:8cd3a02cb33cd9901e06aad3eba256ec
Last active November 15, 2022 13:52
Dell XPS 9360 Linux kernel 5.5.6 config and desktop optimization
##################### Optimized Linux Kernel 5.5. config + desktop patch Dell XPS 9360 #############
#
# Patch reference: https://gitlab.com/post-factum/pf-kernel/-/wikis/README
#
################## Instruction ######################################
#
#### Download kernel and desktop optimization patch ############################
#
# wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.5.6.tar.xz
# tar -xf ./linux-5.5.6.tar.xz
@a2nt
a2nt / gist:5b5a53d288dca5c055bab47061e24eaa
Created December 2, 2019 12:21
Integration of material colors into bootstrap 4
// Google material colors Ref: https://material.io/design/color/
// npm install material-design-color
@import "~material-design-color/material-color.scss";
// Bootstrap Color system adapter
$white: $clr-white !default;
$gray-100: map-get($clr-grey-list, "100") !default;
$gray-200: map-get($clr-grey-list, "200") !default;
$gray-300: map-get($clr-grey-list, "300") !default;