Skip to content

Instantly share code, notes, and snippets.

View gpchelkin's full-sized avatar
🐝
just a human beein'

George Pchelkin gpchelkin

🐝
just a human beein'
View GitHub Profile
@bkaradzic
bkaradzic / orthodoxc++.md
Last active October 19, 2025 16:39
Orthodox C++

Orthodox C++

This article has been updated and is available here.

@nyboer
nyboer / pulseaudio-bluetooth.conf
Last active August 8, 2018 10:24
This allows users to add bluetooth audio sinks to pulseaudio for CHIP computers without a desktop manager.
<!-- This configuration file specifies the required security policies
for PulseAudio Bluetooth integration. -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- ../system.conf have denied everything, so we just punch some holes -->
<policy user="pulse">
# Grant-ComputerJoinPermission.ps1
# Written by Bill Stewart ([email protected])
#
# Grants an AD identity the ability to join one or more computers to the
# domain.
#requires -version 2
<#
.SYNOPSIS
override def connect(url: String, info: Properties): Connection = {
val connectionProps = Krb5SqlServer.connectionProperties(url)
val keytabFile = connectionProps(Krb5SqlServer.keytabFile)
val principal = connectionProps(Krb5SqlServer.principalKey)
val config = new Configuration()
config.addResource(&quot;/etc/hadoop/conf/hdfs-site.xml&quot;)
config.addResource(&quot;/etc/hadoop/conf/core-site.xml&quot;)
config.addResource(&quot;/etc/hadoop/conf/mapred-site.xml&quot;)
@IgnoredAmbience
IgnoredAmbience / 99-noto-mono-color-emoji.conf
Last active October 25, 2024 06:01
Noto Emoji Color fontconfig for Konsole
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Noto Mono + Color Emoji Font Configuration.
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole.
Usage:
0. Ensure that the Noto fonts are installed on your machine.
1. Install this file to ~/.config/fontconfig/conf.d/99-noto-mono-color-emoji.conf
@nowrep
nowrep / qupzillaflatpak.sh
Created December 23, 2016 11:01
QupZilla Flatpak
# Install KDE runtime
wget http://distribute.kde.org/kdeflatpak.gpg
flatpak --user remote-add kde http://distribute.kde.org/flatpak-testing/ --gpg-import=kdeflatpak.gpg
flatpak --user install kde org.kde.Platform
# Install QupZilla
wget https://qupzilla.com/flatpak/qupzillaflatpak.asc
flatpak --user remote-add qupzilla https://qupzilla.com/flatpak/repo/ --gpg-import=qupzillaflatpak.asc
flatpak --user install qupzilla org.qupzilla.QupZilla
@gpchelkin
gpchelkin / termux-pinger.md
Last active September 18, 2024 13:46
Termux Bash script for checking internet connection by periodically pinging some host and showing notifications with LED and vibration when connection is lost or established

termux-pinger.sh

Termux Bash script for monitoring internet connection by periodically checking (pinging some host) and showing notifications with LED and vibration when connection is lost or established using termux-notification API

Requirements

  • Termux
  • Termux:API add-on
  • Execute the following commands to place script termux-pinger.sh into the home directory with the proper permissions (get the link to the raw termux-pinger.sh below):
curl -o ~/termux-pinger.sh https://gist.githubusercontent.com/gpchelkin/b18916c56ff7c759860725a28a747242/raw/b8aa96bb2c7e1dac84f854980eaeb6cd194dde4f/termux-pinger.sh
chmod +x ~/termux-pinger.sh
#!/usr/bin/env python3
import os
import sys
from string import Template
for in_line in sys.stdin.readlines():
out_line = Template(in_line).safe_substitute(os.environ)
sys.stdout.write(out_line)
@jamesmacwhite
jamesmacwhite / Netflix WPAD bypass rules.md
Last active August 9, 2023 13:24
Bypass rules for Netflix when using a WPAD based proxy deployment

Netflix and direct bypass rules using WPAD

If your like me you might already use a VPN to route your traffic through. The problem is some sites just don't like VPN services and will actively block you from using them without disabling or bypassing it.

Netflix is a prime example of a website that does not like VPN services, because they are seen as a way to circumvent the geo-restrictions imposed on the content library offered.

Below are WPAD rules I use to essentially send Netflix traffic directly and avoid any VPN errors/dreaded unknown error network messages. Error messages that Netflix throws back at you related to VPN usage when streaming might include:

  • "You seem to be using an unblocker or proxy"
  • VPN/proxy error M7111-1331-5059
@Te-k
Te-k / sslyze_cert_info.py
Created June 26, 2017 20:11
How to use sslyze as a library to get certificate information (python 3)
from sslyze.server_connectivity import ServerConnectivityInfo, ServerConnectivityError
from sslyze.ssl_settings import HttpConnectTunnelingSettings, TlsWrappedProtocolEnum
from sslyze.plugins.certificate_info_plugin import CertificateInfoScanCommand
from sslyze.synchronous_scanner import SynchronousScanner
from cryptography.hazmat.backends.openssl import x509
from cryptography.hazmat.primitives.serialization import Encoding
from cryptography.x509 import DNSName, ExtensionNotFound, ExtensionOID, NameOID
from enum import Enum
import os
import json