Skip to content

Instantly share code, notes, and snippets.

View inequation's full-sized avatar
🤔

Leszek Godlewski inequation

🤔
View GitHub Profile
#!/usr/bin/python
points = range(700)
def dispatch(packet):
global markings, packet_count, pair_count
if 'markings' not in globals():
markings = [[i == j for j in xrange(len(points))] for i in xrange(len(points))]
for pair in packet:
if pair[1] < pair[0]:
@inequation
inequation / Declutter.ps1
Last active April 22, 2017 18:19
Simple script to remove all the Windows 10 default useless apps bovine feces, with a few exceptions for the useful ones.
taskkill /f /im OneDrive.exe
& "$env:SystemRoot\SysWOW64\OneDriveSetup.exe" /uninstall
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
#Get-AppxPackage *windowscalculator* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
#Get-AppxPackage *skypeapp* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
@inequation
inequation / hdd2ssd-dualboot.md
Last active December 9, 2022 00:58
Guide to migrating a dual-boot Linux/Windows system to an SSD

Having painstakingly performed the operation of migrating dual-boot systems to SSDs (without a fresh install of any of the systems) twice in the recent days, I've decided to write the steps down in case I ever need to repeat it. It may also benefit someone else on the internet. This is the most efficient and least error-prone workflow to the best of my knowledge, and discovering it was not as easy as it may seem.

Please excuse the somewhat short-hand form of this guide; I take the liberty to assume the reader is a power-user and is at least familiar with Linux.

The scenario

Here are the specific conditions I worked under:

  • Dual-boot, Linux/Windows system.
  • MBR partition tables.