Skip to content

Instantly share code, notes, and snippets.

View brokeDude2901's full-sized avatar
πŸͺ
Oh, what a day... what a lovely day!

α—α’αŽΆα‹αα–α¬αŽ· αŽ·α‹α–α—αααŽ₯ፈᏬᎷ brokeDude2901

πŸͺ
Oh, what a day... what a lovely day!
View GitHub Profile
@muzizongheng
muzizongheng / AccessCSDN.py
Last active November 8, 2024 17:13
login CSDN by using urllib
#Use this utility to access CSDN blog.
#Author: jiangong li
#Email: [email protected]
import base64
from http import cookiejar
import urllib.request, urllib.parse, urllib.error
#url for accessing
csdnLoginUrl = r"http://passport.csdn.net/ajax/accounthandler.ashx?"
@jacobsalmela
jacobsalmela / ltsp.conf
Created April 21, 2016 16:36
dnsmasq config file for iPXE booting with an existing DHCP server
# Sample configuration for dnsmasq to function as a proxyDHCP server,
# enabling LTSP clients to boot when an external, unmodifiable DHCP
# server is present.
# The main dnsmasq configuration is in /etc/dnsmasq.conf;
# the contents of this script are added to the main configuration.
# You may modify the file to suit your needs.
# Don't function as a DNS server:
port=0
@AdrianKoshka
AdrianKoshka / make_ipxe_uefi_usb.md
Last active February 25, 2025 10:56
Making a UEFI bootable iPXE USB drive

Making a UEFI bootable iPXE USB drive

Build the UEFI executable for iPXE

# First we'll clone iPXE
$ git clone git://git.ipxe.org/ipxe.git
# Go into the src directory of the cloned git repo
$ cd ipxe/src
# Compile the UEFI iPXE executable
@plembo
plembo / asusb250mcfans.md
Last active May 24, 2025 16:27
Monitoring ASUS Prime B250M-C fans on Linux with lm-sensors

Monitoring ASUS Prime B250M-C fans with lm-sensors

Introduction

The lm-sensors package is the standard software used to monitor things like CPU temperature on Linux. All major distributions include this package. Basic configuration, using the sensors-detect utility, is straightforward. For many systems, running sensors-detect and accepting the defaults is enough to get full functionality.

ASUS Prime B250M-C motherboard

The basic configuration for lm-sensors will provde temperatures for the CPU and ASUS Prime B250M-C motherboard, but not fan speeds.

@MIvanchev
MIvanchev / article.md
Last active May 24, 2025 14:52
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@lynt-smitka
lynt-smitka / fbclid-nginx.conf
Last active February 13, 2025 00:44
Remove fbclid argument from the URL in Nginx
http {
...
# redirect map in http block - remove fbclid argument from the end
map $request_uri $redirect_fbclid {
"~^(.*?)([?&]fbclid=[a-zA-Z0-9_-]+)$" $1;
}
...
@andriyudatama
andriyudatama / VS Code Disable GPU Acceleration
Last active April 21, 2025 14:51
Disable Hardware Acceleration (GPU) on Visual Studio Code
Visual Studio Code frequently crashes linux. Using NVIDIA GPU
1. Open command pallete (Ctrl + Shift + P)
2. Enter "Preferences: Configure Runtime Arguments"
3. Add config: "disable-hardware-acceleration": true
4. Restart VS Code
<#
Create Unix VM's.
PREREQUISITES:
- A VM that has been installed with an OS that supports cloud-init
- cloud-init is installed on the vm
How it works:
- Asks for a bunch of parameters
- Creates a disk from parent vhdx for speed
@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active May 30, 2025 05:40
Unlock/Unhide all Power Plan Settings/Options on Windows 10/11
#Requires -RunAsAdministrator
# Unlock-PowerCfg - v22.05.11
# Disable "Connected Standby"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$'
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }
@tytydraco
tytydraco / cmdpatch.sh
Created August 6, 2020 04:19
An Android Linux Kernel command line patch tool using Magisk's magiskboot binary.
#!/system/bin/sh
# Written by Draco (tytydraco @ GitHub)
set -e
MAGISKBOOT="/data/adb/magisk/magiskboot"
err() {
echo -e "\e[91m[!] $@\e[39m"
exit 1