Skip to content

Instantly share code, notes, and snippets.

@savchenko
savchenko / hp-bios-update.md
Created January 20, 2024 14:01 — forked from eNV25/hp-bios-update.md
Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

To update the BIOS/UEFI firmware requires HP-specific files in the EFI System Partition, also referred to as ESP.

On a Linux system, the ESP is typically mounted on /boot/efi or /efi. Whithin you should also find a EFI directory, e.g. /boot/efi/EFI or /efi/EFI. This article assumes that the ESP is mounted on /efi and that the /efi/EFI directory exists. You can replace that with the mount point your system uses.

The HP-specific files are located in /efi/EFI/HP or /efi/EFI/Hewlet-Packard. These files typically come preinstalled in HP Windows PCs. If you have these files you could skip Install HP-specific files.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@savchenko
savchenko / windows_hardening.cmd
Created August 4, 2021 10:26 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
:
@savchenko
savchenko / dnsmasq.conf
Created January 26, 2019 05:14
dnsmasq.conf
#
#
# Thu 10 May 2018 22:23:20 ACST
#
# DNSSEC-enabled upstream
server=192.168.2.2
# Listen on loopback only
listen-address=127.0.0.1
no-dhcp-interface=lo
@savchenko
savchenko / nodes_outside.py
Last active August 29, 2015 14:22
Check for Read's outside of the shot
# << init.py
import nodes_outside
nuke.addOnScriptSave(nodes_outside.check_outside_nodes)
# << nodes_outside.py
import nuke
def check_outside_nodes():
read_types = ("Read", "ReadGeo", "ReadGeo2")
script_base = "/".join(nuke.toNode("root").knob("name").value().split("/")[0:5])
@savchenko
savchenko / imm_convert.py
Last active January 26, 2019 12:17
Convert Mocha's "sDPX" via ImageMagick
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# --------------------------------------------------------------
# Convert Mocha's "sDPX" via ImageMagick
#
# Andrew Savchenko
# MIT
# --------------------------------------------------------------
__version__ = "0.0.1"
__release__ = True
@savchenko
savchenko / copyDirs.py
Created May 1, 2014 13:24
Quickly copying directories without content from one place to another
#!/usr/bin/python
# Usage: ./copyDirs.py /SOURCE_DIR/ /TARGET_DIR/
__author__ = 'andy'
import os, os.path
import sys
putItThere = str(sys.argv.pop())
takeFromHere = str(sys.argv.pop())