Skip to content

Instantly share code, notes, and snippets.

View Msprg's full-sized avatar
👀
It might not be perfect, but dang does it work...

Curious, aren't we? Msprg

👀
It might not be perfect, but dang does it work...
View GitHub Profile
@Msprg
Msprg / Boot from grub manually.md
Last active June 1, 2025 01:35
Boot from grub manually

grub>

USE ls to view available HDDs and partitions

USE ls (hd0,1)/ to find the /boot parition

RUN grub> set root=(hd0,1) to set the /boot partition as the root for now

You can usually use tab completeion to complete the file paths

  1. Enable SSH
  2. Enter maintanence mode
  3. Reboot while in maintanence mode
  4. run:
[root@esxi1:~] esxcli storage vmfs snapshot list
680a17c4-68d2ac64-c3d5-001018a42ca4
   Volume Name: datastore1
   VMFS UUID: 680a17c4-68d2ac64-c3d5-001018a42ca4
 Can mount: true
@Msprg
Msprg / zte_mf268_swap_firmware.txt
Last active December 29, 2024 01:46 — forked from stich86/zte_mf268_swap_firmware.txt
Unlock TIM version of ZTE MF268
This is a little guide on how to change the firmware on the TIM version of ZTE MF268 (an external CPE that uses the same internal module as the ZTE MF286D).
My version is based on the O2-CZ firmware (https://androidhost.ru/Yu9) and has the following features:
- No need to use VLAN 83 to get internet access
- You can set up the CPE in both bridge and router modes
- Added a band lock page in the data menu (Cell Lock is not working, sorry!)
- Added a telnetd daemon; just log in using "admin" as the username and the IMEI as the password (be careful with what you do, you can brick the CPE!)
- Default web UI password is "admin"
- You can access CPE interface when it's in bridge mode using IP 192.168.0.1
@Msprg
Msprg / readme.md
Last active October 18, 2024 12:28
Get saved passwords from OpenVPN-GUI

Open powershell as administrator, then:

Set-ExecutionPolicy RemoteSigned
Add-Type -AssemblyName System.Security

$keys = Get-ChildItem "HKCU:\Software\OpenVPN-GUI\configs"
$items = $keys | ForEach-Object {Get-ItemProperty $_.PsPath}

foreach ($item in $items)
@Msprg
Msprg / gist:a81ea224abe2a18b47ab13224fe116d9
Created August 22, 2024 17:57
Hass-slightly-better-lighting-automation-blueprint
blueprint:
name: Motion Light Custom Msprg Automation
author: Msprg
description: Turn a light on based on detected motion
domain: automation
input:
trigger_motion_sensor:
name: Trigger Motion Sensor
description: This sensor will cause the light to turn on.
selector:

Migrating a live, running system into ram and running from it is great for executing system modifications, that would otherwise require a physical access / kvm / console in case of a vm, remotely. This is based on following stack exchange discussions:

https://unix.stackexchange.com/questions/226872/how-to-shrink-root-filesystem-without-booting-a-livecd/227318#answer-227318

https://askubuntu.com/questions/1416758/remote-full-system-backup-of-a-running-system

as well as my own experiences.

Basic assumptions

@Msprg
Msprg / cisco-ios-image-for-gns3.md
Created December 14, 2022 14:58 — forked from takyon12/cisco-ios-image-for-gns3.md
Cisco IOS Image for GNS3

Download FREE Cisco IOS image for GNS3

Hi dear all, that’s really a great to share my hard work with you , After a lots of hit in Google I finally found trick to search Cisco IOS in free of course. So without talking much here are the link where you can free download Cisco ios image and you can upload or use this ios to the router and as well as in GNS3.

Small Collection of IOS Images.

  • ftp://ftp.unikon-ua.net/pub/Cisco/IOS/

{Updated}Big Collection of IOS Images (Almost All Cisco IOS Images)

  • ftp://62.117.115.92/upload/ios/
@Msprg
Msprg / github-troll.md
Created December 9, 2022 00:14 — forked from lrvick/github-troll.md
Trolling Github's DMCA repo with their own security flaws.