Skip to content

Instantly share code, notes, and snippets.

## usage : ⬇️
# ((Invoke-WebRequest -Uri "https://gist.githubusercontent.com/assiless/c7c5848bb37bec85e9897240ccdf960e/raw/ps_prompt.ps1" -UseBasicParsing).Content -replace "(?<!`r)`n","`r`n") | Set-Content -encoding unicode "$HOME\ps_prompt.ps1"
# & "$HOME\ps_prompt.ps1"
# rm "$HOME\ps_prompt.ps1"
$CurrentScript = "$($MyInvocation.MyCommand.Definition)"
$Command ={ (get-content "$CurrentScript" -encoding utf8) | set-content -encoding Unicode "$CurrentScript"}
& $Command
Write-Host "$PSScriptRoot"
@assiless
assiless / Detect_Laptop.ps1
Last active November 28, 2023 18:46
PC Information
## usage : ⬇️
# (wget "https://gist.githubusercontent.com/assiless/8bcd985475aaecd2ccd98ed9d09f973e/raw/Detect_Laptop.ps1").Content | Set-Content -encoding unicode "Detect_Laptop.ps1"
# Detect_Laptop.ps1
# https://powershell.one/wmi/root/cimv2/win32_systemenclosure
# http://woshub.com/sccm-and-wmi-query-to-find-all-laptops-and-desktops/
###########################################################################################
##########################💡🤔💭TO GET "Win32_" IDEA 💭🤔💡###############################
### Get-WMIObject -List| Where{$_.name -match "^Win32_"} | Sort Name | Format-Table Name###
@REM [System.IO.File]::WriteAllLines("$HOME\cmd_prompt.cmd", ((Invoke-WebRequest -Uri "https://gist.githubusercontent.com/assiless/ce0a325a76a90d1167528d581e1e3cdf/raw/cmd_prompt.cmd" -UseBasicParsing).Content -replace "(?<!`r)`n","`r`n"), (New-Object System.Text.UTF8Encoding $False))
@REM REG ADD "HKLM\Software\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d "$HOME\cmd_prompt.cmd"
@echo off
chcp 65001 > nul
@REM https://github.com/hXR16F/hyperial/blob/master/install.bat
@REM set `r=&set `b=&set `u=&set `i=&set fg`black-=&set fg`red-=&set fg`green-=&set fg`yellow-=&set fg`blue-=&set fg`magenta-=&set fg`cyan-=&set fg`white-=&set fg`black=&set fg`red=&set fg`green=&set fg`yellow=&set fg`blue=&set fg`magenta=&set fg`cyan=&set fg`white=&set bg`black-=&set bg`red-=&set bg`green-=&set bg`yellow-=&set bg`blue-=&set bg`magenta-=&set bg`cyan-=&set bg`white-=&set bg`black=
@assiless
assiless / c_cpp_properties.json
Last active August 30, 2024 17:31
msys2 in vscode
{
"configurations": [
{
"name": "MSYS",
"includePath": [
"${workspaceFolder}/**",
"Generated Files/**",
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/include",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/cppwinrt",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/shared",
@assiless
assiless / [modded]mixer_paths.xml
Created December 4, 2021 12:44
reverse left-right channel on headphones android
<?xml version="1.0" encoding="ISO-8859-1"?>
<mixer>
<!-- These are the initial mixer settings -->
<ctl name="Voice Rx Device Mute" id="0" value="0" />
<ctl name="Voice Rx Device Mute" id="1" value="-1" />
<ctl name="Voice Rx Device Mute" id="2" value="20" />
<ctl name="Voice Tx Mute" id="0" value="0" />
<ctl name="Voice Tx Mute" id="1" value="-1" />
<ctl name="Voice Tx Mute" id="2" value="500" />
<ctl name="Voice Rx Gain" id="0" value="0" />
@assiless
assiless / readmeVSCode.md
Last active October 1, 2024 13:30
VSCode Extension

How to install:

        'code --install-extension <nameofextension>.vsix'
[theme]
sldobri.darcula-5-stars
rokoroku.vscode-theme-darcula
Anan.jetbrains-darcula-theme
Kleysley.intellij-theme-cpp
illixion.vscode-vibrancy-continued
@assiless
assiless / config_GUI_only.plist
Last active April 5, 2023 16:40
clover config.plist GUI only
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>GUI</key>
<dict>
<key>Scan</key>
<dict>
<key>Kernel</key><string>Newest</string>
</dict>
@assiless
assiless / MagiskSupport.md
Last active October 2, 2024 08:12
MagiskOnRedroid
setup variables for commands
echo -e "\n
export image=redroid/redroid:11.0.0-amd64
export image_tar=${HOME}/redroid:11.0.0-amd64" >> ${HOME}/.bashrc
source ${HOME}/.bashrc
@assiless
assiless / optimize_html.py
Last active November 21, 2022 23:06 — forked from slowkow/optimize_html.py
Optimize base64 encoded PNG images in an HTML file.
#!/usr/bin/env python
"""
################################
sudo apt-get install -y pngquant
################################
optimize_html.py
Kamil Slowikowski
November 14, 2016
@assiless
assiless / instagram_video_ctrls.js
Created January 1, 2023 23:45 — forked from jeansordes/instagram_video_ctrls.js
Userscript for adding video controls on Instagram in your browser
// ==UserScript==
// @name Instagram Video Controls
// @namespace https://jzs.fr/
// @version 1.0
// @description Adds video player controls to Instagram videos
// @author JZS
// @match https://www.instagram.com/
// @match https://www.instagram.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=instagram.com
// @grant none