Skip to content

Instantly share code, notes, and snippets.

@pcgeek86
pcgeek86 / cheatsheet.ps1
Last active April 30, 2025 17:25
PowerShell Cheat Sheet / Quick Reference
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item"
Get-Help # Get all help topics
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page)
Get-Help -Name Get-Command # Get help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command
@mcpower
mcpower / fix.ps1
Created October 2, 2016 09:42
Fixing broken Windows 10 apps
Add-AppxPackage -DisableDevelopmentMode "$env:windir\systemapps\ContactSupport_cw5n1h2txyewy\appxmanifest.xml" -Register
Add-AppxPackage -DisableDevelopmentMode "$env:windir\systemapps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\appxmanifest.xml" -Register
Add-AppxPackage -DisableDevelopmentMode "$env:windir\systemapps\Microsoft.AccountsControl_cw5n1h2txyewy\appxmanifest.xml" -Register
Add-AppxPackage -DisableDevelopmentMode "$env:windir\systemapps\Microsoft.BioEnrollment_cw5n1h2txyewy\appxmanifest.xml" -Register
Add-AppxPackage -DisableDevelopmentMode "$env:windir\systemapps\Microsoft.LockApp_cw5n1h2txyewy\appxmanifest.xml" -Register
Add-AppxPackage -DisableDevelopmentMode "$env:windir\systemapps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\appxmanifest.xml" -Register
Add-AppxPackage -DisableDevelopmentMode "$env:windir\systemapps\Microsoft.PPIProjection_cw5n1h2txyewy\appxmanifest.xml" -Register
Add-AppxPackage -DisableDevelopmentMode "$env:windir\systemapps\Microsoft.Windows.AppRep.ChxApp_cw5n1h2txyewy\appxmanifest.x
@acarril
acarril / bootable-win-on-mac.md
Created November 18, 2022 17:49
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.

@tschaub
tschaub / _.md
Last active April 30, 2025 17:23
TopoJSON Time Zones

TopoJSON Time Zones

The result is this 181 KB timezones.json (36 KB with gzip)

@kkapelon
kkapelon / TesterResources.md
Last active April 30, 2025 17:22 — forked from jclarkin/TesterResources.md
List of online resources for Software Testers

Associations & Online Communities

Canada

  • Calgary Software Quality Discussion Group, SQDG - www.sqdg.ca
  • Calgary Perspectives on Software Testing, POST - www.postworkshop.ca
  • Vancouver Software Quality Assurance User Group, VANQ - www.vanq.org
  • Toronto Association of Systems & Software Quality (TASSQ) - www.tassq.org
  • Kitchener Waterloo Software Quality Association (KWSQA) - www.kwsqa.org
@techniq
techniq / audit_mixin.py
Created March 16, 2013 01:05
Useful SQLAlchemy Mixins
from datetime import datetime
from sqlalchemy import Column, Integer, DateTime, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
from flask_security import current_user
class AuditMixin(object):
created_at = Column(DateTime, default=datetime.now)
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now)
@io-st
io-st / index.html
Last active April 30, 2025 17:17
plyr.io HLS/.m3u8 Stream with video qualities
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/plyr@3/dist/plyr.css">
<link rel="stylesheet" href="./style.ccs">
<script src="https://cdn.jsdelivr.net/npm/hls.js"></script>
<script src="https://unpkg.com/plyr@3"></script>
<script src="./plyr-hls.js"></script>
<div class="container">
<video controls crossorigin playsinline>
import SwiftUI
extension Binding {
/// Binding to an optional value by providing a defatult value.
///
/// example
///
/// struct Sample: View {
/// @Binding var name: String?
///
@toy-crane
toy-crane / toss-frontend-rules.mdc
Last active April 30, 2025 17:07
토스 프론트엔드 가이드라인 기반으로 만든 Cursor rule
# Frontend Design Guideline
This document summarizes key frontend design principles and rules, showcasing
recommended patterns. Follow these guidelines when writing frontend code.
# Readability
Improving the clarity and ease of understanding code.
@alexishida
alexishida / rtsp-intelbras-outros.txt
Last active April 30, 2025 17:03
RTSP dvr intelbras e outros para acesso direto home assistant
-------- DVR e Mibo Smart Intelbras -------------------------------------------------------
rtsp://usuário:senha@ip:porta/cam/realmonitor?channel=1&subtype=0
Ps minha mibo smart im4c só funcionou com esse link:
rtsp://admin:chave de acesso@ip:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
-------- Luxvision -------------------------------------------------------
rtsp://ip:porta/user=[usuário]&password=[senha]&channel=1&stream=0.sdp