Skip to content

Instantly share code, notes, and snippets.

View stares's full-sized avatar

stares

  • United Kingdom
View GitHub Profile
@stares
stares / calibre-reader.css
Created April 17, 2024 11:20 — forked from ncurrier/calibre-reader.css
Readability focused *forced* stylesheet for Calibre Reader.
/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
/* Base styles */
body {
font-family: 'Roboto Slab', 'Helvetica Neue', 'Segoe UI', 'Arial', sans-serif !important;
font-size: 1rem !important;
line-height: 1.6 !important;
color: #333333 !important;
@stares
stares / komorebic.ahk
Created November 10, 2023 13:45 — forked from crosstyan/komorebic.ahk
komorebic.ahk for AutoHotkey v2
#SingleInstance Force
WorkspaceNumber := 9
ArrayFromZero(Length){
temp := []
Loop Length {
temp.Push(A_Index-1)
}
return temp

Unicode cheat sheet

A curated list of unicode characters I want to have quick reference toward, including their literal presentation (where possible), description from the unicode table, various representations, and how to enter it as a Vim digraph*.

They are grouped by category, including a link to the relevant Unicode block. Also see the full list of Unicode blocks

@stares
stares / Start-ADAssessment.ps1
Created June 22, 2023 09:06 — forked from laymanstake/Start-ADAssessment.ps1
The script to perform AD assessment including ADFS, ADSync checks
#Requires -Version 3.0
#Requires -Modules ActiveDirectory, GroupPolicy, DnsServer
<#
Author : Nitish Kumar
Performs Active Directory Forest Assessment
version 1.0 | 06/06/2023 Initial version
version 1.1 | 15/06/2023 Covered most areas though error proofing and dependency over wsman still remains
version 1.2 | 16/06/2023 Number of small fixes included wrong calulations on empty groups
@stares
stares / AdvancedWindowSnap.ahk
Created June 13, 2023 16:15 — forked from AWMooreCO/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* Advanced Window Snap
* Snaps the Active Window to one of nine different window positions.
*
* @author Andrew Moore <[email protected]>
* @version 1.0
*/
/**
* SnapActiveWindow resizes and moves (snaps) the active window to a given position.
@stares
stares / AppVol.ahk
Created May 25, 2023 09:26 — forked from anonymous1184/AppVol.ahk
AppVol()

; Version: 2023.01.23.1
; https://gist.github.com/b251cd8407a379d4965791585887cfce
/* ;region Example
NumpadAdd::AppVol("Spotify.exe", +5)
NumpadSub::AppVol("Spotify.exe", -5)
*/ ;endregion
@stares
stares / Keys Discovery.ahk
Created August 31, 2022 09:50 — forked from anonymous1184/Keys Discovery.ahk
Virtual/Scan Codes & Key Names

; Version: 2022.07.01.1
; https://gist.github.com/da81e29517b0ba6dd552f7c6439be032
/* Virtual/Scan Codes & Key Names
Uses a keyboard hook to provide all information of a key pressed.
The idea of the Gui is from SKAN, however his script fails to detect some keys and other info
https://autohotkey.com/board/topic/21105-crazy-scripting-scriptlet-to-find-scancode-of-a-key/
@stares
stares / Spotify.ahk
Created January 21, 2022 14:06 — forked from anonymous1184/README.md
Spotify Keys (APP)

class Spotify extends Spotify.Controls
{
static _hWnd := -1
restore()
{
new this._win
WinShow
@stares
stares / VSCode.md
Created December 9, 2021 10:24 — forked from anonymous1184/VSCode.md
AHK Debugging with Visual Studio Code

AHK Debugging with Visual Studio Code

Guide created on 11/03/21 with VSCode version 1.53 (stable). Last tested with version 1.62.2.

I'm not a native English speaker, so please report inconsistencies to [/u/anonymous1184][00] (or send a .patch of the [source][01]).

Table of Contents

  1. TL;DR: 5min Cookbook Recipe
  2. Choosing a Version
@stares
stares / boxstarter.ps1
Last active March 14, 2020 14:37
My Boxstarter
# Description: Boxstarter Script
# Author: Stuart Tares
# Last Updated: 22020-03-13
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt: