Skip to content

Instantly share code, notes, and snippets.

View detain's full-sized avatar
💯
Da Vinci of Linux, Van Gogh of Code, [self proclaimed, but legit]

Joe Huss detain

💯
Da Vinci of Linux, Van Gogh of Code, [self proclaimed, but legit]
View GitHub Profile
@detain
detain / response1.md
Created May 12, 2023 16:14
adding keyboard movement to three.js

To add WASD keyboard movement support to the webgl_loader_fbx.html file from the Three.js GitHub repository, you can make the following changes:

  1. First, add a controls variable to the JavaScript code near the top of the file, to store the instance of the THREE.OrbitControls object:
var camera, controls;
  1. Next, locate the init() function and add the following code after the camera variable is defined, to instantiate the OrbitControls object and set some initial values:
@detain
detain / gauge1.md
Created April 4, 2023 21:51
ipmi gauge chatgpt outputs

1 / 1

generate appropriate gauges using gaugeJS and these sensor readings: ``` [ {"label": "CPU1 Temp", "scale": "degrees C", "status": "ok", "current": 37, "lower_critical": 0, "upper_critical": 90, "lower_non_critical": 0, "upper_non_critical": 85, "lower_non_recoverable": 0, "upper_non_recoverable": 90}, {"label": "FAN1", "scale": "RPM", "status": "ok", "current": 3900, "lower_critical": 500, "upper_critical": 25400, "lower_non_critical": 700, "upper_non_critical": 25300, "lower_non_recoverable": 300, "upper_non_recoverable": 25500}, {"label": "12V", "scale": "Volts", "status": "ok", "current": 12.189, "lower_critical": 10.299, "upper_critical": 13.26, "lower_non_critical": 10.74, "upper_non_critical": 12.945, "lower_non_recoverable": 10.173, "upper_non_recoverable": 13.386}, {"label": "Chassis Intru", "scale": "discrete", "status": "0x0000", "current": "0x0", "lower_critical": "na", "upper_critical": "na", "lower_non_critical": "na", "upper_non_critical": "na

@detain
detain / nahid-JsonQ-readme.md
Created March 18, 2023 01:23
PHP JSON Querying

JsonQ is a simple, elegant PHP package to Query over any type of JSON Data. It'll make your life easier by giving the flavour of an ORM-like query on your JSON.

Support For This Project

Hey due, please help me out for daily improve this project

Beerpay

@detain
detain / update_plex.sh
Created March 16, 2023 11:50
Download latest plex .deb
#!/bin/bash
d="https://plex.tv/downloads/latest/5?channel=16&build=linux-x86_64&distro=debian&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx"
n=$(basename $(curl -s -I "$d"|grep "^location"|sed s#"^location: \(.*\)\r"#"\1"#g))
echo "Latest is: $n"
if [ ! -e "$n" ]; then
echo "Downloading update"
wget -q -c "$d" -O "$n"
dpkg --install "$n"
else
echo "Up to date"
@detain
detain / README.md
Last active July 7, 2022 17:19
Reset Forgotten Password in Windows 10 / 11

How to reset forgotten password on Windows 10

To regain access to your account after forgetting your password, create a Windows 10 USB media, and then use these steps:

Important: Before proceeding to reset your password in Windows 10, note that this workaround only works with local accounts, not when using a Microsoft Account. If this is your case, you'll need to use the online Microsoft password recovery tool. On the page, you will be greeted with the "Why can't you sign in?" question, where you would choose the "I forgot my password" option. Then the online form will guide you through the different ways to verify that you are "you", by using a secondary email, sending an SMS text to your phone, and other methods to recover your password.

  1. Start computer with Windows 10 USB bootable media.

Quick note: To start your device with

@detain
detain / README.md
Last active March 18, 2025 08:19
How to create bootable USB flash drive to install Windows 10 / 11

How to create bootable USB flash drive to install Windows 10

Here are the steps to use the Media Creation Tool and Rufus to create a Windows 10 bootable media.

Windows 10 USB bootable media

You can create a Windows 10 USB installation media with multiple tools, and in this guide, we'll show you how. When a new version of Windows 10 becomes available, not everyone gets the latest release the same day. Instead, Microsoft upgrades computers gradually, and it takes some time until the new version reaches every device.

However, if you do not want to wait for the automatic upgrade, the company lets you download the Windows 10 installation files using the Media Creation Tool. The tool helps perform an in-place upgrade or create an installation media using a USB f

@detain
detain / README.md
Created June 29, 2022 13:44
Register editor:// URL handler to open your fav text editor

How to setup the editor:// URL Handler

  • copy the open-in-editor.js and register editor handler.cmd somewhere on your system. (They must be in the same directory)
  • edit the open-in-editor.js and uncomment the editor you use commenting the other out
  • change the mappings lines around to rewrite the remote filename paths into the path your editor will expect
  • run the register editor handler.cmd (You must reload any existing browser tabs before it will work in them)
@detain
detain / PS4 Installation Guide.md
Created May 28, 2022 01:10
PS4 Installation Guide

PS4 Installation Guide.md

Playstation

Full PS4 Jailbreak Tutorial (7.02)

  • New PS4 7.02 Jailbreak Discussion/Overview : Here
  • Testing 7.02 PS4 Jailbreak Stability (Should you update?) : Here
@detain
detain / utf_emoji.json
Last active September 15, 2020 16:38
UTF Emoji Characters Grouped by Category in TXT, JSON, and PHP Array
{
"Smileys & Emotion": [],
"face-smiling": [
{
"code": "U+1F600",
"char": "\ud83d\ude00",
"name": "grinning face"
},
{
"code": "U+1F603",