Skip to content

Instantly share code, notes, and snippets.

@throwaway96
throwaway96 / crashd.md
Last active July 21, 2024 15:58
crashd instructions

News

EOL (2024-07-21)

I'm not going to be maintaining this document anymore. I'm leaving it as-is since much of the FAQ section is still accurate and has yet to be incorporated into other resources.

Use CanI.RootMy.TV to find an exploit for your TV.

New exploit for webOS 3.5+: DejaVuln (2024-04-21)

@akunzai
akunzai / web.config
Last active January 5, 2023 22:05
ASP.NET Web application security configurations
<!-- The following configuration should also work with Azure App Service -->
<configuration>
<system.web>
<!-- Disable X-AspNet-Version Header -->
<httpRuntime enableVersionHeader="false" />
<!-- File upload size limit (KB), avoid DoS attack -->
<httpRuntime maxRequestLength="4096" />
<!-- Disable debug & trace in Production -->
<compilation debug="false" />
<trace enabled="false" />
@Braytiner
Braytiner / Windows Defender Exclusions VS 2022.ps1
Last active June 21, 2024 13:29
Adds Windows Defender exclusions for Visual Studio 2022
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\Downloads\HeidiSQL_11.3_64_Portable') > $null
$pathExclusions.Add($userPath + '\.dotnet') > $null
@ZacharyPatten
ZacharyPatten / readme.md
Last active February 3, 2023 15:58
GitHub Repository Checklist (C#)

GitHub Repository Checklist (C#)

Have a repository on GitHub? Planning on making a repository on GitHub? This checklist is intended to introduce you to various features that may help you make the most of your GitHub repository with specific recommendations for C# repositories.

Checklist

These are only suggestions.
They may not be appropriate for all repositories.
They are in no particular order.
Click each item to expand for more information.

@akunzai
akunzai / Optimize-AssemblyBinding.ps1
Last active October 29, 2022 02:34
Optimize assembly binding redirection in web.config or app.config
# https://learn.microsoft.com/zh-tw/dotnet/framework/configure-apps/redirect-assembly-versions
<#
.Synopsis
Optimize assembly binding redirection in web.config or app.config
.EXAMPLE
. .\Optimize-AssemblyBinding.ps1; sort-binding -path .\web.config
. .\Optimize-AssemblyBinding.ps1; sort-binding -path .\web.config -whatIf
#>
function Optimize-AssemblyBinding(){
Param (
@Braytiner
Braytiner / Windows Defender Exclusions VS 2019.ps1
Last active November 16, 2023 18:50 — forked from dknoodle/Windows Defender Exclusions VS 2017.ps1
Adds Windows Defender exclusions for Visual Studio 2019
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\source\repos') > $null
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio Services') > $null
$pathExclusions.Add($userPath + '\AppData\Local\GitCredentialManager') > $null
@akunzai
akunzai / Microsoft.PowerShell_profile.ps1
Last active July 13, 2024 06:54
My PowerShell profile
# https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_profiles
# PowerShell < 6 on Windows: $Home\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
# PowerShell >= 6 on Windows: $Home\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
# PowerShell on Linux/macOS: ~/.config/powershell/Microsoft.PowerShell_profile.ps1
# https://learn.microsoft.com/dotnet/core/tools/dotnet-environment-variables#dotnet_cli_ui_language
$env:DOTNET_CLI_UI_LANGUAGE = 'en-us'
# https://github.com/PowerShell/PSReadLine
if (Get-Command 'Set-PSReadlineKeyHandler' -ErrorAction SilentlyContinue) {
@akunzai
akunzai / .editorconfig
Last active July 7, 2023 15:02
My Editor Config
# http://EditorConfig.org
# top-most EditorConfig file
root = true
# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
[*]
charset = utf-8
@akunzai
akunzai / LargeFormUrlEncodedContent.cs
Last active December 29, 2017 07:49
alternative FormUrlEncodedContent that support large context
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Text;
namespace System.Net.Http
{
/// <summary>
/// alternative <see cref="FormUrlEncodedContent"/> implementation that support large context
/// to prevent <see cref="UriFormatException"/> Invalid URI: The Uri string is too long. error
/// </summary>
@gdurastanti
gdurastanti / parallels-reset.sh
Created August 9, 2017 14:00
Reset Parallels' trial
#!/bin/sh
# Reset Parallels Desktop's trial and generate a casual email address to register a new user
rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml
jot -w pdu%d@gmail.com -r 1