Skip to content

Instantly share code, notes, and snippets.

View neuralpain's full-sized avatar
💻
Solving problems.

neuralpain neuralpain

💻
Solving problems.
View GitHub Profile
@ThioJoe
ThioJoe / Appx-Uninstaller.ps1
Last active July 16, 2024 22:38
A basic script for uninstalling a list of app packages in Windows 10/11, including those pre-installed with Windows
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows
#
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
#
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ )
# .\WhateverScriptName.ps1
# -------------------------------------------------------------------------------------------
# Script by ThioJoe - https://github.com/ThioJoe
@neuralpain
neuralpain / PwshBatch.cmd
Last active February 7, 2024 02:01
Run a PowerShell code block once in a batch script at any given time and return to Batch when done.
<# :# PowerShell comment protecting the Batch section
@echo off
:# Disabling argument expansion avoids issues with ! in arguments.
setlocal EnableExtensions DisableDelayedExpansion
:# Prepare the batch arguments, so that PowerShell parses them correctly
set ARGS=%*
if defined ARGS set ARGS=%ARGS:"=\"%
if defined ARGS set ARGS=%ARGS:'=''%
@neuralpain
neuralpain / ghdt-crlf-fix.sh
Last active September 20, 2022 06:07
Bug fix for GitHub desktop changing line endings from LF to CRLF
# fix issue with GitHub desktop changing line endings from LF to CRLF
# go to Repository -> Open in {terminal}
# execute the code below in the exact order
git config core.eol lf
git config core.autocrlf input
foreach ($l in $lines) {
#Doing Actual Stuff
$cur = $($($lines.IndexOf($l) + 1) / $lines.Length)
$perc = $cur.tostring("P")
Write-Progress -Activity 'Updating' -Status "$perc Complete:" -PercentComplete $cur
}
@MooreDerek
MooreDerek / WSL-KALI-APT-UPDATE-ERROR.md
Last active October 21, 2023 18:22
Installing Kali on WSL getting apt update error

Installing Kali

wsl --install -d kali-linux

When terminal starts up try running

sudo apt upgrade and get the following error:

Get:1 http://wlglam.fsmg.org.nz/kali kali-rolling InRelease [30.6 kB]
Err:1 http://wlglam.fsmg.org.nz/kali kali-rolling InRelease
 The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository 
@jackdeadman
jackdeadman / emoji.csv
Created May 16, 2020 18:59
CSV file of Github emojies
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
name,url,codes,char,category,group,subgroup
"hundred points","https://github.githubassets.com/images/icons/emoji/unicode/1f4af.png?v8","1F4AF","💯","Smileys & Emotion (emotion)","Smileys & Emotion","emotion"
"input numbers","https://github.githubassets.com/images/icons/emoji/unicode/1f522.png?v8","1F522","🔢","Symbols (alphanum)","Symbols","alphanum"
"thumbs up","https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8","1F44D","👍","People & Body (hand-fingers-closed)","People & Body","hand-fingers-closed"
"thumbs down","https://github.githubassets.com/images/icons/emoji/unicode/1f44e.png?v8","1F44E","👎","People & Body (hand-fingers-closed)","People & Body","hand-fingers-closed"
"1st place medal","https://github.githubassets.com/images/icons/emoji/unicode/1f947.png?v8","1F947","🥇","Activities (award-medal)","Activities","award-medal"
"2nd place medal","https://github.githubassets.com/images/icons/emoji/unicode/1f948.png?v8","1F948","🥈","Activities (award-medal)","Activities","award-medal"
"3rd p
@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active July 16, 2024 16:33
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

The PATH is an important concept when working on the command line. It's a list of directories that tell your operating system where to look for programs, so that you can just write script instead of /home/me/bin/script or C:\Users\Me\bin\script. But different operating systems have different ways to add a new directory to it:

Windows

  1. The first step depends which version of Windows you're using:
  • If you're using Windows 8 or 10, press the Windows key, then search for and
@mklement0
mklement0 / wrapper.cmd
Last active December 6, 2022 01:35
wrapper.cmd - a wrapper batch-file template for executing embedded PowerShell and/or VBScript/JScript code
@echo off
setLocal enableDelayedExpansion
:: === ADAPTING THIS TEMPLATE (for help, see bottom or invoke with "help") ===
:: * Step 1 of 3: CLONE THIS BATCH FILE and give it a name of your choice.
:: * Step 2 of 3: Set the TARGET LANGUAGE on the next line.
:: One of: "ps1" "vbs" "js" (PowerShell, VBScript, JScript)
:: OR: "all" (runs ALL embedded snippets, in sequence)
:: NOTE: To add support for a new language, search for "NEW LANGUAGE"
:: below and follow the instructions there.
set "WRAPPER_LANG=ps1"
@Pulimet
Pulimet / AdbCommands
Last active July 16, 2024 18:28
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader