Skip to content

Instantly share code, notes, and snippets.

View h8nor's full-sized avatar

h8nor

  • GPG: 0xB5DE5869
View GitHub Profile
@h8nor
h8nor / OutlookAutostartAndMinimise.ps1
Created November 18, 2025 17:54 — forked from NotoriousPyro/OutlookAutostartAndMinimise.ps1
Automatically finds, runs and places Outlook into the system tray.
<#
.SYNOPSIS
Automatically finds, runs and places Outlook into the system tray.
.DESCRIPTION
Automatically finds, runs and places Outlook into the system tray.
By default, Outlook will start full-screen even when you have the option to minimize tray enabled and start the app as minimized.
This requires that the OUTLOOK.EXE tray icon is enabled and that the minimize to tray option is on.
Author: NotoriousPyro (Craig Crawford)
/*
This is an example Overpass query.
You can find more examples on link
https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL
*/
[bbox:{{bbox}}][out:json][timeout:25];
(
rel[route=subway];
(._;>;);
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/x-ms-odc; charset=utf-8">
<meta name=ProgId content=ODC.Database>
<meta name=SourceType content=OLEDB>
<title>https://www.planetaexcel.ru/techniques/13/16185/</title>
<xml id=docprops><o:DocumentProperties
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns="http://www.w3.org/TR/REC-html40">
<o:Description>Соединение с запросом &quot;product&quot; в книге.</o:Description>
// Открытие сайдбара
function showSidebar() {
// Подключаем Bootstrap
let sidebarHTML = '<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">';
// Создаём форму - без jquery
sidebarHTML += '<form style="padding: 20px;text-align:center;">\
<div class="form-group">\
<label for="name">Имя</label>\
<input type="text" class="form-control" id="name" name="name" value="">\
@h8nor
h8nor / gpg-signing.md
Last active June 25, 2021 20:44 — forked from xavierfoucrier/gpg-signing.md
GPG signing with Git and Github Desktop

Hi Github users,

You can now signed your commits on Github using at least Git 2.18.0 and Github Desktop 1.6.1.

You can find out a GPG key gpg --list-secret-keys --keyid-format LONG and export it to a file gpg --armor --export-secret-key -a YOUR_GITHUB_LOGIN by skipping the first point.

  1. Generate a GPG key and add it to Github: https://help.github.com/articles/generating-a-new-gpg-key (if you don't want to type a passphrase on every commit, you need to press "Enter" when the console will prompt you to type a passphrase)
@h8nor
h8nor / settlements.csv
Last active October 13, 2019 14:59
Check locations for OSM
Геопоиск Область Район Метка района OSM Поселение Название старое Метка имени OSM Имя справочно Тип справочно
+ Республика Башкортостан Аскинский район + Аскинский сельсовет с Аскино + Аскино с
+ Республика Башкортостан Белокатайский район - Утяшевский сельсовет д Нижнеутяшево + Нижнеутяшево д
+ Республика Башкортостан Дуванский район + Вознесенский сельсовет с Тастуба + Тастуба с
+ Республика Башкортостан Зианчуринский район + Исянгуловский сельсовет с Исянгулово + Исянгулово с
+ Республика Башкортостан Зианчуринский район - Суренский сельсовет с Кугарчи + Кугарчи с
+ Республика Башкортостан Зианчуринский район + Тазларовский сельсовет с Тазларово + Тазларово с
+ Республика Башкортостан Зилаирский район - Бердяшский сельсовет с Бердяш + Бердяш с
+ Республика Башкортостан Караидельский район + Караидельский сельсовет с Караидель + Караидель с
@h8nor
h8nor / pre-commit.sh
Last active September 13, 2019 12:14 — forked from rlee287/pre-commit.sh
Short git pre-commit hook to remove BOM headers desktop/desktop#3768
#!/bin/sh
#
# A hook script to remove BOM headers in Windows
echo "Running pre-commit BOM removal"
trap ctrl_c INT
ctrl_c ()
{
@h8nor
h8nor / brevis_en.csv
Last active October 2, 2023 14:04
List of 🆎 abbreviations, 🅰️ acronyms, 🅱️ backronyms
Type Abbr Meaning
🆎 ill AIDS acquired immune deficiency syndrome
🆎 abb dct document
🆎 dep FBI Federal Bureau of Investigation
🆎 tec GPS Global Positioning System
🅰️ tec internet interconnected networks
🅰️ dct ISO International Organization for Standardization
🅰️ tec laser light amplification by stimulated emission of radiation
🆎 vag LGBT lesbian, gay, bisexual, and transgender
🆎 vag MGTOW Men Going Their Own Way
@h8nor
h8nor / TrialFactorisation.rb
Last active August 28, 2018 14:45
Revision 3 calcs to n = 2**18 - 1
#require 'prime'
include Math
print "\uFEFF[#{RUBY_VERSION}]\n"
# Fixnum < 2**30 <= Bignum
n = rand(9999..375999) # 25326001 ## Memory limit exceeded
m = 2**n - 1 #! n != Bignum
def prime? num
# For larger values method performs significantly slower
' Special matrix R(i, j) (https://habrahabr.ru/post/336684/)
Option Explicit
Option Base 1
'12345678901234567890123456789012345bopoh13@ya67890123456789012345678901234567890
Function getR(p() As Double, q() As Double) As Double
Dim i As Integer, j As Integer
Dim Rx As Double, Ry As Double, Rz As Double
Dim R(5000, 5000) As Double, begin As Double