Skip to content

Instantly share code, notes, and snippets.

View name's full-sized avatar

char name

View GitHub Profile
param(
[Parameter(Mandatory)] [string] $Domain, # accepted domain in EXO, e.g. 'example.com'
[Parameter(Mandatory)] [string] $From, # e.g. 'noreply@example.com'
[Parameter(Mandatory)] [string] $To, # test recipient (internal or external)
[string] $Subject = 'SMTP test via connector relay',
[string] $Body = 'SMTP test message sent via connector relay.',
[switch] $Detailed # emit extensive diagnostic output
)
function Write-Diag {
$Models = @"
Qualcomm®,Snapdragon™,Snapdragon 850[1]
Qualcomm®,Snapdragon™,Snapdragon 7c
Qualcomm®,Snapdragon™,Snapdragon 7c Gen 2
Qualcomm®,Snapdragon™,Snapdragon 7c+ Gen 3
Qualcomm®,Snapdragon™,Snapdragon 8c
Qualcomm®,Snapdragon™,Snapdragon 8cx
Qualcomm®,Snapdragon™,Snapdragon 8cx Gen 2
Qualcomm®,Snapdragon™,Snapdragon 8cx Gen 3
Qualcomm®,Qualcomm®,QCM6490
@name
name / publish.css
Last active May 4, 2025 14:34
Obsidian Publish Theme
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
body {
font-family: 'Newsreader', monospace;
--font-default: 'Newsreader', monospace;
--font-heading: 'Newsreader', serif;
/* Font sizes */
@name
name / pgp.asc
Created January 19, 2025 23:26
Personal PGP Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: User-ID: char <char@char.blog>
Comment: Valid until: 19/01/2030 12:00
Comment: Type: 4,096-bit RSA
Comment: Fingerprint: FD993AD5D13D36C8E861B7CEFA85B89FB7A50FAA
mQINBGeNibsBEADC7xBZBisWHtGlI5/U+PpTbheTE0vh89u+aR3H67WVKAgVLyws
eMvRBY7iKZpAHoyaY3IPU4CU8kVH5F+88VUJvHpcxtv6uT6tFmInkTF3+Xt5khl/
TkBq0aiqwZrO+cxmRPhcV89reA6Z/NidYIuPp5N6byQxT8+ps1GRlNimGWeR3z4V
name: zola push
on:
push:
branches:
- main
jobs:
build:
name: Publish site
@name
name / zeal_windows_terminal.json
Created August 26, 2024 12:29
Windows Terminal Theme
"schemes":
[
{
"background": "#000000",
"black": "#000000",
"blue": "#53BDFA",
"brightBlack": "#686868",
"brightBlue": "#59C2FF",
"brightCyan": "#95E6CB",
"brightGreen": "#C2D94C",

Keybase proof

I hereby claim:

  • I am name on github.
  • I am cunjur_ (https://keybase.io/cunjur_) on keybase.
  • I have a public key whose fingerprint is 0259 1A5A 7987 D5AC EC82 2341 FD48 38DE 059D 820C

To claim this, I am signing this object:

ssh-keygen -t ed25519 -a 100
@name
name / AntiTamper.cs
Created June 24, 2023 21:00
C# AntiTamper Class
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Threading;
using System.Windows.Forms;
function Get-FreeSpace {
$disk = ([wmi]"\\$env:computername\root\cimv2:Win32_logicalDisk.DeviceID='c:'")
"$env:computername C: has {0:#.0} GB free of {1:#.0} GB Total" -f ($disk.FreeSpace/1GB),($disk.Size/1GB) | write-output
}
function Remove-TempFiles {
$tmp_folders = @(
"C:\Windows\Temp\*",
"C:\Documents and Settings\*\Local Settings\temp\*",
"C:\Users\*\Appdata\Local\Temp\*",