Skip to content

Instantly share code, notes, and snippets.

View Frischifrisch's full-sized avatar

Christian Frischifrisch

View GitHub Profile
@Frischifrisch
Frischifrisch / PSReadLine_config.ps1
Created December 10, 2023 03:03 — forked from rkeithhill/PSReadLine_config.ps1
Config file for PSReadLine
# Other hosts (ISE, ConEmu) don't always work as well with PSReadLine.
# Also, if PS is run with -Command, PSRL loading is suppressed.
$psrlMod = Get-Module PSReadLine
if (($null -eq $psrlMod) -or ($host.Name -eq 'Windows PowerShell ISE Host')) {
return
}
elseif ($psrlMod.Version.Major -lt 2) {
throw "PSReadLine 1.x installed or not imported, import PSRL or ugprade to at least 2.x."
}
import openai
openai.api_key = "YOUR API KEY HERE"
model_engine = "text-davinci-003"
chatbot_prompt = """
As an advanced chatbot, your primary goal is to assist users to the best of your ability. This may involve answering questions, providing helpful information, or completing tasks based on user input. In order to effectively assist users, it is important to be detailed and thorough in your responses. Use examples and evidence to support your points and justify your recommendations or solutions.
<conversation_history>
User: <user input>
@Frischifrisch
Frischifrisch / AdbCommands
Created May 13, 2022 21:10 — forked from Pulimet/AdbCommands
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

Dark Souls II and Scholar of the First Sin Cheat Engine Guide

Updates

04/05/2020

  • Added HP Min Offset
  • Added “Replenishment [Phantom Color]” from previous tables versions (not made by me)
  • Mapped some offsets for easier reading
  • Added offset +74 (Parry Multiplier) under [Equipped Weapon]
  • Added WeaponTypeParam Helper
@Frischifrisch
Frischifrisch / .. MediaCreationTool.bat ..md
Created October 6, 2021 21:33 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 21H1 with business (Enterprise) edition support

Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
Preview
A powerful yet simple windows 10 / 11 deployment automation tool as well!

configure via set vars, commandline parameters or rename script like iso 21H2 Pro MediaCreationTool.bat
recommended windows setup options with the least amount of issues on upgrades already set
awesome keyboard focus dialogs to pick windows version and enhanced preset action

Auto Setup for upgrading directly with the auto-detected Edition, Language, Architecture *
- can troubleshoot auto setup failing by adding no_update to script name

@Frischifrisch
Frischifrisch / firewall_block.reg
Created June 20, 2021 22:35 — forked from jnaskali/firewall_block.reg
Block/Unblock exe in Windows Firewall using right-click menu (updated thanks to ghjbnm's comment below)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\exefile\shell\WindowsFirewall]
@=""
"MUIVerb"="Windows Firewall"
"icon"="%SystemRoot%\\system32\\FirewallControlPanel.dll,0"
"subcommands"=""
[HKEY_CLASSES_ROOT\exefile\shell\WindowsFirewall\Shell]
@=""
@Frischifrisch
Frischifrisch / NewAutoClicker.ahk
Created October 26, 2020 20:10 — forked from hoppfrosch/NewAutoClicker.ahk
Auto Clicker - auto-clicks when the left mouse button is held down. . #ahk #script #snippet
# Source http://slanter-ahk.blogspot.de/2009/02/ahk-new-auto-clicker.html
# This is a new 5-line autoclicker made possible with the release of AHK 1.0.48. Use Insert to toggle it on and off.
LButton::
While GetKeyState("LButton","P")
Send {LButton}
Return
Insert::Hotkey, LButton, Toggle