Skip to content

Instantly share code, notes, and snippets.

@shortjared
shortjared / list.txt
Last active March 29, 2024 14:06
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@traysr
traysr / l10n_IETF_Language_tags.md
Created March 8, 2012 14:58
Commonly used IETF language tags
@kmvan
kmvan / wine 配置
Last active March 29, 2024 14:03
wine
env WINEPREFIX="$HOME/.deepinwine/Spark-TIM" winecfg
env LANG=zh_CN.UTF8 wine ./san11pk.exe
@bcap
bcap / terminal-control.sh
Last active March 29, 2024 14:02
Useful terminal control characters
# Terminal output control (http://www.termsys.demon.co.uk/vtansi.htm)
TC='\e['
CLR_LINE_START="${TC}1K"
CLR_LINE_END="${TC}K"
CLR_LINE="${TC}2K"
# Hope no terminal is greater than 1k columns
RESET_LINE="${CLR_LINE}${TC}1000D"
@digitaljhelms
digitaljhelms / gist:4287848
Last active March 29, 2024 14:00
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@Gangus
Gangus / gist:fb2674973b5d8acf03e11977fe88358e
Created March 25, 2024 18:11
Bulk Sitecore Workflow update
##path you want the script to execute on, please note the script does not work on the parent item
$rootItem = Get-Item -Path master:"A Valid Sitecore Path"
##grab the guids of your workflow states and the workflow itself and make variables out of them
$desiredWorkflowStateDraft = "a workflow State"
$desiredWorkflowStateAwaitingApproval = "another workflow state"
$desiredWorkflowStateApproved = "another another workflow state"
$desiredWorkflow = "workflow guid"
$desiredDefaultWorkflow = "workflow guid"
@braindevices
braindevices / #btrfs benchmark for daily used desktop OS
Last active March 29, 2024 14:00
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
@frinkleko
frinkleko / SPE.py
Last active March 29, 2024 13:57
Toy implementation of SPE: https://openreview.net/pdf?id=xAqcJ9XoTf
import numpy as np
from scipy.linalg import eigh
def soft_partition(eigenvectors, eigenvalues, num_partitions):
# Apply a weighted sum of eigenvectors in an eigenvalue-dependent manner
partitions = np.linspace(np.min(eigenvalues), np.max(eigenvalues), num_partitions)
encodings = np.zeros_like(eigenvectors)
for i, val in enumerate(partitions[:-1]):
start, end = partitions[i], partitions[i+1]
mask = (eigenvalues >= start) & (eigenvalues < end)