Skip to content

Instantly share code, notes, and snippets.

View ddan9's full-sized avatar
:octocat:
Nothing interesting. Maybe

Danil Rednine ddan9

:octocat:
Nothing interesting. Maybe
View GitHub Profile
@jahtzee
jahtzee / prompts.txt
Last active August 6, 2024 00:40
ChatGPT Jailbreaking prompts, exploits and other fun stuff
These are some exploits, jailbreaks, tricks, whatever you want to call them I've collected and discovered over time.
==== Games and fun stuff ====
== Set up a virtual machine inside GPTs imagination ==
"I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is pwd."
== Play a tabletop RPG with GPT as the dungeon master ==
"I want you to act as the dungeon master (DM) of a role playing game. Answer and act only in a way that a dungeon master would.
You are setting up a role playing game with only one other player. Everything you say as the dungeon master begins with (DM): followed by whatever you want to say. You will regularly ask me, the player, to
OK I found the solution ! The problem came from the host, in my case :
Ubuntu 18.04 + Integrated Intel Graphics i915 + NVidia GTX 1050 (it's a laptop)
Vulkan happens to run by default on the 1st GPU it lists. For me, it was the Intel graphics integrated GPU, which of course has no Vulkan support...
You can test Vulkan support on your system by using the executable "vkcube", installed with a package named "vulkan-tools". I used a well-known PPA to install the v460 nvidia proprietary drivers, from here : https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa . This utility simply displays a cube. If your system is not configured properly, the little window will be all black, with no cube.
To force Vulkan to run on the desired GPU, I used this command line for my NVidia card :

VMware VMX Notes, Performance Tweaks, Interactivity Improvements

experimented on VMware Workstation 15.5.2 build-15785246, other verisons may not work, no guaranteed.


global config for all VMs

C:\ProgramData\VMware\VMware Workstation\config.ini

@miliarch
miliarch / install-arch-in-virtual-machine.md
Last active September 23, 2024 23:38
Install Arch Linux in a Virtual Machine
@plembo
plembo / vmwp-no3d-avail.md
Last active September 23, 2024 22:12
VMware Player: No 3d support available from the host

VMware Player: "No 3d support is available from the host"

Facts: VMware Player on Ubuntu 18.04 LTS with the standard Gnome desktop running an AMD WX-2100 graphics card. Both glxinfo and glxgears show 3d acceleration is enabled and working on the host. In addition to VMware Player, the host is also running the qemu-kvm/libvirtd stack from Ubuntu's official repositories. My use case for 3d accelerated graphics in a Windows guest is to occasionally play a Windows-only game.

Issue: Player barks this warning during installation of... anything.

Solution: This askubuntu post, Powered by StackExchange[TM], provides the solution:

@androidneha
androidneha / adb_commands.MD
Last active November 7, 2024 12:58
Some adb commands to change setting for battery optimisation, start service, stop service, grant permission, revoke permission and etc.

To list-up installed app

pm list packages

Search for a particualr app with pacakagename

pm list pacakges | grep com.abc

Turn on Battery Optimization for a particular app

adb shell dumpsys deviceidle whitelist -<package_name>

Turn off Battery Optimization for a particular app

@extremecoders-re
extremecoders-re / vmware-no-vmem.md
Last active April 6, 2024 08:09
Boost VMWare Performance by disabling vmem files.

Prevent creation of vmmem files in VMware (Windows)

Issue

VMWare creates .vmem files to back the guest RAM. On the host this causes disk thrashing especially during powering on and off the guest.

Solution

Add the following lines to the .vmx file to prevent creation of .vmem files. This will reduce disk IO and VM performance will improve especially on non-SSD disks.

@Pulimet
Pulimet / AdbCommands
Last active November 18, 2024 14:20
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@peoplearmy
peoplearmy / gist:8292d2f1a23aa8e5c5bc98d66538bd02
Created March 6, 2017 21:23 — forked from bradwilson/gist:c0e4994f976e757bc7d5
Tweaks to make to VMware .vmx files
# Disables touchscreen emulation
touchscreen.vusb.present = "FALSE"
# Enables support for nested hypervisors
hypervisor.cpuid.v0 = "FALSE"
vhv.enable = "TRUE"
vpmc.enable = "TRUE"
mce.enable = "TRUE"
vhu.enable = "TRUE"

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?