Skip to content

Instantly share code, notes, and snippets.

View a2nt's full-sized avatar

Tony Air a2nt

View GitHub Profile
@a2nt
a2nt / block tracking
Last active April 14, 2018 04:43
My tracking block list
freegeoip.net^$important
intercom.io^$important
openstat.net/cnt.js^$important
yastatic.net/share2/share.js^$important
top-fwz1.mail.ru^$important
ad.mail.ru^$important
an.yandex.ru^$important
ads.adfox.ru^$important
||advarkads.com^$important
@a2nt
a2nt / gist:05ea7f77eeec51eff68ff61877b9c58b
Last active April 27, 2018 07:19
Route Russian websites without VPN
#!/bin/sh
#########################################################################################################
## WARNING: Script maybe outdated use following github repository:
## https://github.com/a2nt/russian-routing
#########################################################################################################
# Routes RU-servers traffic without VPN
# Must be launched as root after connecting to VPN
# sudo ./routing.sh
#
@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;
@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 / 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 / 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 / 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
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 / 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=''
@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