Skip to content

Instantly share code, notes, and snippets.

View lamskoy's full-sized avatar

Eugene Lamskoy lamskoy

  • Ukraine
View GitHub Profile
@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active May 8, 2025 19:35
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 }
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@extremecoders-re
extremecoders-re / vmware-no-vmem.md
Last active April 23, 2025 18:32
Boost VMWare Performance by disabling vmem files.

Prevent creation of vmmem files in VMware (Windows)

Issue

VMWare creates .vmem files to back the guest RAM. On the host this causes disk thrashing especially during powering on and off the guest.

Solution

Add the following lines to the .vmx file to prevent creation of .vmem files. This will reduce disk IO and VM performance will improve especially on non-SSD disks.

@thwarted
thwarted / start-minimal-apache
Created November 27, 2013 07:58
minimum Apache command line to start up a single shot web server with directory indexes and logging to the terminal. Uses compiled in default for ServerRoot (so modules can be found)
httpd \
-f /dev/null \
-C 'LoadModule autoindex_module modules/mod_autoindex.so' \
-C 'LoadModule log_config_module modules/mod_log_config.so' \
-C 'LoadModule dir_module modules/mod_dir.so' \
-C "DocumentRoot $( readlink -f .)" \
-C 'Listen 7000' \
-C 'ErrorLog /dev/stdout' \
-C 'PidFile /tmp/pidfile' \
-C 'LogFormat "%h %l %u %t \"%r\" %>s %b" common' \
@reyjrar
reyjrar / elasticsearch.yml
Last active December 26, 2024 21:46
ElasticSearch config for a write-heavy cluster
##################################################################
# /etc/elasticsearch/elasticsearch.yml
#
# Base configuration for a write heavy cluster
#
# Cluster / Node Basics
cluster.name: logng
# Node can have abritrary attributes we can use for routing